/* ═══════════════════════════════════════════════════════════════
   InvestmentCommander.com — Main Stylesheet
   Dark investment theme with gold accents
   ═══════════════════════════════════════════════════════════════ */

:root {
    --color-gold: #f0b90b;
    --color-gold-light: #f5cc3b;
    --color-dark: #0b0e11;
    --color-dark-card: #1a1a2e;
    --color-dark-surface: #16213e;
    --color-green: #0ecb81;
    --color-red: #f6465d;
    --color-text: #eaecef;
    --color-muted: #848e9c;
    --bg-page: #0b0e11;
    --bg-card: #1e2329;
    --radius: 12px;
    --shadow: 0 2px 20px rgba(0,0,0,0.3);
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-gold-light); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navigation ────────────────────────────────────────────── */
.main-nav {
    background: #1e2329;
    box-shadow: 0 1px 8px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold);
    white-space: nowrap;
}
.nav-logo:hover { color: var(--color-gold-light); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-categories {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.nav-categories a, .nav-dropdown-btn {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}
.nav-categories a:hover, .nav-dropdown-btn:hover { color: var(--color-gold); }
.nav-dropdown { position: relative; }
.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2b3139;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    padding: 0.5rem 0;
    min-width: 220px;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}
.nav-dropdown-content a:hover { background: #363c44; color: var(--color-gold); }
.nav-cta {
    background: var(--color-gold);
    color: #000 !important;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--color-gold-light); }

/* ── Hero Section ──────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0b0e11 100%);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?w=1920&q=80') center/cover no-repeat;
    opacity: 0.15;
}
.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 3rem 1.5rem;
    max-width: 700px;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--color-muted);
}
.hero-cta {
    display: inline-block;
    background: var(--color-gold);
    color: #000 !important;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: var(--color-gold-light); transform: translateY(-1px); }

/* ── Why Section ───────────────────────────────────────────── */
.why-section { padding: 4rem 0; }
.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.why-tile {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    border: 1px solid #2b3139;
}
.why-tile:hover { transform: translateY(-3px); }
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-tile h3 { font-family: var(--font-heading); margin-bottom: 0.5rem; font-size: 1.1rem; color: var(--color-text); }
.why-tile p { color: var(--color-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Featured Post ─────────────────────────────────────────── */
.featured-section { padding: 3rem 0; }
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #2b3139;
}
.featured-image {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #2b3139;
}
.featured-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.featured-body h3 a { color: var(--color-text); }
.featured-body h3 a:hover { color: var(--color-gold); }
.featured-body p { color: var(--color-muted); margin-bottom: 1rem; font-size: 0.95rem; }

/* ── Category Grid ─────────────────────────────────────────── */
.categories-section { padding: 3rem 0; background: #12151a; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.cat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-gold);
    transition: transform 0.2s, border-color 0.2s;
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--color-green); }
.cat-name { display: block; font-weight: 600; color: var(--color-text); font-size: 0.95rem; }
.cat-count { display: block; font-size: 0.8rem; color: var(--color-muted); margin-top: 0.25rem; }

/* ── Category Badge ────────────────────────────────────────── */
.category-badge {
    display: inline-block;
    background: var(--color-gold);
    color: #000;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* ── Posts Grid ────────────────────────────────────────────── */
.latest-section { padding: 3rem 0; }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #2b3139;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 4px 30px rgba(240,185,11,0.1); }
.post-card-image {
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #2b3139;
}
.post-card-body { padding: 1.25rem; }
.post-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.post-card-body h3 a { color: var(--color-text); }
.post-card-body h3 a:hover { color: var(--color-gold); }
.post-card-body p { color: var(--color-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.75rem; }
.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-muted);
}
.read-more {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.85rem;
}
.read-more:hover { color: var(--color-gold-light); }

/* ── Post Page ─────────────────────────────────────────────── */
.post-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-page) 100%);
}
.post-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--color-muted);
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb span { margin: 0 0.3rem; }
.post-header { margin-bottom: 2rem; }
.post-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}
.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}
.reading-time::before { content: '·'; margin-right: 0.5rem; }

/* ── Post Content ──────────────────────────────────────────── */
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d1d4dc;
}
.post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--color-text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2b3139;
}
.post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
    color: var(--color-text);
}
.post-content p { margin-bottom: 1.25rem; }
.post-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 2rem 0;
}
.post-content ul, .post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.post-content li { margin-bottom: 0.5rem; }
.post-content a { color: var(--color-gold); font-weight: 500; text-decoration: underline; }
.post-content a.cta-btn { color: #000; text-decoration: none; }
.post-content strong { color: var(--color-text); }

/* TL;DR Box */
.tldr-box {
    background: #1a1a2e;
    border-left: 4px solid var(--color-gold);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* TOC Box */
.toc-box {
    background: var(--bg-card);
    border: 1px solid #2b3139;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.toc-box strong { font-size: 1rem; display: block; margin-bottom: 0.75rem; color: var(--color-text); }
.toc-list { padding-left: 1.25rem; margin: 0; }
.toc-list li { margin-bottom: 0.4rem; }
.toc-list a { color: var(--color-gold); font-size: 0.9rem; }

/* FAQ Section */
.faq-section { margin: 0; }
.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--color-text); }
.faq-item p { color: var(--color-muted); }

/* ── Post CTA Buttons ──────────────────────────────────────── */
.post-cta-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}
.post-cta-banner strong { color: var(--color-text); }
.post-cta-banner a { color: var(--color-gold); }

.post-cta-box {
    background: var(--bg-card);
    border: 1px solid #2b3139;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}
.post-cta-box h3 { margin-top: 0; margin-bottom: 0.5rem; color: var(--color-text); font-size: 1.1rem; }
.post-cta-box p { color: var(--color-muted); margin-bottom: 0; font-size: 0.95rem; }

.cta-block {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f1923 50%, #1a1a2e 100%);
    border: 1px solid rgba(240, 185, 11, 0.25);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f0b90b, transparent);
}
.cta-block-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}
.cta-logo {
    max-width: 240px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    border-radius: 8px;
}
.cta-block-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}
.cta-block-sub {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #f0b90b 0%, #d4a30a 100%);
    color: #000;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-heading);
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(240, 185, 11, 0.3);
    transition: all 0.25s ease;
    position: relative;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(240, 185, 11, 0.5);
    background: linear-gradient(135deg, #f5cc3b 0%, #f0b90b 100%);
    color: #000;
    text-decoration: none;
}
.cta-btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.25s;
}
.cta-btn:hover .cta-btn-arrow { transform: translateX(3px); }
.cta-bonus-highlight {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 0.35rem;
}

.cta-referral-code {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-muted);
}
.referral-code {
    display: inline-block;
    background: rgba(240, 185, 11, 0.12);
    border: 1px dashed var(--color-gold);
    color: var(--color-gold);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 1.5px;
    user-select: all;
}

/* ── Share Buttons ─────────────────────────────────────────── */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid #2b3139;
    margin-top: 2rem;
    font-size: 0.9rem;
}
.share-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #2b3139;
    background: var(--bg-card);
    color: var(--color-muted);
    cursor: pointer;
    text-decoration: none;
}
.share-btn:hover { background: #2b3139; color: var(--color-text); }

.author-credit {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    border-bottom: 1px solid #2b3139;
}

/* ── Related Posts ─────────────────────────────────────────── */
.related-posts { margin-top: 2.5rem; }
.related-posts h3 { font-family: var(--font-heading); margin-bottom: 1rem; color: var(--color-text); }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.related-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    border: 1px solid #2b3139;
}
.related-card:hover { transform: translateY(-2px); }
.related-image { height: 120px; background-size: cover; background-position: center; background-color: #2b3139; }
.related-card h4 { padding: 0.75rem; font-size: 0.85rem; line-height: 1.3; color: var(--color-text); }

/* ── Affiliate Disclosure Banner ───────────────────────────── */
.affiliate-disclosure-banner {
    margin: 1.5rem 0 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.5;
}
.affiliate-disclosure-banner strong { color: var(--color-gold); }

/* ── Risk Disclaimer ───────────────────────────────────────── */
.risk-disclaimer {
    margin: 2rem 0;
    background: rgba(246,70,93,0.1);
    border: 1px solid rgba(246,70,93,0.3);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.6;
}
.risk-disclaimer strong { color: var(--color-red); }

/* ── Category Page ─────────────────────────────────────────── */
.category-page { padding: 2rem 0 4rem; }
.category-header { margin-bottom: 2rem; }
.category-header h1 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 0.25rem; color: var(--color-text); }
.category-header p { color: var(--color-muted); font-size: 0.95rem; }

/* ── Page Content (static pages) ───────────────────────────── */
.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.page-content h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}
.page-content h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
    color: var(--color-text);
}
.page-content p { margin-bottom: 1rem; line-height: 1.7; color: var(--color-muted); }
.page-content ul { margin: 0.5rem 0 1rem 1.5rem; color: var(--color-muted); }
.page-content li { margin-bottom: 0.4rem; }

.about-disclaimer {
    background: #1a1a2e;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--color-gold);
    color: #000 !important;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--color-gold-light); }

/* ── Error Pages ───────────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 6rem 1.5rem;
}
.error-content h1 { font-size: 5rem; color: var(--color-gold); font-weight: 700; }
.error-content h2 { font-size: 1.5rem; margin: 1rem 0; color: var(--color-text); }
.error-content p { color: var(--color-muted); margin-bottom: 2rem; }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--color-muted);
}
.empty-state p { margin-bottom: 1.5rem; font-size: 1rem; }

/* ── Flash Messages ────────────────────────────────────────── */
.flash-messages { max-width: 1200px; margin: 0.5rem auto; padding: 0 1.5rem; }
.flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.flash-success { background: rgba(14,203,129,0.15); color: var(--color-green); }
.flash-error { background: rgba(246,70,93,0.15); color: var(--color-red); }
.flash-info { background: rgba(240,185,11,0.15); color: var(--color-gold); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: #1e2329;
    color: var(--color-muted);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid #2b3139;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 { color: var(--color-text); font-size: 1rem; margin-bottom: 0.75rem; }
.footer-col p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-col a { color: var(--color-muted); font-size: 0.85rem; }
.footer-col a:hover { color: var(--color-gold); }
.footer-disclaimer {
    border-top: 1px solid #2b3139;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: #5e6673;
    line-height: 1.5;
}
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #5e6673;
    padding-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #1e2329;
        flex-direction: column;
        padding: 1rem 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .nav-links.open { display: flex; }
    .nav-categories { flex-direction: column; align-items: flex-start; gap: 0.75rem; width: 100%; }
    .nav-cta { width: 100%; text-align: center; margin-top: 0.5rem; }
    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }
    .nav-dropdown:hover .nav-dropdown-content { display: block; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-image { min-height: 200px; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .hero-section { min-height: 360px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .post-hero { height: 250px; }
}

/* ═══════════════════════════════════════════════════════════════
   Deals Box (Current Deals section in posts)
   ═══════════════════════════════════════════════════════════════ */
.deals-box {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.08), rgba(240, 185, 11, 0.03));
    border: 1px solid rgba(240, 185, 11, 0.25);
    border-left: 4px solid var(--color-gold);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}
.deals-box strong { color: var(--color-gold); font-size: 1.1rem; display: block; margin-bottom: 0.75rem; }
.deals-box ul { list-style: none; padding: 0; margin: 0; }
.deals-box li { padding: 0.4rem 0; color: var(--color-text); line-height: 1.6; }
.deals-box a { color: var(--color-gold); font-weight: 600; text-decoration: none; }
.deals-box a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   Platform Pages
   ═══════════════════════════════════════════════════════════════ */

/* Platforms section on home page */
.platforms-section { padding: 4rem 0; }
.platforms-section .section-subtitle { color: var(--color-muted); text-align: center; margin-bottom: 2rem; }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.platform-tile {
    display: block;
    background: var(--bg-card);
    border: 1px solid rgba(240, 185, 11, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.3s, transform 0.2s;
}
.platform-tile:hover { border-color: var(--color-gold); transform: translateY(-3px); }
.platform-tile h3 { color: var(--color-gold); margin-bottom: 0.5rem; font-size: 1.2rem; }
.platform-tile p { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.platform-tile .view-deals { color: var(--color-gold); font-weight: 600; font-size: 0.9rem; }

/* Platforms listing page */
.platforms-page { padding: 3rem 0; }
.platforms-page h1 { color: var(--color-text); margin-bottom: 0.5rem; }
.platforms-page .page-intro { color: var(--color-muted); margin-bottom: 2.5rem; max-width: 700px; }
.platform-card {
    background: var(--bg-card);
    border: 1px solid rgba(240, 185, 11, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}
.platform-card:hover { border-color: var(--color-gold); }
.platform-card h2 { margin-bottom: 0.3rem; }
.platform-card h2 a { color: var(--color-gold); text-decoration: none; }
.platform-card h2 a:hover { text-decoration: underline; }
.platform-card .platform-card-tagline { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.platform-card p { color: var(--color-text); margin-bottom: 1rem; line-height: 1.6; }
.platform-card-features { list-style: none; margin-bottom: 1.5rem; }
.platform-card-features li { color: var(--color-text); padding: 0.25rem 0; font-size: 0.95rem; }
.btn-primary {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--color-gold-light); }

/* Individual platform page */
.platform-page { padding: 3rem 0; }
.breadcrumb { color: var(--color-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.breadcrumb a { color: var(--color-gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.platform-hero { margin-bottom: 2.5rem; }
.platform-hero h1 { color: var(--color-text); font-size: 2rem; margin-bottom: 0.5rem; }
.platform-tagline { color: var(--color-gold); font-size: 1.15rem; font-weight: 500; }
.platform-content h2 { color: var(--color-text); margin-top: 2rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(240,185,11,0.15); padding-bottom: 0.5rem; }
.platform-description p { color: var(--color-text); line-height: 1.7; }
.feature-list { list-style: none; }
.feature-list li { padding: 0.5rem 0; color: var(--color-text); font-size: 1rem; line-height: 1.5; }
.platform-posts { margin-top: 2rem; }
.platform-faq { margin-top: 2.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 1.5rem; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(240, 185, 11, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.faq-item h3 { color: var(--color-gold); margin-bottom: 0.5rem; font-size: 1.05rem; }
.faq-item p { color: var(--color-text); line-height: 1.6; }

@media (max-width: 768px) {
    .platforms-grid { grid-template-columns: 1fr; }
    .platform-hero h1 { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Subscribe Section (Email List + RSS)
   ═══════════════════════════════════════════════════════════════ */
.subscribe-section { padding: 3rem 0 4rem; }

.subscribe-block {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(240, 185, 11, 0.08);
}
.subscribe-block-post { margin-top: 2.5rem; }
.subscribe-block-mid { margin: 2rem 0; }

.subscribe-inner {
    padding: 2.5rem 2rem;
    text-align: center;
}
.subscribe-inner h2, .subscribe-inner h3 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.subscribe-inner > p {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.subscribe-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.subscribe-options-compact { gap: 1rem; }

.subscribe-email-col { flex: 1; min-width: 280px; max-width: 400px; }
.subscribe-rss-col { flex-shrink: 0; text-align: center; }

.subscribe-form {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.subscribe-form input[type="email"] {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 2px solid #2b3139;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #12151a;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.subscribe-form input[type="email"]:focus {
    border-color: var(--color-gold);
}
.subscribe-form input[type="email"]::placeholder {
    color: var(--color-muted);
}
.subscribe-form button {
    padding: 0.85rem 1.25rem;
    background: var(--color-gold);
    color: #000;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
    transition: background 0.2s;
}
.subscribe-form button:hover { background: var(--color-gold-light); }
.subscribe-form button:disabled { opacity: 0.6; cursor: not-allowed; }

.subscribe-divider {
    display: flex;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.subscribe-divider span {
    padding: 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscribe-rss-btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: var(--color-gold) !important;
    border: 2px solid var(--color-gold);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.subscribe-rss-btn:hover {
    background: var(--color-gold);
    color: #000 !important;
}

.subscribe-rss-note {
    color: var(--color-muted);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.subscribe-msg {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    min-height: 1.2em;
}
.subscribe-msg-ok { color: var(--color-green); }
.subscribe-msg-err { color: var(--color-red); }

/* ═══════════════════════════════════════════════════════════════
   RSS Subscribe Page
   ═══════════════════════════════════════════════════════════════ */
.rss-subscribe-page { padding: 2rem 0 4rem; }

.rss-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}
.rss-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.rss-hero h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}
.rss-subtitle {
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.rss-feed-url-box {
    max-width: 550px;
    margin: 2rem auto;
    text-align: center;
}
.rss-feed-url-box label {
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.rss-url-copy {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.rss-url-copy input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: #12151a;
    color: var(--color-gold);
    border: 2px solid #2b3139;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
}
.rss-url-copy button {
    padding: 0.85rem 1.25rem;
    background: var(--color-gold);
    color: #000;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: background 0.2s;
}
.rss-url-copy button:hover { background: var(--color-gold-light); }

.rss-readers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.rss-reader-card {
    background: var(--bg-card);
    border: 1px solid #2b3139;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.rss-reader-card h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.rss-reader-card > p {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.rss-reader-card ol {
    padding-left: 1.25rem;
    color: var(--color-text);
}
.rss-reader-card ol li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.rss-reader-card code {
    background: #12151a;
    color: var(--color-gold);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    word-break: break-all;
}

.rss-also-email {
    max-width: 500px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid #2b3139;
    border-radius: var(--radius);
}
.rss-also-email h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.rss-also-email > p {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .subscribe-options { flex-direction: column; gap: 1rem; }
    .subscribe-email-col { min-width: 100%; max-width: 100%; }
    .subscribe-form { flex-direction: column; }
    .subscribe-form input[type="email"] {
        border-right: 2px solid #2b3139;
        border-radius: 8px 8px 0 0;
        border-bottom: none;
    }
    .subscribe-form button { border-radius: 0 0 8px 8px; }
    .subscribe-divider span::before,
    .subscribe-divider span::after {
        content: '———';
        color: #2b3139;
        padding: 0 0.5rem;
    }
    .rss-url-copy { flex-direction: column; }
    .rss-url-copy input {
        border-right: 2px solid #2b3139;
        border-radius: 8px 8px 0 0;
        border-bottom: none;
    }
    .rss-url-copy button { border-radius: 0 0 8px 8px; }
    .rss-readers-grid { grid-template-columns: 1fr; }
}
