/* ============================================
   INSIGHTS PAGE STYLES
   ============================================ */

/* Metric Learn More Link (replaces tooltip button) */
.metric-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    margin-left: 0.5rem;
    position: relative;
    vertical-align: middle;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.metric-learn-more svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.metric-learn-more:hover {
    background: var(--bg-card);
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-md);
}

.metric-learn-more:hover svg {
    color: var(--primary-orange);
}

/* Learn More Section (Homepage) */
.learn-more-section {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
}

.learn-more-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.learn-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.learn-more-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.learn-more-card:hover {
    border-color: rgba(255, 140, 50, 0.6);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.learn-more-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 140, 50, 0.1);
    border: 1px solid rgba(255, 140, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.learn-more-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .learn-more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .learn-more-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .learn-more-title {
        font-size: 1.25rem;
    }
}

/* Footer Education Links */
.footer-links {
    margin: 1.5rem 0;
}

.footer-section-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

.footer-education {
    font-size: 0.9rem;
}

.footer-education strong {
    color: var(--primary-orange);
    margin-right: 0.5rem;
}

.footer-education a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-education a:hover {
    color: var(--primary-orange);
}

@media (max-width: 768px) {
    .footer-section-inline {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.header-nav a:hover {
    color: var(--text-primary);
}

.header-nav a.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
}

/* Insights Hero Section */
.insights-hero {
    text-align: center;
    padding: 4rem 0 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.insights-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.insights-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Insights Grid - 3 Column Layout */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

/* Individual Insight Card */
.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.insight-card:hover {
    border-color: rgba(255, 140, 50, 0.6);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Card Header with Icon */
.insight-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.insight-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 140, 50, 0.1);
    border: 1px solid rgba(255, 140, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.insight-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Card Description */
.insight-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

/* Card Footer */
.insight-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.insight-read-time {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.insight-arrow {
    font-size: 1.5rem;
    color: var(--primary-orange);
    transition: transform 0.2s ease;
}

.insight-card:hover .insight-arrow {
    transform: translateX(4px);
}

/* Insights CTA Section */
.insights-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin: 4rem 0 3rem;
}

.insights-cta h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.insights-cta p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 140, 50, 0.6);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    background: rgba(255, 140, 50, 0.05);
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary-orange);
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 50, 0.3);
}

/* Footer Styles */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Article Page Styles */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.article-category {
    background: rgba(255, 140, 50, 0.1);
    color: var(--primary-orange);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-read-time {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.article-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content code {
    background: var(--bg-elevated);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: 'Courier New', monospace;
}

.article-content a {
    color: var(--primary-orange);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 140, 50, 0.3);
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: var(--primary-orange-light);
    border-bottom-color: var(--primary-orange);
}

.article-highlight {
    background: rgba(255, 140, 50, 0.08);
    border-left: 3px solid var(--primary-orange);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.article-highlight p:last-child {
    margin-bottom: 0;
}

.article-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin: 4rem 0 2rem;
}

.article-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-cta p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Related Insights Section */
.article-related {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0 2rem;
}

.article-related h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-related li {
    margin-bottom: 0.75rem;
}

.article-related a {
    color: var(--primary-orange);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 140, 50, 0.3);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.article-related a:hover {
    color: var(--primary-orange-light);
    border-bottom-color: var(--primary-orange);
}

/* Article FAQ Section */
.article-faq {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0 2rem;
}

.article-faq h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.article-faq details {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
}

.article-faq details:last-child {
    border-bottom: none;
}

.article-faq summary {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.article-faq summary:hover {
    color: var(--primary-orange);
}

.article-faq details[open] summary {
    color: var(--primary-orange);
    margin-bottom: 0.75rem;
}

.article-faq p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 0;
}

/* Article TOC */
.article-toc {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-toc ol {
    list-style: decimal;
    margin: 0;
    padding-left: 1.5rem;
}

.article-toc li {
    margin-bottom: 0.5rem;
}

.article-toc a {
    color: var(--primary-orange);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 140, 50, 0.3);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.article-toc a:hover {
    color: var(--primary-orange-light);
    border-bottom-color: var(--primary-orange);
}

.article-toc a[aria-current="true"] {
    color: var(--primary-orange-light);
    font-weight: 600;
    border-bottom-color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .insights-hero {
        padding: 3rem 0 2rem;
    }

    .insights-title {
        font-size: 2rem;
    }

    .insights-subtitle {
        font-size: 1rem;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .header-nav {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-description {
        font-size: 1.1rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .insights-hero {
        padding: 2rem 0 1.5rem;
    }

    .insights-title {
        font-size: 1.75rem;
    }

    .insights-subtitle {
        font-size: 0.95rem;
    }

    .insight-card {
        padding: 1.5rem;
    }

    .insight-card-header h3 {
        font-size: 1.125rem;
    }

    .insight-card-icon {
        width: 40px;
        height: 40px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
