/**
 * Features Page-Specific Styles
 * Styles unique to features.html
 * Standard CSS (no @apply directives)
 * Target: ~350 lines
 */

/* ========================================
   FEATURE DETAIL CARDS
   ======================================== */

.feature-detail-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.feature-detail-section:last-child {
    border-bottom: none;
}

.feature-detail-section:nth-child(even) {
    background-color: #f9fafb;
}

.feature-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feature-detail-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.feature-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

@media (min-width: 768px) {
    .feature-detail-title {
        font-size: 1.875rem;
    }
}

.feature-detail-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.feature-detail-content {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {
    .feature-detail-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.feature-detail-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-detail-description h4 {
    font-weight: 600;
    color: #111827;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.feature-detail-description ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-detail-description li {
    display: flex;
    align-items: flex-start;
    color: #4b5563;
    padding-left: 0.5rem;
}

.feature-detail-description li:before {
    content: "→";
    color: #2563eb;
    font-weight: 700;
    margin-right: 0.5rem;
    margin-left: -0.5rem;
    flex-shrink: 0;
}

.feature-detail-description li strong {
    display: inline-block;
    margin-right: 0.25rem;
}

/* ========================================
   SAMPLE OUTPUT DISPLAYS
   ======================================== */

.sample-output-container {
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.sample-output-header {
    background-color: #f3f4f6;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sample-output-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.sample-output-content {
    padding: 1.5rem;
}

.sample-output-content.code {
    background-color: #111827;
    color: #f3f4f6;
    font-family: monospace;
    font-size: 0.875rem;
}

.sample-output-content.json {
    background-color: #f9fafb;
}

.sample-fit-score {
    margin-bottom: 1.5rem;
}

.fit-score-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.fit-score-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 1rem;
    overflow: hidden;
}

.fit-score-fill {
    height: 100%;
    background: linear-gradient(to right, #4ade80, #16a34a);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

.fit-score-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.sample-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sample-list-item {
    display: flex;
    align-items: flex-start;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.sample-list-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.sample-list-icon.strength {
    background-color: #dcfce7;
}

.sample-list-icon.strength svg {
    color: #16a34a;
}

.sample-list-icon.gap {
    background-color: #fed7aa;
}

.sample-list-icon.gap svg {
    color: #ea580c;
}

.sample-list-icon.warning {
    background-color: #fee2e2;
}

.sample-list-icon.warning svg {
    color: #dc2626;
}

/* ATS Compatibility Score Bar (Red variant) */
.fit-score-fill[style*="background-color: #EF4444"] .fit-score-text {
    color: white;
}

.sample-list-text {
    color: #374151;
    font-size: 0.875rem;
    flex: 1;
    min-width: 0;
}

/* ========================================
   INTERACTIVE EXAMPLES
   ======================================== */

.interactive-example {
    border: 2px solid #bfdbfe;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #eff6ff;
}

.interactive-example-tabs {
    display: flex;
    border-bottom: 1px solid #bfdbfe;
    background-color: white;
}

.interactive-example-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #4b5563;
}

.interactive-example-tab:hover {
    background-color: #f9fafb;
}

.interactive-example-tab.active {
    background-color: #2563eb;
    color: white;
}

.interactive-example-tab.active:hover {
    background-color: #1d4ed8;
}

.interactive-example-content {
    padding: 1.5rem;
}

.interactive-example-panel {
    display: none;
}

.interactive-example-panel.active {
    display: block;
}

/* ========================================
   COMPARISON TABLES (ATS, etc.)
   ======================================== */

.comparison-table {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.comparison-table thead {
    background-color: #f3f4f6;
}

.comparison-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: #f9fafb;
}

.match-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.match-status.found {
    background-color: #dcfce7;
    color: #166534;
}

.match-status.partial {
    background-color: #fef3c7;
    color: #854d0e;
}

.match-status.missing {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ========================================
   PERSONA APPLICATION BADGES
   ======================================== */

.persona-application {
    margin-top: 1.5rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
}

.persona-application-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.persona-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.persona-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: white;
    border: 2px solid;
}

.persona-badge.optimizer {
    border-color: #93c5fd;
    color: #1e40af;
}

.persona-badge.bridger {
    border-color: #86efac;
    color: #166534;
}

.persona-badge.rejected {
    border-color: #d8b4fe;
    color: #6b21a8;
}

/* ========================================
   FEATURE NAVIGATION (Sticky TOC)
   ======================================== */

.features-nav {
    position: sticky;
    top: 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

@media (max-width: 1024px) {
    .features-nav {
        position: static;
        margin-bottom: 2rem;
    }
}

.features-nav-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.features-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.features-nav-link {
    display: block;
    font-size: 0.875rem;
    color: #4b5563;
    transition: color 0.2s;
    padding: 0.25rem 0;
}

.features-nav-link:hover {
    color: #2563eb;
}

.features-nav-link.active {
    color: #2563eb;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
    .feature-detail-content {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .feature-detail-title {
        font-size: 1.25rem;
    }

    .feature-detail-subtitle {
        font-size: 1rem;
    }

    .interactive-example-tab {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}
