/* ================================================================
   UMMAH.BUZZ - "The Front Page of the Muslim Internet"
   Design System v1.0.0
   Extracted from ummah.city palette. Dark mode only. Mobile-first.
   ================================================================ */

/* ===== TOKENS ===== */
:root {
    --buzz-void: #060B18;
    --buzz-deep: #0A1128;
    --buzz-surface: #0F1A33;
    --buzz-border: #1A2744;
    --buzz-border-alpha: rgba(26, 39, 68, 0.8);
    --buzz-gold: #DFA032;
    --buzz-gold-light: #F0C96E;
    --buzz-gold-dim: #8B6914;
    --buzz-gold-glow: rgba(223, 160, 50, 0.15);
    --buzz-teal: #14B8A6;
    --buzz-teal-dark: #0D9488;
    --buzz-text: #C8D0E0;
    --buzz-text-muted: #6B7280;
    --buzz-text-dim: #4B5563;
    --buzz-heading: #FFFFFF;
    --buzz-card-bg: linear-gradient(145deg, rgba(15, 26, 51, 0.7), rgba(6, 11, 24, 0.85));
    --buzz-card-border: rgba(26, 39, 68, 0.8);
    --buzz-header-bg: rgba(6, 11, 24, 0.85);
    --buzz-header-border: rgba(26, 39, 68, 0.5);
    --buzz-input-bg: rgba(6, 11, 24, 0.6);
    --buzz-hover-wash: rgba(223, 160, 50, 0.06);
    --buzz-gold-tint-strong: rgba(223, 160, 50, 0.12);
    --buzz-danger: #EF4444;
    --buzz-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --buzz-radius: 14px;
    --buzz-radius-sm: 8px;
    --buzz-radius-pill: 9999px;
}

/* ===== LIGHT MODE =====
   Brand-aligned "warm cream" palette shared with ummah.email + UmmahPlaces.
   Cream background (#FAF7F2), ink text (#2C2417), brass (#C8912E) preserved,
   teal darkened (#0D9488) for AA contrast against cream.
   Apr 19 — Alisha requested a light/day mode because grey text on dark was
   hard to read even at full brightness. */
[data-theme="light"] {
    --buzz-void: #FAF7F2;           /* page background */
    --buzz-deep: #F5F0E8;           /* slightly darker variant */
    --buzz-surface: #FFFFFF;        /* card body */
    --buzz-border: #E8E1D4;         /* warm-200 border */
    --buzz-border-alpha: rgba(232, 225, 212, 0.9);
    --buzz-gold: #C8912E;           /* brass dark enough for AA on cream */
    --buzz-gold-light: #DFA032;
    --buzz-gold-dim: #A6751F;
    --buzz-gold-glow: rgba(200, 145, 46, 0.15);
    --buzz-teal: #0D9488;           /* darkened for AA contrast on cream */
    --buzz-teal-dark: #0B7A6F;
    --buzz-text: #2C2417;           /* ink */
    --buzz-text-muted: #5C5040;     /* ink-light */
    --buzz-text-dim: #8A7E6D;       /* ink-muted */
    --buzz-heading: #1F1A10;
    --buzz-card-bg: #FFFFFF;        /* solid card, no gradient in light mode */
    --buzz-card-border: rgba(232, 225, 212, 0.95);
    --buzz-header-bg: rgba(250, 247, 242, 0.92);
    --buzz-header-border: rgba(232, 225, 212, 0.8);
    --buzz-input-bg: rgba(255, 255, 255, 0.9);
    --buzz-hover-wash: rgba(200, 145, 46, 0.07);
    --buzz-gold-tint-strong: rgba(200, 145, 46, 0.14);
    --buzz-danger: #C0392B;
    color-scheme: light;
}
/* Hide dark-mode-only ambient effects — they clash with cream. */
[data-theme="light"] .starfield,
[data-theme="light"] .grain,
[data-theme="light"] .cursor-glow { display: none !important; }

/* Smooth the flip so it doesn't feel harsh — but keep it fast. */
html { transition: background-color 0.2s var(--buzz-ease); }
body { transition: background-color 0.2s var(--buzz-ease), color 0.2s var(--buzz-ease); }

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--buzz-void);
    color: var(--buzz-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 72px; /* Mobile nav clearance */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}
button { cursor: pointer; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--buzz-void); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--buzz-border), var(--buzz-gold));
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2A3A5E, var(--buzz-gold-light));
}

/* ===== STARFIELD ===== */
.starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.star-dot {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: starPulse var(--dur) ease-in-out infinite;
    animation-delay: var(--del);
}
@keyframes starPulse {
    0%, 100% { opacity: var(--min-o); transform: scale(1); }
    50% { opacity: var(--max-o); transform: scale(1.4); }
}

/* ===== GRAIN OVERLAY ===== */
.grain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223, 160, 50, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: left, top;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--buzz-ease), transform 0.8s var(--buzz-ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ===== HEADER / MASTHEAD ===== */
.buzz-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--buzz-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--buzz-header-border);
    padding: 0 1rem;
}
.buzz-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 1rem;
}
.buzz-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.buzz-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--buzz-heading);
    letter-spacing: -0.02em;
}
.buzz-logo-text span {
    color: var(--buzz-gold);
}
.buzz-tagline {
    font-size: 0.6875rem;
    color: var(--buzz-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
    max-width: 200px;
}
.buzz-district-badge {
    font-size: 0.625rem;
    color: var(--buzz-teal);
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 2px 8px;
    border-radius: var(--buzz-radius-pill);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.buzz-district-badge:hover {
    background: rgba(20, 184, 166, 0.15);
}
.buzz-header-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.buzz-avatar-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--buzz-gold);
}
.buzz-btn-signin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(223, 160, 50, 0.12);
    border: 1px solid rgba(223, 160, 50, 0.25);
    border-radius: var(--buzz-radius-pill);
    color: var(--buzz-gold);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.buzz-btn-signin:hover {
    background: rgba(223, 160, 50, 0.2);
    border-color: rgba(223, 160, 50, 0.4);
    transform: translateY(-1px);
}
.buzz-btn-signin:active {
    transform: translateY(0);
}
.buzz-btn-logout {
    font-size: 0.75rem;
    color: var(--buzz-text-muted);
    transition: color 0.3s ease;
}
.buzz-btn-logout:hover { color: var(--buzz-danger); }

/* Desktop Submit button — subtle teal secondary action, distinct from the brass
   auth block. Hidden on mobile (mobile-nav already owns Submit). */
.buzz-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: var(--buzz-radius-pill);
    color: var(--buzz-teal);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.25s var(--buzz-ease);
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.buzz-btn-submit:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-1px);
}
.buzz-btn-submit:active { transform: translateY(0); }
.buzz-btn-submit.active {
    background: rgba(20, 184, 166, 0.24);
    border-color: rgba(20, 184, 166, 0.5);
}
@media (max-width: 768px) {
    .buzz-btn-submit { display: none; }
}

/* Desktop header search */
.header-search-wrap {
    flex: 1;
    max-width: 320px;
    display: none;
}
@media (min-width: 768px) {
    .header-search-wrap { display: block; }
}
.header-search-wrap .buzz-search {
    height: 36px;
    font-size: 0.8125rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    padding: 3rem 1rem 2rem;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--buzz-heading);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.625rem;
}
.hero-title .gold {
    background: linear-gradient(105deg, var(--buzz-gold), var(--buzz-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(223, 160, 50, 0.2));
}
.hero-sub {
    font-size: clamp(0.875rem, 2.5vw, 1.0625rem);
    color: var(--buzz-text-muted);
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    min-height: 44px;
    background: linear-gradient(135deg, var(--buzz-gold), var(--buzz-gold-dim));
    color: #060B18;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--buzz-radius-pill);
    transition: all 0.3s var(--buzz-ease);
    box-shadow: 0 4px 20px rgba(223, 160, 50, 0.25);
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(223, 160, 50, 0.35);
}
.hero-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(223, 160, 50, 0.2);
}
.hero-cta svg {
    width: 16px;
    height: 16px;
}
.hero-promo {
    text-align: center;
}
.hero-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    min-height: 44px;
    background: linear-gradient(135deg, var(--buzz-teal), #0f9484);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--buzz-radius-pill);
    text-decoration: none;
    transition: all 0.3s var(--buzz-ease);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.25);
}
.hero-promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.35);
}
.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(223, 160, 50, 0.06);
    border: 1px solid rgba(223, 160, 50, 0.15);
    border-radius: var(--buzz-radius-pill);
    color: var(--buzz-gold-dim);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ===== LAYOUT ===== */
.buzz-layout {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}
.buzz-feed {
    flex: 1;
    min-width: 0;
    max-width: 680px;
}
.buzz-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: none;
}
@media (min-width: 960px) {
    .buzz-sidebar { display: block; }
}

/* ===== HERO CARD (top story) — Apr 20 Saad feedback ===== */
.buzz-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--buzz-card-bg);
    border: 1px solid var(--buzz-card-border);
    border-radius: var(--buzz-radius);
    margin-bottom: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s var(--buzz-ease);
    position: relative;
    min-height: 280px;
}
.buzz-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(223, 160, 50, 0.5), transparent);
    z-index: 2;
}
.buzz-hero:hover {
    border-color: rgba(223, 160, 50, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(223, 160, 50, 0.08);
    transform: translateY(-2px);
}
.buzz-hero-image {
    position: relative;
    min-height: 280px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.buzz-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--buzz-ease);
}
.buzz-hero:hover .buzz-hero-image img { transform: scale(1.02); }
.buzz-hero-content {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}
.buzz-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #E8C252;
    padding: 0.25rem 0.6rem;
    background: rgba(223, 160, 50, 0.1);
    border: 1px solid rgba(223, 160, 50, 0.25);
    border-radius: 999px;
    align-self: flex-start;
}
.buzz-hero-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: -0.01em;
}
.buzz-hero-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.buzz-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    flex-wrap: wrap;
    margin-top: 0.25rem;
}
@media (max-width: 768px) {
    .buzz-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .buzz-hero-image { min-height: 200px; }
    .buzz-hero-title { font-size: 1.2rem; }
    .buzz-hero-content { padding: 1.25rem; }
}
/* Light-mode override */
[data-theme="light"] .buzz-hero-title { color: #2C2417; }
[data-theme="light"] .buzz-hero-desc { color: rgba(44, 36, 23, 0.65); }
[data-theme="light"] .buzz-hero-meta { color: rgba(44, 36, 23, 0.55); }
[data-theme="light"] .buzz-hero-badge { color: #C8912E; background: rgba(200, 145, 46, 0.1); border-color: rgba(200, 145, 46, 0.25); }

/* ===== FEED CARDS (buzz-card) ===== */
.buzz-card {
    display: flex;
    align-items: stretch;
    background: var(--buzz-card-bg);
    border: 1px solid var(--buzz-card-border);
    border-radius: var(--buzz-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.35s var(--buzz-ease);
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.buzz-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(223, 160, 50, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.buzz-card:hover::before { opacity: 1; }
.buzz-card:hover {
    border-color: rgba(223, 160, 50, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(223, 160, 50, 0.04);
    transform: translateY(-1px);
}
.buzz-card:active {
    transform: translateY(0);
}

/* Vote column */
.vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    min-width: 48px;
    gap: 2px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    border-right: 1px solid rgba(26, 39, 68, 0.4);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.vote-col:hover {
    background: rgba(223, 160, 50, 0.04);
}
.vote-col:active {
    background: rgba(223, 160, 50, 0.08);
}
.vote-arrow {
    width: 24px;
    height: 24px;
    padding: 4px;
    color: var(--buzz-text-dim);
    transition: all 0.3s var(--buzz-ease);
}
.vote-col:hover .vote-arrow { color: var(--buzz-text-muted); }
.vote-col.voted .vote-arrow {
    color: var(--buzz-gold);
    filter: drop-shadow(0 0 6px rgba(223, 160, 50, 0.5));
    transform: scale(1.2);
}
.vote-score {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--buzz-text-muted);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s var(--buzz-ease);
}
.vote-col.voted .vote-score {
    color: var(--buzz-gold);
}

/* Vote bounce animation */
@keyframes voteBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.vote-col.vote-animate .vote-arrow {
    animation: voteBounce 0.4s var(--buzz-ease);
}

/* Card content area */
.card-content {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--buzz-heading);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.card-title:hover { color: var(--buzz-gold); }

.card-description {
    font-size: 0.8125rem;
    color: var(--buzz-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.6875rem;
    color: var(--buzz-text-muted);
}
.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}
.card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    color: var(--buzz-text-dim);
    transition: color 0.2s ease;
    cursor: pointer;
}
.card-action-btn:hover { color: var(--buzz-text); }
.card-action-btn svg { width: 14px; height: 14px; }

/* Card thumbnail */
.card-thumb {
    width: 80px;
    min-height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 0.5rem 0.5rem 0.5rem 0;
    border-radius: var(--buzz-radius-sm);
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--buzz-radius-sm);
}

/* ===== BADGES ===== */
.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(15, 26, 51, 0.6);
    border: 1px solid rgba(26, 39, 68, 0.5);
    border-radius: var(--buzz-radius-pill);
    font-size: 0.625rem;
    color: var(--buzz-text-muted);
    white-space: nowrap;
}
.domain-badge img {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}
.text-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: var(--buzz-radius-pill);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--buzz-teal);
    letter-spacing: 0.03em;
}
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: var(--buzz-radius-pill);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.source-badge.youtube { background: rgba(255, 0, 0, 0.12); color: #FF4444; border: 1px solid rgba(255, 0, 0, 0.2); }
.source-badge.twitter { background: rgba(29, 161, 242, 0.12); color: #1DA1F2; border: 1px solid rgba(29, 161, 242, 0.2); }
.source-badge.instagram { background: rgba(225, 48, 108, 0.12); color: #E1306C; border: 1px solid rgba(225, 48, 108, 0.2); }
.source-badge.tiktok { background: rgba(255, 0, 80, 0.12); color: #FF0050; border: 1px solid rgba(255, 0, 80, 0.2); }
.source-badge.reddit { background: rgba(255, 69, 0, 0.12); color: #FF4500; border: 1px solid rgba(255, 69, 0, 0.2); }
.source-badge.facebook { background: rgba(24, 119, 242, 0.12); color: #1877F2; border: 1px solid rgba(24, 119, 242, 0.2); }
.source-badge.article { background: rgba(200, 208, 224, 0.08); color: var(--buzz-text-muted); border: 1px solid rgba(200, 208, 224, 0.12); }

.meta-sep { color: var(--buzz-text-dim); }
.meta-author {
    color: var(--buzz-gold);
    font-weight: 500;
    transition: opacity 0.2s ease;
}
.meta-author:hover { opacity: 0.8; }

.status-citizen { color: var(--buzz-gold); }
.status-resident { color: var(--buzz-teal); }

/* ===== SIDEBAR ===== */
.sidebar-card {
    background: var(--buzz-card-bg);
    border: 1px solid var(--buzz-card-border);
    border-radius: var(--buzz-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.sidebar-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--buzz-heading);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.sidebar-text {
    font-size: 0.8125rem;
    color: var(--buzz-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.sidebar-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background: rgba(223, 160, 50, 0.12);
    border: 1px solid rgba(223, 160, 50, 0.25);
    border-radius: var(--buzz-radius-sm);
    color: var(--buzz-gold);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.sidebar-cta:hover {
    background: rgba(223, 160, 50, 0.2);
    border-color: rgba(223, 160, 50, 0.4);
    transform: translateY(-1px);
}

/* UmmahPass sidebar CTA - gold accent */
.sidebar-ummahpass {
    border-color: rgba(223, 160, 50, 0.2);
    position: relative;
    overflow: hidden;
}
.sidebar-ummahpass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--buzz-gold), transparent);
}

/* ===== SUBMIT FORM ===== */
.submit-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}
.submit-form {
    background: var(--buzz-card-bg);
    border: 1px solid var(--buzz-card-border);
    border-radius: var(--buzz-radius);
    padding: 1.5rem;
}
.submit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.submit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--buzz-heading);
}

/* Type toggle */
.type-toggle {
    display: inline-flex;
    background: rgba(15, 26, 51, 0.6);
    border: 1px solid var(--buzz-border-alpha);
    border-radius: var(--buzz-radius-pill);
    padding: 3px;
    gap: 2px;
}
.type-toggle-btn {
    padding: 6px 16px;
    border-radius: var(--buzz-radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--buzz-text-muted);
    transition: all 0.25s ease;
}
.type-toggle-btn.active {
    background: rgba(223, 160, 50, 0.15);
    color: var(--buzz-gold);
}
.type-toggle-btn:hover:not(.active) { color: var(--buzz-text); }

/* Form elements */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--buzz-text-muted);
    margin-bottom: 0.375rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(6, 11, 24, 0.6);
    border: 1px solid var(--buzz-border-alpha);
    border-radius: var(--buzz-radius-sm);
    color: var(--buzz-text);
    font-size: 0.9375rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus, .form-textarea:focus {
    border-color: rgba(223, 160, 50, 0.4);
    box-shadow: 0 0 0 3px rgba(223, 160, 50, 0.08);
}
.form-input::placeholder, .form-textarea::placeholder {
    color: var(--buzz-text-dim);
}
.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

/* URL preview card */
.url-preview {
    background: rgba(6, 11, 24, 0.5);
    border: 1px solid var(--buzz-border-alpha);
    border-radius: var(--buzz-radius-sm);
    padding: 0.875rem;
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.url-preview-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--buzz-deep);
}
.url-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.url-preview-info { flex: 1; min-width: 0; }
.url-preview-domain {
    font-size: 0.6875rem;
    color: var(--buzz-gold);
    margin-bottom: 4px;
}
.url-preview-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--buzz-heading);
    line-height: 1.3;
    margin-bottom: 4px;
}
.url-preview-desc {
    font-size: 0.75rem;
    color: var(--buzz-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Submit button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--buzz-gold), var(--buzz-gold-dim));
    color: #060B18;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--buzz-radius-sm);
    transition: all 0.3s var(--buzz-ease);
    box-shadow: 0 4px 16px rgba(223, 160, 50, 0.2);
}
.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(223, 160, 50, 0.3);
}
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error / success messages */
.form-error {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--buzz-radius-sm);
    color: #F87171;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}
.form-success {
    padding: 10px 14px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: var(--buzz-radius-sm);
    color: var(--buzz-teal);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}
.form-hint {
    font-size: 0.75rem;
    color: var(--buzz-text-dim);
    margin-top: 4px;
}

/* Fetching meta spinner */
.meta-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: var(--buzz-text-muted);
    font-size: 0.8125rem;
}
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(223, 160, 50, 0.2);
    border-top-color: var(--buzz-gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SEARCH ===== */
.buzz-search {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(6, 11, 24, 0.6);
    border: 1px solid var(--buzz-border-alpha);
    border-radius: var(--buzz-radius-pill);
    color: var(--buzz-text);
    font-size: 0.9375rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.buzz-search:focus {
    border-color: rgba(223, 160, 50, 0.4);
    box-shadow: 0 0 0 3px rgba(223, 160, 50, 0.08);
}
.buzz-search::placeholder { color: var(--buzz-text-dim); }
.search-wrap {
    position: relative;
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--buzz-text-dim);
    pointer-events: none;
}
.buzz-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: rgba(223, 160, 50, 0.08);
    color: var(--buzz-text-muted);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.buzz-search-clear:hover {
    color: var(--buzz-gold);
    background: rgba(223, 160, 50, 0.18);
}
.buzz-search-clear svg {
    width: 14px;
    height: 14px;
}
/* Bump to 44x44 on touch so iOS minimum tap target (Creative Director flag Apr 19) */
@media (max-width: 768px) {
    .buzz-search-clear { width: 44px; height: 44px; right: 4px; }
}
.buzz-search {
    padding-right: 42px !important;
}
.search-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}
.search-section .search-wrap {
    margin-bottom: 1.5rem;
}

/* ===== PROFILE ===== */
.profile-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}
.profile-card {
    background: var(--buzz-card-bg);
    border: 1px solid var(--buzz-card-border);
    border-radius: var(--buzz-radius);
    padding: 2rem;
    text-align: center;
}
.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--buzz-heading);
    margin-bottom: 0.25rem;
}
.profile-screenname {
    font-size: 1rem;
    color: var(--buzz-gold);
    margin-bottom: 0.25rem;
}
.profile-status {
    font-size: 0.8125rem;
    color: var(--buzz-text-muted);
    margin-bottom: 1rem;
}
.profile-stat-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 39, 68, 0.5);
}
.profile-stat {
    text-align: center;
}
.profile-stat-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--buzz-heading);
}
.profile-stat-label {
    font-size: 0.6875rem;
    color: var(--buzz-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    background: rgba(6, 11, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(26, 39, 68, 0.6);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    min-height: 52px;
    color: var(--buzz-text-dim);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-decoration: none;
    position: relative;
}
.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    transition: all 0.2s ease;
}
.mobile-nav-item.active {
    color: var(--buzz-gold);
}
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--buzz-gold);
    border-radius: 0 0 2px 2px;
}
.mobile-nav-item:hover:not(.active) { color: var(--buzz-text-muted); }

/* Desktop: hide mobile nav */
@media (min-width: 768px) {
    .mobile-nav { display: none; }
    body { padding-bottom: 0; }
}

/* ===== LOADING / EMPTY STATES ===== */
.feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2.5rem;
    color: var(--buzz-text-muted);
    font-size: 0.875rem;
}
.feed-loading .spinner {
    width: 22px;
    height: 22px;
}
.feed-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--buzz-text-muted);
    background: var(--buzz-card-bg);
    border: 1px solid var(--buzz-card-border);
    border-radius: var(--buzz-radius);
}
.feed-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--buzz-text-dim);
    opacity: 0.6;
}
.feed-empty-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--buzz-text);
    margin-bottom: 0.5rem;
}
.feed-empty-sub {
    font-size: 0.8125rem;
    color: var(--buzz-text-dim);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* ===== GOLD DIVIDER ===== */
.gold-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(223, 160, 50, 0.15), transparent);
    margin: 0 auto;
}

/* ===== FOOTER — legacy link strip (kept for /profile, /search) ===== */
.buzz-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(26, 39, 68, 0.3);
    margin-top: 2rem;
}
.buzz-footer-text {
    font-size: 0.6875rem;
    color: var(--buzz-text-dim);
}
.buzz-footer a {
    color: var(--buzz-gold-dim);
    transition: color 0.3s ease;
}
.buzz-footer a:hover { color: var(--buzz-gold); }

/* ===== ECOSYSTEM FOOTER — flywheel-focused (Apr 21, 2026) ===== */
.ub-eco-footer {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
    border-top: 1px solid rgba(223,160,50,0.12);
}
.ub-eco-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 2.25rem 2.5rem;
    align-items: start;
}
.ub-eco-col { min-width: 0; }
.ub-eco-brand {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}
.ub-eco-tagline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.58);
    font-style: italic;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.ub-eco-blurb {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.ub-eco-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.75;
}
.ub-eco-trust li::before {
    content: '✓';
    color: rgba(223,160,50,0.55);
    margin-right: 0.4rem;
}
.ub-eco-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin: 0 0 0.9rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(223,160,50,0.15);
}
.ub-eco-heading-gold { color: #E8C252; border-bottom-color: rgba(223,160,50,0.35); }
.ub-eco-link {
    display: block;
    padding: 0.4rem 0;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s ease, transform 0.2s ease;
}
.ub-eco-link:hover { color: #E8C252; transform: translateX(2px); }
.ub-eco-link-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}
.ub-eco-link-desc {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}
.ub-eco-link:hover .ub-eco-link-desc { color: rgba(255,255,255,0.6); }

/* Primary CTA card */
.ub-eco-cta {
    background: linear-gradient(135deg, rgba(223,160,50,0.08), rgba(223,160,50,0.03));
    border: 1px solid rgba(223,160,50,0.2);
    border-radius: 14px;
    padding: 1.25rem 1.1rem;
}
.ub-eco-cta-headline {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    line-height: 1.3;
    margin: 0 0 0.35rem 0;
}
.ub-eco-cta-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    margin-bottom: 0.9rem;
}
.ub-eco-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, #DFA032, #C8912E);
    color: #1a1208;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(223,160,50,0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ub-eco-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(223,160,50,0.4);
    color: #1a1208;
}
.ub-eco-cta-secondary {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}
.ub-eco-cta-secondary:hover { color: #E8C252; }

/* Bottom bar */
.ub-eco-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.ub-eco-bismillah {
    font-family: 'Amiri', 'Scheherazade New', serif;
    font-size: 1.1rem;
    color: rgba(223,160,50,0.5);
    letter-spacing: 0.02em;
    margin-bottom: 0.9rem;
    direction: rtl;
}
.ub-eco-meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
    margin: 0;
}
.ub-eco-meta a { color: rgba(223,160,50,0.55); text-decoration: none; }
.ub-eco-meta a:hover { color: #E8C252; }

/* Mobile stack */
@media (max-width: 960px) {
    .ub-eco-wrap { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
    .ub-eco-cta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .ub-eco-footer { padding: 2rem 1rem 1rem; }
    .ub-eco-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
    .ub-eco-cta { grid-column: auto; }
}

/* Light-mode override */
[data-theme="light"] .ub-eco-footer {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.025));
    border-top-color: rgba(200,145,46,0.18);
}
[data-theme="light"] .ub-eco-brand { color: #2C2417; }
[data-theme="light"] .ub-eco-tagline { color: rgba(44,36,23,0.7); }
[data-theme="light"] .ub-eco-blurb { color: rgba(44,36,23,0.55); }
[data-theme="light"] .ub-eco-trust { color: rgba(44,36,23,0.5); }
[data-theme="light"] .ub-eco-heading { color: rgba(44,36,23,0.75); border-bottom-color: rgba(200,145,46,0.25); }
[data-theme="light"] .ub-eco-heading-gold { color: #C8912E; border-bottom-color: rgba(200,145,46,0.4); }
[data-theme="light"] .ub-eco-link { color: rgba(44,36,23,0.8); }
[data-theme="light"] .ub-eco-link:hover { color: #C8912E; }
[data-theme="light"] .ub-eco-link-desc { color: rgba(44,36,23,0.5); }
[data-theme="light"] .ub-eco-cta { background: linear-gradient(135deg, rgba(200,145,46,0.08), rgba(200,145,46,0.02)); border-color: rgba(200,145,46,0.25); }
[data-theme="light"] .ub-eco-cta-headline { color: #2C2417; }
[data-theme="light"] .ub-eco-cta-sub { color: rgba(44,36,23,0.55); }
[data-theme="light"] .ub-eco-cta-secondary { color: rgba(44,36,23,0.55); }
[data-theme="light"] .ub-eco-cta-secondary:hover { color: #C8912E; }
[data-theme="light"] .ub-eco-bottom { border-top-color: rgba(44,36,23,0.1); }
[data-theme="light"] .ub-eco-bismillah { color: rgba(200,145,46,0.6); }
[data-theme="light"] .ub-eco-meta { color: rgba(44,36,23,0.45); }
[data-theme="light"] .ub-eco-meta a { color: rgba(200,145,46,0.65); }

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--buzz-text-muted);
    margin-bottom: 1.25rem;
    transition: color 0.2s ease;
}
.back-link:hover { color: var(--buzz-gold); }
.back-link svg { width: 16px; height: 16px; }

/* ===== TOAST / NOTIFICATION ===== */
.buzz-toast {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 26, 51, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(223, 160, 50, 0.25);
    border-radius: var(--buzz-radius-pill);
    padding: 10px 20px;
    color: var(--buzz-gold);
    font-size: 0.8125rem;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: all 0.35s var(--buzz-ease);
    pointer-events: none;
    white-space: nowrap;
}
.buzz-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .hero-section {
        padding: 4rem 1rem 2.5rem;
    }
    .card-content {
        padding: 0.875rem 1rem;
    }
    .card-thumb {
        width: 100px;
        min-height: 100px;
        margin: 0.625rem 0.625rem 0.625rem 0;
    }
    .vote-col {
        padding: 0.875rem 0.75rem;
        min-width: 56px;
    }
}

@media (max-width: 480px) {
    .buzz-header-inner { height: 48px; }
    .buzz-tagline { display: none; }
    .buzz-district-badge { display: none; }
    .card-thumb {
        width: 64px;
        min-height: 64px;
    }
    .vote-col {
        min-width: 44px;
        padding: 0.5rem 0.375rem;
    }
    .card-content { padding: 0.625rem 0.5rem; }
    .card-title { font-size: 0.875rem; }
    .hero-section {
        padding: 2rem 1rem 1.5rem;
    }
    .hero-cta {
        padding: 12px 24px;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}

/* ===== SIDEBAR LINKS ===== */
.sidebar-link {
    font-size: 0.8125rem;
    color: var(--buzz-teal);
    transition: opacity 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.sidebar-link:hover {
    opacity: 0.8;
    color: var(--buzz-teal-dark);
}

/* ===== SKELETON LOADING ===== */
.skeleton-card {
    display: flex;
    align-items: stretch;
    background: var(--buzz-card-bg);
    border: 1px solid var(--buzz-card-border);
    border-radius: var(--buzz-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    padding: 1rem;
    gap: 0.75rem;
}
.skeleton-line {
    background: linear-gradient(90deg, rgba(26, 39, 68, 0.4) 0%, rgba(26, 39, 68, 0.7) 50%, rgba(26, 39, 68, 0.4) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: 4px;
}
.skeleton-vote {
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.skeleton-vote-arrow {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}
.skeleton-vote-num {
    width: 20px;
    height: 12px;
}
.skeleton-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skeleton-title {
    height: 16px;
    width: 80%;
}
.skeleton-desc {
    height: 12px;
    width: 60%;
}
.skeleton-meta {
    height: 10px;
    width: 40%;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .starfield, .grain, .cursor-glow { display: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   LIGHT MODE OVERRIDES
   Stubborn hardcoded dark rgba() values elsewhere in this stylesheet
   are replaced here via `[data-theme="light"] .selector` rules so the
   dark defaults stay intact (zero regression risk). Paired with the
   token overrides at the top of the file.
   Apr 19 — Alisha requested light mode.
   ================================================================= */
[data-theme="light"] {
    /* Readable body text on cream */
    color: var(--buzz-text);
}
[data-theme="light"] body { background: var(--buzz-void); }

/* Scrollbar — cream track, brass thumb */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--buzz-deep); }
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--buzz-border), var(--buzz-gold));
}

/* Feed & card surfaces */
[data-theme="light"] .buzz-card,
[data-theme="light"] .feed-empty,
[data-theme="light"] .hero-section,
[data-theme="light"] .sidebar-card,
[data-theme="light"] .post-detail-card,
[data-theme="light"] .comment-card,
[data-theme="light"] .comment-login-prompt,
[data-theme="light"] .submit-form,
[data-theme="light"] .profile-card {
    background: var(--buzz-card-bg) !important;
    border-color: var(--buzz-card-border) !important;
}

/* Inputs, textareas */
[data-theme="light"] .buzz-search,
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .comment-textarea {
    background: var(--buzz-input-bg) !important;
    border-color: var(--buzz-card-border) !important;
    color: var(--buzz-text);
}
[data-theme="light"] .buzz-search::placeholder,
[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder,
[data-theme="light"] .comment-textarea::placeholder { color: var(--buzz-text-dim); }

/* Vote column + buttons */
[data-theme="light"] .vote-col,
[data-theme="light"] .vote-btn-detail,
[data-theme="light"] .card-action-btn,
[data-theme="light"] .comment-action-btn,
[data-theme="light"] .buzz-btn-logout {
    color: var(--buzz-text-muted);
}
[data-theme="light"] .vote-btn-detail {
    background: var(--buzz-input-bg);
    border-color: var(--buzz-card-border);
}
[data-theme="light"] .vote-btn-detail.voted,
[data-theme="light"] .vote-col.voted {
    color: var(--buzz-gold);
    background: var(--buzz-gold-glow);
    border-color: var(--buzz-gold-tint-strong);
}

/* Brass-on-brass CTAs need dark text against brass in light mode too */
[data-theme="light"] .comment-submit-btn,
[data-theme="light"] .submit-btn,
[data-theme="light"] .hero-cta {
    color: #FFFFFF;
}

/* Mobile bottom nav */
[data-theme="light"] .mobile-nav {
    background: rgba(250, 247, 242, 0.95) !important;
    border-top-color: var(--buzz-card-border) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
[data-theme="light"] .mobile-nav-item { color: var(--buzz-text-muted); }
[data-theme="light"] .mobile-nav-item.active { color: var(--buzz-gold); }

/* Search clear button */
[data-theme="light"] .buzz-search-clear {
    background: var(--buzz-gold-tint-strong);
    color: var(--buzz-text-muted);
}
[data-theme="light"] .buzz-search-clear:hover {
    background: var(--buzz-gold-glow);
    color: var(--buzz-gold);
}

/* Desktop Submit pill — teal on cream needs darker AA contrast */
[data-theme="light"] .buzz-btn-submit {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.38);
    color: var(--buzz-teal-dark);
}
[data-theme="light"] .buzz-btn-submit:hover {
    background: rgba(13, 148, 136, 0.2);
    border-color: rgba(13, 148, 136, 0.55);
}

/* Submit-form type toggle (Link / Text picker) — dark navy pill on cream reads broken */
[data-theme="light"] .type-toggle {
    background: var(--buzz-deep) !important;
    border-color: var(--buzz-card-border) !important;
}
[data-theme="light"] .type-toggle-btn { color: var(--buzz-text-muted); }
[data-theme="light"] .type-toggle-btn.active {
    background: var(--buzz-surface) !important;
    color: var(--buzz-gold);
}

/* "Copied!" toast — near-opaque navy reads wrong on cream */
[data-theme="light"] .buzz-toast {
    background: var(--buzz-surface) !important;
    border-color: rgba(200, 145, 46, 0.35) !important;
    color: var(--buzz-gold);
    box-shadow: 0 6px 18px rgba(44, 36, 23, 0.12);
}

/* Vote column needs its own override — the shared cards rule uses card-bg */
[data-theme="light"] .vote-col {
    background: rgba(232, 225, 212, 0.5);
    border-right: 1px solid var(--buzz-border);
}

/* Feed divider on light mode — darker warm border */
[data-theme="light"] .buzz-card { border-color: var(--buzz-border) !important; }

/* Source badges + metadata pills */
[data-theme="light"] .domain-badge,
[data-theme="light"] .source-badge,
[data-theme="light"] .text-badge,
[data-theme="light"] .district-badge,
[data-theme="light"] .buzz-district-badge {
    background: var(--buzz-gold-tint-strong) !important;
    color: var(--buzz-text-muted) !important;
    border-color: var(--buzz-card-border) !important;
}

/* Skeleton shimmer: warm version */
[data-theme="light"] .skeleton {
    background: linear-gradient(90deg, rgba(232, 225, 212, 0.35) 0%, rgba(232, 225, 212, 0.7) 50%, rgba(232, 225, 212, 0.35) 100%) !important;
}

/* Gold divider line — tighter contrast on cream */
[data-theme="light"] .gold-line {
    background: linear-gradient(90deg, transparent, rgba(200, 145, 46, 0.5), transparent);
}

/* Theme toggle button itself */
.buzz-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: var(--buzz-gold-tint-strong);
    border: 1px solid var(--buzz-card-border);
    border-radius: 50%;
    color: var(--buzz-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.buzz-theme-toggle:hover {
    color: var(--buzz-gold);
    background: var(--buzz-gold-glow);
    transform: translateY(-1px);
}
.buzz-theme-toggle svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
    .buzz-theme-toggle { width: 30px; height: 30px; }
    .buzz-theme-toggle svg { width: 14px; height: 14px; }
}

/* ===== MAN AD SLOTS ===== */
.ub-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    background: transparent;
}
.ub-ad-728 { display: none; }
@media (min-width: 768px) {
    .ub-ad-728 { display: flex; min-height: 90px; margin: 0.75rem 0; }
}
.ub-ad-300 { min-height: 250px; margin: 1.25rem auto; max-width: 300px; }
.ub-ad-320 { display: flex; min-height: 50px; margin: 0.75rem 0; }
@media (min-width: 768px) {
    .ub-ad-320 { display: none; }
}
[data-theme="light"] .ub-ad { background: transparent; }
