/* ═══════════════════════════════════════════════════════════════
   FIDELCASHFLOWVA DD 2026 — Core Stylesheet
   The Virginia Network
   Forked & extended from FCFVA DD Theme 2025
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS VARIABLES — DARK MODE (Default) ──────────────────── */
:root,
[data-theme="dark"] {
    --dd-bg-primary:     #09090f;
    --dd-bg-secondary:   #111118;
    --dd-bg-tertiary:    #18181f;
    --dd-bg-card:        rgba(18, 18, 28, 0.95);
    --dd-bg-card-hover:  rgba(26, 26, 40, 0.98);
    --dd-bg-input:       rgba(255, 255, 255, 0.05);
    --dd-bg-header:      rgba(9, 9, 15, 0.96);
    --dd-bg-overlay:     rgba(0, 0, 0, 0.7);

    --dd-text-primary:   #f0f0f8;
    --dd-text-secondary: #b0b0c8;
    --dd-text-muted:     #606078;
    --dd-text-inverse:   #09090f;

    --dd-border:         rgba(255, 255, 255, 0.08);
    --dd-border-hover:   rgba(255, 255, 255, 0.16);

    /* Brand colors */
    --dd-red:            #e63946;
    --dd-red-hover:      #c1121f;
    --dd-red-glow:       rgba(230, 57, 70, 0.25);
    --dd-blue:           #4361ee;
    --dd-gold:           #f4a261;
    --dd-green:          #06d6a0;
    --dd-purple:         #7b2d8b;

    /* Content type colors */
    --type-news:         #e63946;
    --type-article:      #4361ee;
    --type-editorial:    #f4a261;
    --type-video:        #7b2d8b;
    --type-gallery:      #06d6a0;
    --type-podcast:      #3a86ff;
    --type-review:       #ff9f1c;

    --dd-shadow:         0 8px 32px rgba(0, 0, 0, 0.5);
    --dd-shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.3);
    --dd-radius:         12px;
    --dd-radius-sm:      8px;
    --dd-radius-lg:      18px;
    --dd-transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --dd-nav-height:     64px;
}

/* ── 2. LIGHT MODE ───────────────────────────────────────────── */
[data-theme="light"] {
    --dd-bg-primary:     #f4f4f8;
    --dd-bg-secondary:   #ffffff;
    --dd-bg-tertiary:    #eaeaf0;
    --dd-bg-card:        rgba(255, 255, 255, 0.98);
    --dd-bg-card-hover:  rgba(245, 245, 252, 1);
    --dd-bg-input:       rgba(0, 0, 0, 0.04);
    --dd-bg-header:      rgba(255, 255, 255, 0.96);
    --dd-bg-overlay:     rgba(0, 0, 0, 0.5);

    --dd-text-primary:   #0d0d1a;
    --dd-text-secondary: #2d2d4a;
    --dd-text-muted:     #7070a0;
    --dd-text-inverse:   #ffffff;

    --dd-border:         rgba(0, 0, 0, 0.09);
    --dd-border-hover:   rgba(0, 0, 0, 0.18);

    --dd-red:            #d62839;
    --dd-red-hover:      #a81e2d;
    --dd-red-glow:       rgba(214, 40, 57, 0.15);
    --dd-blue:           #3451cc;
    --dd-gold:           #e07b3a;
    --dd-green:          #059669;
    --dd-purple:         #6b21a8;

    --dd-shadow:         0 4px 20px rgba(0, 0, 0, 0.09);
    --dd-shadow-sm:      0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ── 3. RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dd-bg-primary);
    color: var(--dd-text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--dd-red);
    text-decoration: none;
    transition: color var(--dd-transition);
}
a:hover { color: var(--dd-red-hover); }

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dd-text-primary);
    letter-spacing: -0.02em;
}

p { margin-bottom: 1rem; }

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

ul, ol { list-style: none; }

/* ── 4. LAYOUT ───────────────────────────────────────────────── */
.dd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dd-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.dd-container-full {
    width: 100%;
    padding: 0 24px;
}

#page { position: relative; overflow-x: hidden; }

.site-main {
    padding-top: var(--dd-nav-height);
    min-height: 80vh;
}

/* ── 5. GLASS CARD ───────────────────────────────────────────── */
.dd-card {
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--dd-transition);
}

.dd-card:hover {
    background: var(--dd-bg-card-hover);
    border-color: var(--dd-border-hover);
    box-shadow: var(--dd-shadow);
}

.dd-card-glass {
    background: rgba(9, 9, 15, 0.88);
    border: 1px solid var(--dd-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .dd-card-glass {
    background: rgba(255, 255, 255, 0.92);
}

/* ── 6. SITE HEADER / NAVIGATION ────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--dd-nav-height);
    z-index: 10000;
    background: var(--dd-bg-header);
    border-bottom: 1px solid var(--dd-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--dd-nav-height);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 16px;
}

/* Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.site-branding img,
.custom-logo {
    max-height: 44px !important;
    width: auto !important;
    display: block;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--dd-text-primary);
    white-space: nowrap;
}

.site-name span { color: var(--dd-red); }

/* Primary nav */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.primary-nav a,
.primary-nav > li > a {
    color: var(--dd-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: var(--dd-radius-sm);
    transition: var(--dd-transition);
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--dd-text-primary);
    background: var(--dd-bg-input);
}

/* Breaking tag in nav */
.nav-breaking {
    background: var(--dd-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dd-bg-input);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
    color: var(--dd-text-muted);
    transition: var(--dd-transition);
}

.theme-toggle:hover {
    color: var(--dd-text-primary);
    border-color: var(--dd-border-hover);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

/* Search toggle */
.search-toggle {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dd-bg-input);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
    color: var(--dd-text-muted);
    transition: var(--dd-transition);
}

.search-toggle:hover {
    color: var(--dd-text-primary);
    border-color: var(--dd-border-hover);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: var(--dd-bg-input);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--dd-text-secondary);
    border-radius: 2px;
    transition: var(--dd-transition);
}

/* ── 7. CATEGORY BAR ─────────────────────────────────────────── */
.category-bar {
    background: var(--dd-bg-secondary);
    border-bottom: 1px solid var(--dd-border);
    position: sticky;
    top: var(--dd-nav-height);
    z-index: 9000;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-bar-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    max-width: 1400px;
    margin: 0 auto;
    white-space: nowrap;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dd-text-muted);
    background: transparent;
    border: 1px solid transparent;
    transition: var(--dd-transition);
    white-space: nowrap;
    text-decoration: none;
}

.cat-tab:hover,
.cat-tab.active {
    color: var(--dd-text-primary);
    background: var(--dd-bg-card);
    border-color: var(--dd-border);
}

.cat-tab.active { color: var(--dd-red); border-color: var(--dd-red); }

/* ── 8. BREAKING TICKER ──────────────────────────────────────── */
.breaking-ticker {
    background: var(--dd-red);
    overflow: hidden;
    height: 34px;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-track {
    display: flex;
    animation: ticker 35s linear infinite;
    white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0 40px;
}

.ticker-item a { color: #fff; }
.ticker-item::after { content: '·'; margin-left: 40px; opacity: 0.5; }

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── 9. BUTTONS ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: var(--dd-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--dd-transition);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--dd-red);
    color: #fff;
    border-color: var(--dd-red);
}
.btn-primary:hover {
    background: var(--dd-red-hover);
    border-color: var(--dd-red-hover);
    color: #fff;
    box-shadow: 0 4px 16px var(--dd-red-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--dd-text-secondary);
    border-color: var(--dd-border);
}
.btn-ghost:hover {
    color: var(--dd-text-primary);
    border-color: var(--dd-border-hover);
    background: var(--dd-bg-input);
}

.btn-gold {
    background: linear-gradient(135deg, var(--dd-gold), #e07b3a);
    color: #fff;
    border-color: transparent;
}
.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(244,162,97,0.35);
    color: #fff;
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* ── 10. SEARCH BAR ──────────────────────────────────────────── */
.dd-search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--dd-bg-input);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
    padding: 5px 5px 5px 14px;
    transition: var(--dd-transition);
}

.dd-search-bar:focus-within {
    border-color: var(--dd-red);
    box-shadow: 0 0 0 3px var(--dd-red-glow);
}

.dd-search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--dd-text-primary);
    font-size: 0.875rem;
    flex: 1;
    min-width: 0;
}

.dd-search-bar input::placeholder { color: var(--dd-text-muted); }

.dd-search-bar button {
    background: var(--dd-red);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--dd-transition);
}

.dd-search-bar button:hover { background: var(--dd-red-hover); }

/* Full search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: var(--dd-bg-overlay);
    z-index: 20000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.search-overlay-inner {
    background: var(--dd-bg-secondary);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 680px;
    margin: 0 20px;
    box-shadow: var(--dd-shadow);
}

/* ── 11. HERO SECTION ────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(9,9,15,0.2) 0%,
        rgba(9,9,15,0.5) 50%,
        rgba(9,9,15,0.92) 100%
    );
}

[data-theme="light"] .hero-bg::after {
    background: linear-gradient(
        to bottom,
        rgba(244,244,248,0.1) 0%,
        rgba(244,244,248,0.4) 50%,
        rgba(244,244,248,0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 48px 0;
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dd-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--dd-text-primary);
}

.hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-title a:hover { color: var(--dd-text-primary); opacity: 0.85; }

.hero-excerpt {
    font-size: 1.05rem;
    color: var(--dd-text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 580px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--dd-text-muted);
    flex-wrap: wrap;
}

.hero-meta .author { color: var(--dd-text-secondary); font-weight: 600; }
.hero-meta a { color: var(--dd-text-secondary); }
.hero-meta a:hover { color: var(--dd-red); }

/* ── 12. SECTION HEADERS ─────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dd-text-primary);
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--dd-red);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dd-red);
}

.section-link:hover { color: var(--dd-red-hover); }

/* ── 13. POST CARDS ──────────────────────────────────────────── */
.posts-grid {
    display: grid;
    gap: 20px;
}

.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }
.grid-2  { grid-template-columns: repeat(2, 1fr); }

/* Featured layout: large left + stack right */
.grid-featured {
    grid-template-columns: 3fr 2fr;
}

.post-card {
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--dd-transition);
}

.post-card:hover {
    border-color: var(--dd-border-hover);
    box-shadow: var(--dd-shadow);
    transform: translateY(-2px);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.04); }

/* Content type badge */
.content-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
}

.type-news      .content-type-badge { background: var(--type-news); }
.type-article   .content-type-badge { background: var(--type-article); }
.type-editorial .content-type-badge { background: var(--type-editorial); color: #1a1a1a; }
.type-video     .content-type-badge { background: var(--type-video); }
.type-gallery   .content-type-badge { background: var(--type-gallery); color: #1a1a1a; }
.type-podcast   .content-type-badge { background: var(--type-podcast); }
.type-review    .content-type-badge { background: var(--type-review); color: #1a1a1a; }

.post-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-category {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--dd-red);
    margin-bottom: 8px;
}

.post-card-category a { color: inherit; }
.post-card-category a:hover { opacity: 0.8; }

.post-card-title {
    font-size: 0.975rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    flex: 1;
    letter-spacing: -0.01em;
}

.post-card-title a { color: var(--dd-text-primary); }
.post-card-title a:hover { color: var(--dd-red); }

/* Large card variant */
.post-card-lg .post-card-image { aspect-ratio: 16/10; }
.post-card-lg .post-card-title { font-size: 1.2rem; }

.post-card-excerpt {
    font-size: 0.85rem;
    color: var(--dd-text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--dd-text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--dd-border);
    margin-top: auto;
    gap: 8px;
    flex-wrap: wrap;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 7px;
}

.post-card-author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* Horizontal card (list view) */
.post-card-h {
    flex-direction: row;
    gap: 0;
}

.post-card-h .post-card-image {
    width: 140px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
    border-radius: 0;
}

.post-card-h .post-card-body { padding: 16px; }
.post-card-h .post-card-title { font-size: 0.9rem; }

/* ── 14. CONTENT LAYOUT — WITH SIDEBAR ───────────────────────── */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}

.sticky-sidebar {
    position: sticky;
    top: calc(var(--dd-nav-height) + 56px);
}

/* ── 15. WIDGETS ─────────────────────────────────────────────── */
.widget {
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dd-text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dd-border);
}

/* Trending widget */
.trending-list { display: flex; flex-direction: column; gap: 14px; }

.trending-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.trending-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--dd-border-hover);
    line-height: 1;
    min-width: 28px;
    font-variant-numeric: tabular-nums;
}

.trending-title {
    font-size: 0.87rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dd-text-primary);
}

.trending-title:hover { color: var(--dd-red); }
.trending-meta { font-size: 0.75rem; color: var(--dd-text-muted); margin-top: 3px; }

/* ── 16. SINGLE ARTICLE ──────────────────────────────────────── */
.single-article { padding: 36px 0 72px; }

.article-header { margin-bottom: 32px; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--dd-text-muted);
}

.article-category-badge {
    background: var(--dd-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
}

.article-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--dd-text-primary);
}

/* Playfair Display for editorial style */
.post-type-editorial .article-title,
.post-type-news .article-title {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.01em;
}

.article-dek {
    font-size: 1.1rem;
    color: var(--dd-text-secondary);
    line-height: 1.65;
    border-left: 3px solid var(--dd-red);
    padding-left: 18px;
    margin-bottom: 24px;
    font-style: italic;
}

.article-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--dd-border);
    border-bottom: 1px solid var(--dd-border);
    margin-bottom: 28px;
    gap: 12px;
    flex-wrap: wrap;
}

.byline-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.byline-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dd-border);
}

.byline-name { font-size: 0.9rem; font-weight: 700; color: var(--dd-text-primary); }
.byline-info { font-size: 0.78rem; color: var(--dd-text-muted); }

.share-buttons { display: flex; gap: 8px; }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--dd-radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--dd-bg-input);
    border: 1px solid var(--dd-border);
    color: var(--dd-text-secondary);
    transition: var(--dd-transition);
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--dd-border-hover);
    color: var(--dd-text-primary);
}

.article-featured-image {
    border-radius: var(--dd-radius);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 16/8;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article body content */
.article-body {
    font-size: 1.05rem;
    line-height: 1.82;
    color: var(--dd-text-secondary);
    max-width: 740px;
}

.article-body h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dd-text-primary);
    margin: 36px 0 14px;
    letter-spacing: -0.02em;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dd-text-primary);
    margin: 28px 0 10px;
}

.article-body p { margin-bottom: 22px; }

.article-body a {
    color: var(--dd-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body blockquote {
    background: var(--dd-bg-tertiary);
    border-left: 4px solid var(--dd-red);
    border-radius: 0 var(--dd-radius-sm) var(--dd-radius-sm) 0;
    padding: 20px 24px;
    margin: 28px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dd-text-primary);
}

.article-body img {
    border-radius: var(--dd-radius-sm);
    margin: 24px 0;
    width: 100%;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 22px;
    list-style: disc;
}

.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }

.article-body code {
    background: var(--dd-bg-tertiary);
    border: 1px solid var(--dd-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.article-body pre {
    background: var(--dd-bg-tertiary);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

/* Video embed in content */
.video-embed {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--dd-radius);
    overflow: hidden;
    background: #000;
    margin: 24px 0;
}

.video-embed iframe,
.video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── 17. AUTHOR BOX ──────────────────────────────────────────── */
.author-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius);
    padding: 24px;
    margin: 40px 0;
}

.author-box-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--dd-red);
}

.author-box-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.author-box-bio  { font-size: 0.875rem; color: var(--dd-text-muted); line-height: 1.6; }

/* ── 18. VIDEO LIBRARY ───────────────────────────────────────── */
.video-card {
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius);
    overflow: hidden;
    transition: var(--dd-transition);
}

.video-card:hover {
    border-color: var(--dd-border-hover);
    box-shadow: var(--dd-shadow);
    transform: translateY(-2px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-thumbnail img { opacity: 1; }

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(230,57,70,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dd-transition);
}

.video-card:hover .video-play-btn {
    background: var(--dd-red);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-info { padding: 14px; }
.video-title { font-size: 0.9rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; color: var(--dd-text-primary); }
.video-title a { color: inherit; }
.video-title a:hover { color: var(--dd-red); }
.video-meta { font-size: 0.78rem; color: var(--dd-text-muted); }

/* ── 19. AD MARKETPLACE ──────────────────────────────────────── */
.ad-hero {
    background: linear-gradient(135deg, rgba(244,162,97,0.1), rgba(230,57,70,0.07));
    border: 1px solid rgba(244,162,97,0.2);
    border-radius: var(--dd-radius-lg);
    padding: 56px 40px;
    text-align: center;
    margin-bottom: 48px;
}

.ad-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.ad-hero h1 span { color: var(--dd-gold); }
.ad-hero p { color: var(--dd-text-secondary); max-width: 540px; margin: 0 auto 28px; font-size: 1.05rem; line-height: 1.65; }

.ad-card {
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius);
    overflow: hidden;
    transition: var(--dd-transition);
}

.ad-card:hover {
    border-color: rgba(244,162,97,0.3);
    box-shadow: 0 8px 28px rgba(244,162,97,0.1);
    transform: translateY(-2px);
}

.ad-card-image { aspect-ratio: 16/9; overflow: hidden; }
.ad-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ad-card:hover .ad-card-image img { transform: scale(1.04); }

.ad-card-body { padding: 18px; }

.ad-type-badge {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.ad-type-business  { background: rgba(67,97,238,0.12); color: var(--dd-blue); border: 1px solid rgba(67,97,238,0.25); }
.ad-type-classified { background: rgba(244,162,97,0.12); color: var(--dd-gold); border: 1px solid rgba(244,162,97,0.25); }
.ad-type-job       { background: rgba(6,214,160,0.12); color: var(--dd-green); border: 1px solid rgba(6,214,160,0.25); }
.ad-type-featured  { background: rgba(230,57,70,0.12); color: var(--dd-red); border: 1px solid rgba(230,57,70,0.25); }

.ad-card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.ad-card-title a { color: var(--dd-text-primary); }
.ad-card-title a:hover { color: var(--dd-gold); }

.ad-card-desc {
    font-size: 0.84rem;
    color: var(--dd-text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--dd-border);
    font-size: 0.8rem;
}

.ad-price { font-weight: 800; color: var(--dd-gold); font-size: 0.95rem; }
.ad-location { color: var(--dd-text-muted); }

/* Token payment badge */
.token-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.2);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dd-red);
}

/* ── 20. FORMS ───────────────────────────────────────────────── */
.fva-form { max-width: 720px; }

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dd-text-secondary);
    margin-bottom: 7px;
}

.form-input {
    width: 100%;
    background: var(--dd-bg-input);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
    padding: 11px 14px;
    color: var(--dd-text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--dd-transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--dd-red);
    box-shadow: 0 0 0 3px var(--dd-red-glow);
}

.form-input::placeholder { color: var(--dd-text-muted); }

textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input    { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-hint { font-size: 0.78rem; color: var(--dd-text-muted); margin-top: 5px; }

.form-error {
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: var(--dd-radius-sm);
    padding: 12px 16px;
    color: var(--dd-red);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.form-success {
    background: rgba(6,214,160,0.1);
    border: 1px solid rgba(6,214,160,0.3);
    border-radius: var(--dd-radius-sm);
    padding: 12px 16px;
    color: var(--dd-green);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* ── 21. WALLET ──────────────────────────────────────────────── */
.wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: var(--dd-bg-input);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
    color: var(--dd-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dd-transition);
    white-space: nowrap;
}

.wallet-btn:hover {
    border-color: var(--dd-border-hover);
    color: var(--dd-text-primary);
}

.wallet-btn.connected {
    border-color: rgba(6,214,160,0.4);
    color: var(--dd-green);
    background: rgba(6,214,160,0.07);
}

.wallet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ── 22. PAGINATION ──────────────────────────────────────────── */
.fva-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 36px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
    color: var(--dd-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--dd-transition);
    text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--dd-red);
    border-color: var(--dd-red);
    color: #fff;
}

/* ── 23. FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background: var(--dd-bg-secondary);
    border-top: 1px solid var(--dd-border);
    padding: 56px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--dd-border);
}

.footer-brand-name {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--dd-text-primary);
}

.footer-brand-name span { color: var(--dd-red); }

.footer-tagline {
    font-size: 0.875rem;
    color: var(--dd-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 260px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dd-bg-input);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
    color: var(--dd-text-muted);
    font-size: 0.8rem;
    transition: var(--dd-transition);
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--dd-red);
    border-color: var(--dd-red);
    color: #fff;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dd-text-muted);
    margin-bottom: 14px;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }

.footer-links a {
    font-size: 0.875rem;
    color: var(--dd-text-muted);
    transition: var(--dd-transition);
    text-decoration: none;
}

.footer-links a:hover { color: var(--dd-text-primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 0.78rem;
    color: var(--dd-text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--dd-text-muted); }
.footer-bottom-links a:hover { color: var(--dd-text-primary); }

/* ── 24. PODCAST STRIP ───────────────────────────────────────── */
.podcast-strip {
    background: linear-gradient(135deg, rgba(58,134,255,0.08), transparent);
    border: 1px solid rgba(58,134,255,0.15);
    border-radius: var(--dd-radius-lg);
    padding: 32px;
    margin: 48px 0;
}

.podcast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }

.podcast-ep {
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius);
    padding: 18px;
    transition: var(--dd-transition);
}

.podcast-ep:hover { border-color: rgba(58,134,255,0.3); transform: translateY(-2px); }

.podcast-ep-num { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--type-podcast); margin-bottom: 8px; }
.podcast-ep-title { font-size: 0.9rem; font-weight: 700; line-height: 1.4; color: var(--dd-text-primary); margin-bottom: 10px; }
.podcast-ep-title a { color: inherit; }
.podcast-ep-title a:hover { color: var(--type-podcast); }
.podcast-ep-meta { font-size: 0.78rem; color: var(--dd-text-muted); display: flex; gap: 12px; }

/* ── 25. FCFVA CONNECT BLOCK ─────────────────────────────────── */
.fcfva-connect-block {
    background: linear-gradient(135deg, rgba(67,97,238,0.07), rgba(230,57,70,0.05));
    border: 1px solid rgba(67,97,238,0.12);
    border-radius: var(--dd-radius-lg);
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}

.fcfva-connect-block h2 { font-size: 1.8rem; margin-bottom: 10px; }
.fcfva-connect-block h2 span { color: var(--dd-blue); }
.fcfva-connect-block p { color: var(--dd-text-muted); max-width: 480px; margin: 0 auto 24px; }

.fcfva-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.fcfva-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-sm);
    color: var(--dd-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--dd-transition);
    text-decoration: none;
}

.fcfva-link:hover {
    border-color: var(--dd-border-hover);
    color: var(--dd-text-primary);
    transform: translateY(-1px);
}

/* ── 26. SSO LOGIN ───────────────────────────────────────────── */
.login-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-box {
    background: var(--dd-bg-card);
    border: 1px solid var(--dd-border);
    border-radius: var(--dd-radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--dd-shadow);
}

.login-logo { text-align: center; margin-bottom: 24px; }
.login-title { font-size: 1.5rem; font-weight: 900; text-align: center; margin-bottom: 6px; }
.login-sub { font-size: 0.875rem; color: var(--dd-text-muted); text-align: center; margin-bottom: 28px; }

.btn-fcfva-sso {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, var(--dd-red), var(--dd-purple));
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 0.95rem;
    border-radius: var(--dd-radius-sm);
    margin-bottom: 16px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--dd-text-muted);
    font-size: 0.78rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--dd-border);
}

/* ── 27. TAGS ────────────────────────────────────────────────── */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.tag-link {
    display: inline-block;
    background: var(--dd-bg-input);
    border: 1px solid var(--dd-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dd-text-muted);
    transition: var(--dd-transition);
    text-decoration: none;
}

.tag-link:hover {
    border-color: var(--dd-red);
    color: var(--dd-red);
}

/* ── 28. UTILITY ─────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-red    { color: var(--dd-red) !important; }
.text-gold   { color: var(--dd-gold) !important; }
.text-blue   { color: var(--dd-blue) !important; }
.text-green  { color: var(--dd-green) !important; }
.text-muted  { color: var(--dd-text-muted) !important; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--dd-border); margin: 32px 0; }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.gap-8 { gap: 8px; }
.flex  { display: flex; }
.items-center { align-items: center; }

/* ── 29. RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-3  { grid-template-columns: repeat(2, 1fr); }
    .grid-4  { grid-template-columns: repeat(2, 1fr); }
    .grid-featured { grid-template-columns: 1fr; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .sticky-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .podcast-grid { grid-template-columns: repeat(2, 1fr); }
    .primary-nav { display: none; }
    .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
    :root { --dd-nav-height: 56px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .podcast-grid { grid-template-columns: 1fr; }
    .hero-section { min-height: 50vh; }
    .hero-title { font-size: 1.6rem; }
    .ad-hero { padding: 32px 20px; }
    .fcfva-connect-block { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .article-byline { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .post-card-h { flex-direction: column; }
    .post-card-h .post-card-image { width: 100%; aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
    .dd-container,
    .dd-container-wide { padding: 0 14px; }
    .header-inner { padding: 0 14px; }
    .login-box { padding: 28px 20px; }
    .share-buttons { display: none; }
    .header-actions .wallet-btn { display: none; }
}

/* ── 30. MOBILE NAV (open state) ─────────────────────────────── */
.primary-nav.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--dd-nav-height);
    left: 0;
    right: 0;
    background: var(--dd-bg-header);
    border-bottom: 1px solid var(--dd-border);
    padding: 12px 16px;
    gap: 2px;
    backdrop-filter: blur(20px);
    z-index: 9999;
}

.primary-nav.nav-open a { padding: 10px 14px; }

/* ── 31. PRINT ───────────────────────────────────────────────── */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .breaking-ticker,
    .category-bar,
    .share-buttons { display: none !important; }
    .site-main { padding-top: 0 !important; }
    .article-body { font-size: 12pt; line-height: 1.5; color: #000; }
}
