﻿/* Sync Info Styles - Updated for integration-card-body structure */
.SyncInfoTab .integration-card-body {
    padding: var(--space-5);
}

.sync-info-subheader {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.use-cases-link {
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.use-cases-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

    .use-cases-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

/* Sync Info Navigation */
.sync-info-navigation {
    margin-bottom: 2rem;
    animation: slideUp 0.6s ease-out 0.1s both;
}

.sync-info-tabs {
    display: flex;
    background: var(--input-bg);
    border-radius: 6px;
    padding: 0.25rem;
    gap: 0.25rem;
    max-width: 300px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.sync-info-tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

    .sync-info-tab-button.active {
        background: var(--primary);
        color: white;
    }

    .sync-info-tab-button:not(.active):hover {
        background: rgba(0, 62, 197, 0.05);
        color: var(--primary);
    }

/* Sync Info Sections */
.sync-info-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

    .sync-info-section.active {
        display: block;
    }

/* Overview Cards */
.overview-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.overview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

    .overview-header h3 {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-dark);
    }

.overview-content p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.875rem;
    margin: 0;
}

/* Tags Grid */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: var(--transition);
    animation: slideUp 0.6s ease-out both;
}

    .tag-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: var(--primary);
    }

    .tag-card.lead-tag {
        border-left: 3px solid var(--primary);
    }

    .tag-card.customer-tag {
        border-left: 3px solid var(--primary);
    }

/* Tag Headers */
.tag-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tag-visual {
    background: var(--primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.tag-meta {
    text-align: right;
}

.tag-type {
    background: var(--input-bg);
    color: var(--text-dark);
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tag Description */
.tag-description h4 {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.tag-description p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Tag Details */
.tag-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.detail-value {
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--input-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

    .detail-value.filter-lead,
    .detail-value.filter-customer,
    .detail-value.phase-initial,
    .detail-value.phase-new {
        background: rgba(0, 62, 197, 0.1);
        color: var(--primary);
        border-color: rgba(0, 62, 197, 0.2);
    }

/* Tag Legend */
.tag-legend {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: slideUp 0.6s ease-out 0.3s both;
}

    .tag-legend h4 {
        color: var(--text-dark);
        font-weight: 600;
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}

/* Custom Fields Grid */
.custom-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.custom-field-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 1.25rem;
    transition: var(--transition);
    animation: slideUp 0.6s ease-out both;
}

    .custom-field-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: var(--primary);
    }

.custom-field-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.custom-field-visual {
    background: var(--primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.custom-field-type {
    background: var(--input-bg);
    color: var(--text-dark);
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-field-description h4 {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.custom-field-description p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.custom-field-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-field-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Important Note */
.important-note {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: slideUp 0.6s ease-out 0.4s both;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

    .note-header h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dark);
    }

.note-content p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    font-size: 0.875rem;
}

/* Custom Field Benefits */
.custom-field-benefits {
    animation: slideUp 0.6s ease-out 0.5s both;
}

    .custom-field-benefits h4 {
        color: var(--text-dark);
        font-weight: 600;
        font-size: 1.125rem;
        margin-bottom: 1rem;
        text-align: center;
    }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.benefit-item {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
}

    .benefit-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: var(--primary);
    }

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
}

.benefit-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.benefit-content p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .SyncInfoTab .integration-card-body {
        padding: var(--space-4);
    }

    .sync-info-tabs {
        max-width: 100%;
        flex-direction: column;
        gap: 0.125rem;
    }

    .tags-grid,
    .custom-fields-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tag-header,
    .custom-field-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .tag-meta,
    .custom-field-meta {
        align-self: flex-end;
    }

    .legend-items {
        gap: 0.375rem;
    }

    .legend-item {
        font-size: 0.875rem;
    }
}
