/* Life of Chip - Viewer Page Styles */
/* Dark theme, glassmorphism, political comedy vibes */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 35, 0.8);
    --bg-glass: rgba(30, 30, 50, 0.6);
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-gold: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Animated Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
    z-index: -1;
    animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* App Container */
.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--text-dim, #8a8a9a);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary, #e8e8f0);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #22c55e;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* ======================== */
/* Stream + Chat Section    */
/* ======================== */

.stream-chat-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stream-container {
    display: flex;
    flex-direction: column;
    flex: 2;
}

.stream-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-glow);
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

/* --- Idle Screen (offline state — covers entire stream+chat area) --- */
.idle-screen {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    background: linear-gradient(135deg, #0d0d20 0%, #131328 40%, #0f1a2e 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.idle-screen.hidden {
    display: none;
}

.idle-content {
    text-align: center;
    padding: 40px 20px 20px;
}

.idle-chip {
    font-size: 5rem;
    margin-bottom: 12px;
    animation: idle-float 4s ease-in-out infinite;
}

@keyframes idle-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(-2deg);
    }

    75% {
        transform: translateY(-6px) rotate(2deg);
    }
}

.idle-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.idle-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.idle-subtitle em {
    font-style: normal;
    color: var(--accent-purple);
}

.idle-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.idle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: idle-pulse 2s ease-in-out infinite;
}

@keyframes idle-pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* --- Countdown Timer --- */
.countdown-wrapper {
    margin-bottom: 20px;
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.countdown-digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-num {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #f8fafc 0%, #8b5cf6 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.4));
    padding: 10px 14px;
    background-color: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    /* Need separate background for the box + gradient for text */
    position: relative;
}

/* Box background behind the gradient text */
.countdown-num::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.06);
    z-index: -1;
}

.countdown-unit-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.countdown-sep {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-purple);
    opacity: 0.6;
    margin-bottom: 18px;
    /* align with numbers, not labels */
    animation: countdown-blink 1s steps(1) infinite;
}

@keyframes countdown-blink {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.15;
    }
}

.countdown-date {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 700px) {
    .countdown-num {
        font-size: 2rem;
        padding: 8px 10px;
    }

    .countdown-sep {
        font-size: 1.5rem;
    }
}

/* --- How It Works Strip --- */
.hiw-strip {
    display: flex;
    gap: 14px;
    margin: 0 0 20px;
    width: 100%;
}

.hiw-card {
    flex: 1;
    padding: 20px 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.hiw-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0), rgba(59, 130, 246, 0));
    -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    transition: background 0.3s ease;
    pointer-events: none;
}

.hiw-card:hover {
    transform: translateY(-4px);
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
}

.hiw-card:hover::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4));
}

.hiw-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

.hiw-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.hiw-desc {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.hiw-desc strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Suggest card — input integration */
.hiw-card-suggest {
    flex: 1.3;
}

.hiw-input-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.hiw-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(10, 10, 30, 0.6);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.hiw-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.hiw-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

.hiw-send-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: var(--accent-gradient);
    color: #0a0a1a;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.hiw-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

@media (max-width: 700px) {

    /* Flatten containers so we can reorder individual items on mobile */
    .stream-chat-section,
    .hiw-strip {
        display: contents;
    }

    .idle-screen {
        order: 1;
    }

    .stream-container {
        order: 1;
    }

    .hiw-card {
        order: 4;
        padding: 16px 14px;
    }

    /* Watch + Vote cards */
    .hiw-card.hiw-card-suggest {
        order: 2;
        flex: unset;
        width: 100%;
    }

    /* suggest right under video */
    .chat-container {
        order: 3;
    }

    .audience-pick-section {
        order: 5;
    }

    .hiw-card-vote {
        order: 6;
    }

    .saga-section {
        order: 7;
    }
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-glass);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 300px;
}

.youtube-chat-embed {
    flex: 1;
    min-height: 250px;
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.youtube-chat-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.chat-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Desktop: Stream + Chat side by side */
@media (min-width: 768px) {
    .stream-chat-section {
        flex-direction: row;
        gap: 20px;
    }

    .chat-container {
        min-width: 320px;
        max-width: 400px;
    }

    .youtube-chat-embed {
        height: 100%;
        min-height: 400px;
    }
}

/* ======================== */
/* Audience Pick Section    */
/* ======================== */

.audience-pick-section {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(139, 92, 246, 0.08));
}

.audience-pick-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple), var(--accent-blue));
}

.audience-pick-header {
    padding: 16px 20px 8px;
}

.audience-pick-badge {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.audience-pick-content {
    padding: 0 20px 20px;
}

.audience-pick-quote {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

.audience-pick-quote::before {
    content: '"';
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-right: 2px;
}

.audience-pick-quote::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-left: 2px;
}

/* Entrance animation */
@keyframes audiencePickReveal {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.audience-pick-section.reveal {
    animation: audiencePickReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ======================== */
/* The Ongoing Saga         */
/* ======================== */

.saga-section {
    overflow: hidden;
}

.saga-section.collapsed .saga-collapsible {
    display: none;
}

.saga-toggle-icon {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 0.8em;
}

.saga-section.collapsed .saga-toggle-icon {
    transform: rotate(-90deg);
}

.saga-expand-hint {
    font-size: 0.55em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    margin-left: 4px;
    vertical-align: middle;
}

.saga-section:not(.collapsed) .saga-expand-hint {
    display: none;
}

.saga-header {
    padding: 16px 20px 8px;
}

.saga-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.saga-content {
    padding: 0 20px 20px;
}

.saga-summary {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.saga-now {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-purple);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.saga-now-label {
    font-weight: 600;
    color: var(--accent-purple);
    margin-right: 6px;
}

/* ======================== */
/* Plot Twist Vote (Inline) */
/* ======================== */

/* Collapsed labels — hidden by default, shown when voting active */
.hiw-collapsed-label {
    display: none;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    margin: auto;
}

/* Card content wrapper — for fade transitions */
.hiw-card-content {
    transition: opacity 0.3s ease;
}

/* Cards need transition on flex */
.hiw-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    min-width: 0;
}

/* === VOTING ACTIVE STATE === */
.hiw-strip.voting-active .hiw-card-watch,
.hiw-strip.voting-active .hiw-card-suggest {
    flex: 0 0 36px;
    padding: 14px 0;
    border-color: rgba(139, 92, 246, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.hiw-strip.voting-active .hiw-card-watch .hiw-card-content,
.hiw-strip.voting-active .hiw-card-suggest .hiw-card-content {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.hiw-strip.voting-active .hiw-collapsed-label {
    display: flex;
}

.hiw-strip.voting-active .hiw-card-vote {
    flex: 6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
    padding: 14px 18px;
}

/* Vote active content */
.vote-active-content {
    animation: voteReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes voteReveal {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.vote-header h2 {
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.04em;
}

.vote-timer {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-variant-numeric: tabular-nums;
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(20, 20, 35, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.vote-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-purple);
    transform: translateX(4px);
}

.vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vote-btn.selected {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.vote-btn-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--accent-gradient);
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.vote-result {
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    color: #4ade80;
    text-align: center;
    animation: voteReveal 0.3s ease-out;
}

/* ======================== */
/* Suggestion Input Section */
/* ======================== */

.suggestion-section {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-glow);
}

.suggestion-header {
    margin-bottom: 12px;
}

.suggestion-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.suggestion-input-row {
    display: flex;
    gap: 12px;
}

.suggestion-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: all 0.2s;
    min-width: 0;
}

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

.suggestion-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.suggestion-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-send {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-send:active {
    transform: translateY(0);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Suggestion Toast */
.suggestion-toast {
    margin-top: 10px;
    padding: 10px 16px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: #4ade80;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================== */
/* Glass Card               */
/* ======================== */

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

/* ======================== */
/* Desktop Layout           */
/* ======================== */

@media (min-width: 768px) {
    .main-content {
        padding: 32px;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

/* ======================== */
/* Mobile Optimizations     */
/* ======================== */

@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 16px;
        gap: 16px;
    }

    .suggestion-section {
        padding: 16px;
    }

    .suggestion-input {
        padding: 12px 14px;
    }

    .btn-send {
        padding: 12px 18px;
    }

    .btn-text {
        display: none;
    }

    .btn-icon {
        font-size: 1.4rem;
    }

    .audience-pick-quote {
        font-size: 1rem;
    }
}

/* ======================== */
/* Custom Scrollbar         */
/* ======================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}