/* OBS Pause Screen v2 — 1920x1080, Quiz + Redesign */

/* Reset & Root */
.obs-root {
    margin: 0;
    padding: 0;
    width: 1920px;
    height: 1080px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    position: relative;
}

/* Animated gradient background */
.obs-pause {
    width: 1920px;
    height: 1080px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 25%, #0a1a3e 50%, #0a0a1a 75%, #1a0a2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Particle canvas */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    pointer-events: none;
    z-index: 0;
}

/* Confetti canvas */
#confettiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    pointer-events: none;
    z-index: 10;
}

/* Content layer above particles */
.obs-content {
    position: relative;
    z-index: 1;
    width: 1920px;
    height: 1080px;
    padding: 30px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========== MAIN COLUMNS (top area) ========== */
.main-columns {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* Glass panel base */
.glass-panel {
    background: rgba(15, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(83, 252, 24, 0.12);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #53fc18;
    text-shadow: 0 0 10px rgba(83, 252, 24, 0.5);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(83, 252, 24, 0.1);
}

/* Left & Right columns — leaderboards */
.leaderboard-col {
    flex: 0 0 300px;
}

/* Center column — quiz */
.quiz-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ========== LEADERBOARD ========== */
.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    animation: slideIn 0.4s ease-out both;
    transition: background 0.2s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.leaderboard-item:nth-child(1) { animation-delay: 0.05s; }
.leaderboard-item:nth-child(2) { animation-delay: 0.1s; }
.leaderboard-item:nth-child(3) { animation-delay: 0.15s; }
.leaderboard-item:nth-child(4) { animation-delay: 0.2s; }
.leaderboard-item:nth-child(5) { animation-delay: 0.25s; }
.leaderboard-item:nth-child(6) { animation-delay: 0.3s; }
.leaderboard-item:nth-child(7) { animation-delay: 0.35s; }
.leaderboard-item:nth-child(8) { animation-delay: 0.4s; }
.leaderboard-item:nth-child(9) { animation-delay: 0.45s; }
.leaderboard-item:nth-child(10) { animation-delay: 0.5s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lb-rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    width: 30px;
    text-align: center;
    color: #666;
}

.lb-rank-1 { color: #ffd700; }
.lb-rank-2 { color: #c0c0c0; }
.lb-rank-3 { color: #cd7f32; }

.lb-medal {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.lb-username {
    flex: 1;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ddd;
}

.lb-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #53fc18;
    text-shadow: 0 0 6px rgba(83, 252, 24, 0.3);
}

/* ========== QUIZ BLOCK (center) ========== */
.quiz-block {
    background: rgba(15, 15, 30, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(83, 252, 24, 0.18);
    border-radius: 20px;
    padding: 36px 44px;
    width: 100%;
    max-width: 720px;
    text-align: center;
    animation: quizFadeIn 0.5s ease-out;
}

@keyframes quizFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.quiz-question-text {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 28px;
    line-height: 1.4;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: left;
    font-size: 18px;
    color: #ddd;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-option-letter {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #53fc18;
    background: rgba(83, 252, 24, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quiz-option-text {
    flex: 1;
}

.quiz-option.correct {
    border-color: #53fc18;
    background: rgba(83, 252, 24, 0.15);
    box-shadow: 0 0 20px rgba(83, 252, 24, 0.2);
}

.quiz-option.correct .quiz-option-letter {
    background: rgba(83, 252, 24, 0.3);
}

/* Timer */
.quiz-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 700;
}

.quiz-timer-icon {
    font-size: 28px;
}

.quiz-timer.timer-green { color: #53fc18; }
.quiz-timer.timer-yellow { color: #fcc419; }
.quiz-timer.timer-red { color: #ff4444; animation: timerPulse 0.5s ease-in-out infinite; }

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Winner celebration */
.quiz-winner-block {
    animation: winnerAppear 0.6s ease-out;
}

@keyframes winnerAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.quiz-winner-label {
    font-size: 18px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.quiz-winner-name {
    font-size: 42px;
    font-weight: 800;
    color: #53fc18;
    text-shadow:
        0 0 15px rgba(83, 252, 24, 0.6),
        0 0 40px rgba(83, 252, 24, 0.3);
    animation: winnerGlow 1.5s ease-in-out infinite;
    margin-bottom: 12px;
}

@keyframes winnerGlow {
    0%, 100% {
        text-shadow:
            0 0 15px rgba(83, 252, 24, 0.6),
            0 0 40px rgba(83, 252, 24, 0.3);
    }
    50% {
        text-shadow:
            0 0 25px rgba(83, 252, 24, 0.9),
            0 0 60px rgba(83, 252, 24, 0.5),
            0 0 90px rgba(83, 252, 24, 0.2);
    }
}

.quiz-correct-answer {
    font-size: 20px;
    color: #53fc18;
    margin-top: 8px;
}

.quiz-noanswer-text {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 12px;
}

/* Generating spinner */
.quiz-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
}

.quiz-generating-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(83, 252, 24, 0.2);
    border-top-color: #53fc18;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.quiz-generating-text {
    font-size: 18px;
    color: #888;
}

/* ========== BOTTOM ROW ========== */
.bottom-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-shrink: 0;
}

/* Popular commands — left */
.commands-bar {
    background: rgba(15, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(83, 252, 24, 0.12);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.commands-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #53fc18;
    text-shadow: 0 0 10px rgba(83, 252, 24, 0.5);
    margin-right: 12px;
}

/* Video order info */
.video-order-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.video-order-icon {
    font-size: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(83, 252, 24, 0.4));
}

.video-order-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.video-order-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #53fc18;
    text-shadow: 0 0 10px rgba(83, 252, 24, 0.5);
}

.video-order-steps {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.video-order-step {
    font-size: 14px;
    color: #b0c0a0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    color: #53fc18;
    background: rgba(83, 252, 24, 0.1);
    border: 1px solid rgba(83, 252, 24, 0.2);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-step-hl {
    color: #53fc18;
    font-weight: 600;
}

.command-badge {
    background: rgba(83, 252, 24, 0.08);
    border: 1px solid rgba(83, 252, 24, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #b0e0a0;
    animation: badgePulse 3s ease-in-out infinite;
    white-space: nowrap;
}

.command-badge:nth-child(2) { animation-delay: 0.3s; }
.command-badge:nth-child(3) { animation-delay: 0.6s; }
.command-badge:nth-child(4) { animation-delay: 0.9s; }
.command-badge:nth-child(5) { animation-delay: 1.2s; }
.command-badge:nth-child(6) { animation-delay: 1.5s; }

@keyframes badgePulse {
    0%, 100% { border-color: rgba(83, 252, 24, 0.2); }
    50% { border-color: rgba(83, 252, 24, 0.5); }
}

.command-count {
    color: #53fc18;
    font-weight: 600;
    margin-left: 4px;
}

.commands-separator {
    color: #333;
    font-size: 18px;
}

/* Webcam placeholder — right */
.webcam-placeholder {
    flex: 0 0 400px;
    height: 225px;
    border: 2px dashed rgba(83, 252, 24, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.2);
}

/* ========== BRB FOOTER ========== */
.brb-footer {
    text-align: center;
    padding: 4px 0;
    flex-shrink: 0;
}

.brb-text {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #53fc18;
    text-shadow:
        0 0 10px rgba(83, 252, 24, 0.6),
        0 0 30px rgba(83, 252, 24, 0.3),
        0 0 60px rgba(83, 252, 24, 0.1);
    animation: brbPulse 3s ease-in-out infinite;
}

.brb-icon {
    font-size: 36px;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes brbPulse {
    0%, 100% {
        opacity: 1;
        text-shadow:
            0 0 10px rgba(83, 252, 24, 0.6),
            0 0 30px rgba(83, 252, 24, 0.3),
            0 0 60px rgba(83, 252, 24, 0.1);
    }
    50% {
        opacity: 0.7;
        text-shadow:
            0 0 20px rgba(83, 252, 24, 0.8),
            0 0 50px rgba(83, 252, 24, 0.5),
            0 0 80px rgba(83, 252, 24, 0.2);
    }
}

/* ========== ANSWER TRACKING ========== */
.answer-summary {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.answer-count-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ac-1 { color: #5b9eff; border-color: rgba(91, 158, 255, 0.3); }
.ac-2 { color: #53fc18; border-color: rgba(83, 252, 24, 0.3); }
.ac-3 { color: #fcc419; border-color: rgba(252, 196, 25, 0.3); }
.ac-4 { color: #ff6b9d; border-color: rgba(255, 107, 157, 0.3); }

.answer-letter {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.al-1 { color: #5b9eff; background: rgba(91, 158, 255, 0.15); }
.al-2 { color: #53fc18; background: rgba(83, 252, 24, 0.15); }
.al-3 { color: #fcc419; background: rgba(252, 196, 25, 0.15); }
.al-4 { color: #ff6b9d; background: rgba(255, 107, 157, 0.15); }

.answer-correct {
    background: rgba(83, 252, 24, 0.08) !important;
    border: 1px solid rgba(83, 252, 24, 0.2);
}

/* Winners list */
.quiz-winners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.quiz-winners-list .quiz-winner-name {
    font-size: 28px;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    color: #555;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}
