/* ==========================================================================
   www.Protests.online - Crimson & Midnight Gold GenZ Mobile-First CSS
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-darker: #07080c;
    --bg-dark: #0d0e17;
    --bg-card: rgba(18, 20, 32, 0.85);
    --bg-card-hover: rgba(28, 32, 50, 0.95);
    --bg-drawer: #0f111c;
    --bg-input: rgba(15, 18, 30, 0.95);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-crimson: rgba(255, 42, 75, 0.4);
    --border-gold: rgba(255, 209, 102, 0.4);
    
    --accent-crimson: #ff2a4b;
    --accent-crimson-glow: rgba(255, 42, 75, 0.5);
    --accent-gold: #ffd166;
    --accent-gold-glow: rgba(255, 209, 102, 0.4);
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #a855f7;
    --brand-youtube: #ff0000;
    --brand-instagram: #e1306c;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-crimson: #ff2a4b;
    --text-gold: #ffd166;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-glass: 0 12px 36px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 24px rgba(255, 42, 75, 0.35);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #ffe082;
}

.text-accent { color: var(--accent-crimson) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-warning { color: var(--accent-gold) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-crimson); }

/* Announcement Ticker Bar */
.announcement-bar {
    background: linear-gradient(90deg, #16080d 0%, #240a14 50%, #16080d 100%);
    border-bottom: 1px solid var(--border-crimson);
    padding: 7px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.announcement-content { display: flex; align-items: center; gap: 10px; }

.live-pulse-dot {
    width: 9px; height: 9px;
    background-color: var(--accent-crimson);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-crimson);
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 75, 0.8); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(255, 42, 75, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 75, 0); }
}

.announcement-title { font-weight: 800; color: var(--accent-crimson); letter-spacing: 0.05em; font-size: 0.78rem; }
.announcement-divider { opacity: 0.3; }
.announcement-time { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 14, 23, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 28px;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-link { display: flex; align-items: center; gap: 12px; }

.brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent-crimson), #900c27);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff; box-shadow: var(--shadow-glow);
}

.brand-name { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.brand-domain { color: var(--accent-crimson); }
.brand-sub { font-size: 0.65rem; font-weight: 800; color: var(--accent-gold); letter-spacing: 0.14em; }

.nav-search-container { flex: 1; max-width: 440px; position: relative; }

.nav-search-container input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 10px 38px 10px 42px;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition-fast);
}

.nav-search-container input:focus {
    border-color: var(--accent-crimson);
    box-shadow: 0 0 16px rgba(255, 42, 75, 0.3);
    background: #121524;
}

.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; }
.clear-search-btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; }

.nav-links { display: flex; gap: 8px; }

.nav-item {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-item.active { color: #fff; background: rgba(255, 42, 75, 0.16); border: 1px solid var(--border-crimson); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 0.82rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-crimson), #c7002b);
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 42, 75, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255, 42, 75, 0.5); }

.btn-outline { background: rgba(255, 255, 255, 0.04); border-color: var(--border-subtle); color: var(--text-primary); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }

.btn-gold-outline {
    background: rgba(255, 209, 102, 0.1);
    border-color: rgba(255, 209, 102, 0.4);
    color: var(--accent-gold);
}

.btn-gold-outline:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 16px rgba(255, 209, 102, 0.35);
}

.btn-icon {
    width: 44px; height: 44px; padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
}

.btn-icon:hover { color: var(--accent-gold); border-color: var(--accent-gold); }

/* Main Content Layout */
.main-content { max-width: 1600px; margin: 0 auto; padding: 20px 28px 60px 28px; }
.content-section { display: none; }
.content-section.active-section { display: block; }

/* Stats Overview Cards Row */
.stats-overview-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-normal);
}

.overview-card:hover { transform: translateY(-3px); border-color: rgba(255, 209, 102, 0.3); box-shadow: var(--shadow-glass); }

.overview-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.card-ongoing .overview-icon { background: rgba(255, 42, 75, 0.15); color: var(--accent-crimson); }
.card-upcoming .overview-icon { background: rgba(255, 209, 102, 0.15); color: var(--accent-gold); }
.card-genre .overview-icon { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.card-crowd .overview-icon { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.overview-data { display: flex; flex-direction: column; }
.overview-value { font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1.1; }
.overview-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

/* GenZ Hashtag Filter Strip */
.hashtag-strip {
    background: rgba(255, 42, 75, 0.08);
    border: 1px solid rgba(255, 42, 75, 0.25);
    border-radius: var(--radius-lg);
    padding: 10px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
}

.hashtag-label { font-size: 0.82rem; font-weight: 800; color: var(--accent-gold); white-space: nowrap; }

.tag-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.tag-chip:hover {
    background: rgba(255, 42, 75, 0.25);
    border-color: var(--accent-crimson);
    color: #fff;
}

/* Quick City Hub Strip */
.city-selector-strip {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.strip-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; }

.city-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px; min-height: 40px;
    border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: all var(--transition-fast);
}

.city-chip:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.city-chip.active {
    background: rgba(255, 209, 102, 0.18);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 700;
}

/* Filter Header Bar */
.filter-header-bar {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }

.filter-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 18px; min-height: 40px;
    border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-fast);
    display: inline-flex; align-items: center; gap: 6px;
}

.filter-chip:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.filter-chip.active { background: rgba(255, 42, 75, 0.2); border-color: var(--accent-crimson); color: #fff; box-shadow: 0 0 12px rgba(255, 42, 75, 0.25); }

.chip-pulse { width: 7px; height: 7px; background: var(--accent-crimson); border-radius: 50%; animation: pulse-ring 1.5s infinite; }

.custom-select-wrapper { position: relative; }

.custom-select {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 16px; min-height: 42px;
    border-radius: var(--radius-md);
    font-size: 0.82rem; font-weight: 600;
    outline: none; cursor: pointer;
}

.custom-select:focus { border-color: var(--accent-crimson); }

.sort-toggle-group { display: flex; background: var(--bg-darker); border-radius: var(--radius-md); padding: 3px; }

.sort-btn {
    background: none; border: none; color: var(--text-muted); font-size: 0.78rem; font-weight: 700;
    padding: 7px 14px; min-height: 38px; border-radius: var(--radius-sm); cursor: pointer;
}

.sort-btn.active { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Protest Grid Feed */
.protest-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.protest-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.protest-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--text-muted);
}

.protest-card.status-ongoing::before { background: var(--accent-crimson); box-shadow: 0 0 12px var(--accent-crimson); }
.protest-card.status-upcoming::before,
.protest-card.status-tomorrow::before,
.protest-card.status-weekend::before { background: var(--accent-gold); box-shadow: 0 0 12px var(--accent-gold); }

.protest-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 42, 75, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass);
}

/* Viral Slogan Badge on Cards */
.card-slogan-badge {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(255, 42, 75, 0.15));
    border: 1px solid rgba(255, 209, 102, 0.35);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.card-top-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 800; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}

.badge-ongoing { background: rgba(255, 42, 75, 0.2); color: var(--accent-crimson); border: 1px solid rgba(255, 42, 75, 0.4); }
.badge-upcoming { background: rgba(255, 209, 102, 0.2); color: var(--accent-gold); border: 1px solid rgba(255, 209, 102, 0.4); }
.badge-past { background: rgba(100, 116, 139, 0.2); color: var(--text-muted); border: 1px solid rgba(100, 116, 139, 0.3); }

.card-genre { color: var(--text-muted); font-weight: 700; font-size: 0.78rem; }
.card-title { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.card-location { font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }

.card-cause-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.45;
}

/* Card Reactions Bar (Solidarize / Amplify) */
.card-reaction-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition-fast);
}

.reaction-btn:hover {
    background: rgba(255, 42, 75, 0.2);
    color: var(--accent-crimson);
    border-color: var(--accent-crimson);
}

.card-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    border-top: 1px dashed var(--border-subtle);
    padding-top: 12px;
    margin-top: 6px;
}

.card-crowd { color: var(--accent-cyan); font-weight: 700; display: flex; align-items: center; gap: 6px; }

.inspect-btn {
    background: rgba(255, 42, 75, 0.15);
    border: 1px solid rgba(255, 42, 75, 0.3);
    color: var(--accent-crimson);
    padding: 8px 16px; min-height: 38px;
    border-radius: var(--radius-md);
    font-size: 0.78rem; font-weight: 700;
    cursor: pointer; transition: all var(--transition-fast);
}

.inspect-btn:hover { background: var(--accent-crimson); color: #fff; box-shadow: 0 0 14px rgba(255, 42, 75, 0.4); }

/* Ground Experiences Feed inside Drawer */
.experiences-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
}

.exp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.exp-author { font-size: 0.85rem; font-weight: 800; color: #fff; }
.exp-role { font-size: 0.72rem; color: var(--accent-gold); background: rgba(255, 209, 102, 0.15); padding: 2px 8px; border-radius: var(--radius-sm); }
.exp-rating { font-size: 0.74rem; color: var(--accent-cyan); margin-bottom: 6px; font-weight: 700; }
.exp-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.45; }

/* Video Clips Grid inside Inspector Drawer */
.video-cards-grid { display: flex; flex-direction: column; gap: 12px; }

.video-card-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all var(--transition-fast);
}

.video-card-item:hover { border-color: var(--accent-gold); background: rgba(255, 209, 102, 0.05); }

.video-platform-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff; flex-shrink: 0;
}

.icon-youtube { background: var(--brand-youtube); }
.icon-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.video-info { flex: 1; display: flex; flex-direction: column; }
.video-title { font-size: 0.85rem; font-weight: 700; color: #fff; line-height: 1.3; }

.video-link-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem; font-weight: 700;
    white-space: nowrap;
}

.video-link-btn:hover { background: var(--accent-gold); color: #000; }

/* Viral Slogan Banner in Drawer */
.viral-slogan-box {
    background: rgba(255, 209, 102, 0.12);
    border: 1px solid rgba(255, 209, 102, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 0.95rem; font-weight: 800;
    color: var(--accent-gold);
    display: flex; align-items: center; gap: 10px;
    line-height: 1.4;
}

/* GenZ Mobile Sticky Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 65px;
    background: rgba(13, 14, 23, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-subtle);
    z-index: 2500;
    justify-content: space-around;
    align-items: center;
    padding: 4px 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    flex: 1;
    height: 100%;
    border-radius: var(--radius-sm);
}

.mobile-nav-item i { font-size: 1.25rem; }
.mobile-nav-item.active { color: var(--accent-crimson); }

/* Genre Showcase Section */
.section-container { background: var(--bg-dark); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 32px; }
.section-header { margin-bottom: 28px; }

.section-header h2 { font-size: 1.7rem; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.section-subtitle { color: var(--text-secondary); font-size: 0.95rem; }

.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }

.genre-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.genre-card:hover { transform: translateY(-4px); border-color: var(--accent-gold); box-shadow: var(--shadow-glass); }

.genre-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

.genre-icon-box {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255, 209, 102, 0.15);
    color: var(--accent-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.genre-title { font-size: 1.15rem; }
.genre-count { font-size: 0.8rem; color: var(--text-muted); }
.genre-desc { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 14px; }
.genre-key-issues { font-size: 0.8rem; color: var(--text-muted); border-top: 1px dashed var(--border-subtle); padding-top: 12px; }

/* Timeline Section */
.timeline-year-selector { display: flex; gap: 12px; margin-bottom: 28px; }

.year-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 22px; min-height: 42px;
    border-radius: var(--radius-full);
    font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: all var(--transition-fast);
}

.year-btn.active { background: var(--accent-crimson); color: #fff; border-color: var(--accent-crimson); box-shadow: var(--shadow-glow); }

.timeline-container { position: relative; padding-left: 32px; }

.timeline-container::before {
    content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--border-subtle);
}

.timeline-item { position: relative; margin-bottom: 28px; }

.timeline-item::before {
    content: ''; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent-crimson); border: 3px solid var(--bg-dark); box-shadow: 0 0 12px var(--accent-crimson);
}

.timeline-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 18px 22px; }
.timeline-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-gold); margin-bottom: 6px; }

/* Analytics Section */
.analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.chart-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 22px; }
.chart-card-wide { grid-column: span 2; }
.chart-card h3 { font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.chart-wrapper { position: relative; height: 280px; width: 100%; }

/* Inspector Drawer (Desktop + Mobile Sheet Handle) */
.mobile-sheet-handle {
    display: none;
    width: 44px; height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin: 10px auto 4px auto;
}

.inspector-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(8px);
    z-index: 3000; opacity: 0; pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

.inspector-drawer {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 640px; max-width: 100vw;
    background: var(--bg-drawer);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -10px 0 45px rgba(0, 0, 0, 0.85);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
}

.inspector-overlay.open .inspector-drawer { transform: translateX(0); }

.close-drawer-btn {
    position: absolute; top: 18px; right: 18px; z-index: 10;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; cursor: pointer; font-size: 1.15rem;
}

.drawer-header-banner {
    background: linear-gradient(180deg, rgba(255, 42, 75, 0.18) 0%, rgba(15, 17, 28, 0.95) 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 32px 28px 22px 28px;
}

.banner-badge-group { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.status-badge { background: var(--accent-crimson); color: #fff; font-size: 0.74rem; font-weight: 800; padding: 4px 12px; border-radius: var(--radius-sm); text-transform: uppercase; }
.genre-badge { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); font-size: 0.74rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-sm); }
.drawer-header-banner h2 { font-size: 1.6rem; margin-bottom: 12px; }
.banner-meta { display: flex; gap: 18px; font-size: 0.85rem; color: var(--text-secondary); flex-wrap: wrap; }

.drawer-body { flex: 1; overflow-y: auto; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.drawer-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.kpi-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle); padding: 14px; border-radius: var(--radius-md); display: flex; flex-direction: column; }
.kpi-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.kpi-value { font-size: 1rem; font-weight: 800; color: var(--accent-gold); }

.drawer-section h3 { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cause-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

.demands-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.demand-item { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-subtle); padding: 12px 16px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.demand-status { font-size: 0.72rem; padding: 3px 10px; border-radius: var(--radius-sm); font-weight: 800; }
.demand-status-pending { background: rgba(255, 209, 102, 0.2); color: var(--accent-gold); }
.demand-status-met { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }

.people-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip { background: rgba(168, 85, 247, 0.18); border: 1px solid rgba(168, 85, 247, 0.35); color: #e9d5ff; font-size: 0.82rem; padding: 6px 14px; border-radius: var(--radius-full); }

.alert-box { background: rgba(255, 209, 102, 0.12); border: 1px solid rgba(255, 209, 102, 0.35); border-radius: var(--radius-md); padding: 16px; }
.alert-box h4 { font-size: 0.9rem; color: var(--accent-gold); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.alert-box p { font-size: 0.85rem; color: var(--text-secondary); }

.update-feed { display: flex; flex-direction: column; gap: 14px; }
.update-entry { border-left: 2px solid var(--accent-crimson); padding-left: 14px; }
.update-time { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); }
.update-text { font-size: 0.88rem; color: var(--text-primary); }

.drawer-footer { display: flex; gap: 14px; border-top: 1px solid var(--border-subtle); padding-top: 18px; margin-top: 10px; }
.drawer-footer .btn { flex: 1; }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(8px);
    z-index: 3000; opacity: 0; pointer-events: none;
    transition: opacity var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

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

.modal-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 650px; max-width: 100%; max-height: 90vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.modal-header {
    padding: 18px 24px; background: rgba(15, 18, 30, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: space-between;
}

.close-modal-btn { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; }
.modal-body { padding: 24px; overflow-y: auto; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.full-width { grid-column: span 2; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); }

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 0.88rem; outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-crimson); }

.form-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 24px; }

/* Toast Container */
.toast-container {
    position: fixed; bottom: 80px; right: 20px;
    z-index: 4000; display: flex; flex-direction: column; gap: 12px;
}

.toast {
    background: var(--bg-dark);
    border: 1px solid var(--accent-crimson);
    color: #fff; padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    font-size: 0.88rem; display: flex; align-items: center; gap: 12px;
    animation: slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   GENZ MOBILE RESPONSIVE BREAKPOINTS (< 768px)
   ========================================================================== */

@media (max-width: 1200px) {
    .stats-overview-row { grid-template-columns: repeat(2, 1fr); }
    .analytics-grid { grid-template-columns: 1fr; }
    .chart-card-wide { grid-column: span 1; }
}

@media (max-width: 768px) {
    body { padding-bottom: 75px; }

    .nav-links { display: none; }
    .mobile-bottom-nav { display: flex; }

    .main-content { padding: 14px 14px 70px 14px; }
    .navbar { padding: 10px 14px; }

    .nav-container { flex-wrap: wrap; gap: 10px; }
    .nav-search-container { max-width: 100%; order: 3; }
    
    .stats-overview-row { grid-template-columns: 1fr; gap: 12px; }
    .protest-grid-container { grid-template-columns: 1fr; gap: 16px; }

    /* Mobile Sheet Drawer */
    .inspector-drawer {
        top: auto; bottom: 0; left: 0; right: 0;
        width: 100vw; height: 90vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: none; border-top: 1px solid var(--border-crimson);
        transform: translateY(100%);
    }

    .inspector-overlay.open .inspector-drawer { transform: translateY(0); }

    .mobile-sheet-handle { display: block; }
    .close-drawer-btn { top: 12px; right: 12px; width: 36px; height: 36px; }
    
    .drawer-header-banner { padding: 18px 18px 14px 18px; }
    .drawer-header-banner h2 { font-size: 1.3rem; }
    .drawer-body { padding: 18px; gap: 18px; }
    .drawer-kpi-row { grid-template-columns: 1fr; gap: 10px; }
    
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }

    .filter-header-bar { padding: 12px; gap: 10px; }
    .filter-group { width: 100%; justify-content: flex-start; }
}
