/**
 * Deep Dive Article Page Styles
 * Standalone page for category narrative content
 * URL: /{vertical}/{category-slug}/deep-dive/
 */

/* ==========================================================================
   Page Color Override
   ========================================================================== */

body.light-theme {
    color: var(--color-primary);
}

/* Force light-theme styles on AI search via body class */

body.light-theme .ai-input-outer .modal-form .ai-input-form-inner,
body.light-theme .ai-input-outer .modal-form,
body.light-theme .ai-input-outer .ai-input-form {
    background-color: rgb(248 249 237) !important;
}

body.light-theme #header-outer.at-top.transparent .modal-form .ai-input-form-inner {
    background-color: rgb(148 172 165 / 11%) !important;
}

body.light-theme .ai-input-outer .ai-input::placeholder {
    color: rgba(190, 189, 170, 0.8) !important;
}

.ai-search-outer:not(.light-theme) .ai-input-voice-button.idle .sound-bars .bar {
    box-shadow: none !important;
    background-color: var(--color-primary) !important;
}

#header-outer.at-top a#logo:before,
#header-outer a#logo:before {
    content: none !important;
}

#header-outer.at-top a#logo img,
#header-outer a#logo img {
    display: block !important;
}

/* ==========================================================================
   Article Container
   ========================================================================== */

.deep-dive-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 10rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Top Bar (Breadcrumbs + PDF Button)
   ========================================================================== */

.deep-dive-top-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.deep-dive-breadcrumbs {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.deep-dive-breadcrumbs a {
    color: var(--text-gray);
    text-decoration: none;
}

.deep-dive-breadcrumbs a:hover {
    color: var(--text-primary);
}

.deep-dive-breadcrumbs .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.deep-dive-breadcrumbs .current {
    color: var(--text-primary);
}

/* PDF Download Button */
.deep-dive-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--color-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.deep-dive-pdf-btn:hover {
    background: var(--border-light);
    border-color: var(--text-gray);
}

.deep-dive-pdf-btn svg {
    flex-shrink: 0;
}

.icon-left.icon-document>*:before {
    filter: invert(1);
    opacity: 0.8;
}
.icon-left.icon-document>*:hover:before {
    opacity: 1;
}

/* ==========================================================================
   Article Header
   ========================================================================== */

.deep-dive-header {
    margin: 4rem 0;
    border-bottom: 1px solid var(--border-light);
}

.deep-dive-header h1 {
    font-size: 4.5rem;
    line-height: 5.5rem;
    margin-bottom: 1rem;
}

.deep-dive-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.deep-dive-meta .reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deep-dive-meta .reading-time::before {
    content: '';
    width: 1rem;
    height: 1rem;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23252827" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
}

/* ==========================================================================
   Article Body
   ========================================================================== */

.deep-dive-body {
    margin-bottom: 4rem;
}

.deep-dive-section {
    margin-bottom: 3rem;
}

.deep-dive-section:last-child {
    margin-bottom: 0;
}

.deep-dive-section h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.deep-dive-section-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.deep-dive-section-content p {
    margin-bottom: 1.5rem;
}

.deep-dive-section-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Promo Section
   ========================================================================== */

.deep-dive-promo-section {
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.deep-dive-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.deep-dive-promo-card {
    display: flex;
    flex-direction: column;
    padding: 3rem 4rem 4rem;
    background: var(--color-light-2);
    border-radius: var(--border-radius-p-2);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deep-dive-promo-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.deep-dive-promo-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.promo-card-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.promo-card-content h3 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.promo-card-content p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
}

/* ==========================================================================
Before Footer
========================================================================== */

.before-footer {
    background: var(--bg-dark) !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */


@media (max-width: 768px) {
    .deep-dive-article {
        padding: 1.5rem 1rem 5rem;
    }

    .deep-dive-section-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .deep-dive-promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .deep-dive-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .deep-dive-breadcrumbs {
        font-size: 0.8rem;
    }

    .deep-dive-promo-card {
        padding: 3rem;
    }
}
