/* Trivia Showdown - Competitive Trivia Theme */

/* Neon Glow Effects */
.neon-glow-green {
    color: var(--neon-green);
    text-shadow: 0 0 12px rgba(50, 255, 0, 0.8), 0 0 24px rgba(50, 255, 0, 0.5);
}

.neon-glow-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.8), 0 0 24px rgba(0, 255, 255, 0.5);
}

.neon-glow-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 12px rgba(255, 0, 127, 0.8), 0 0 24px rgba(255, 0, 127, 0.5);
}

.neon-glow-amber {
    color: var(--neon-amber);
    text-shadow: 0 0 12px rgba(255, 191, 0, 0.8), 0 0 24px rgba(255, 191, 0, 0.5);
}

/* Trivia Card - Main container */
.trivia-card {
    background: linear-gradient(135deg, 
        rgba(11, 18, 32, 0.8) 0%, 
        rgba(26, 15, 10, 0.7) 100%
    );
    border: 2px solid rgba(0, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.trivia-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Player Score Card */
.player-score {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.player-score.active {
    border-color: var(--neon-green);
    background: linear-gradient(135deg, 
        rgba(50, 255, 0, 0.2) 0%, 
        rgba(0, 255, 255, 0.1) 100%
    );
    box-shadow: 0 0 20px rgba(50, 255, 0, 0.4);
}

.player-score.winner {
    border-color: var(--neon-amber);
    background: linear-gradient(135deg, 
        rgba(255, 191, 0, 0.2) 0%, 
        rgba(255, 127, 0, 0.1) 100%
    );
    box-shadow: 0 0 30px rgba(255, 191, 0, 0.5);
    animation: winnerPulse 2s ease-in-out infinite;
}

@keyframes winnerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 191, 0, 0.5);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 40px rgba(255, 191, 0, 0.8);
    }
}

/* Category Button */
.category-btn {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.2) 0%, 
        rgba(0, 0, 0, 0.4) 100%
    );
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 700;
    color: white;
}

.category-btn:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.4);
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.3) 0%, 
        rgba(0, 0, 0, 0.3) 100%
    );
}

/* Mode Selection Button */
.mode-btn {
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.4);
}

/* Answer Option Button */
.answer-option {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    color: white;
}

.answer-option:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateX(8px);
}

.answer-option.correct {
    background: rgba(50, 255, 0, 0.2);
    border-color: var(--neon-green);
    animation: correctPulse 1s ease-in-out;
}

.answer-option.incorrect {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.6);
    animation: incorrectShake 0.5s ease-in-out;
}

.answer-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes correctPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(50, 255, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(50, 255, 0, 0.9);
    }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Buzz Button */
.buzz-button {
    animation: buzzPulse 1.5s ease-in-out infinite;
}

@keyframes buzzPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(50, 255, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 40px rgba(50, 255, 0, 0.9);
    }
}

.buzz-button:active {
    transform: scale(0.95);
    animation: none;
}

.buzz-button.buzzed {
    background: rgba(255, 191, 0, 0.3);
    border-color: var(--neon-amber);
    animation: none;
}

/* Buzzer Status */
.buzzer-active {
    color: var(--neon-green);
    font-weight: 700;
    animation: textPulse 1s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Score Change Animation */
@keyframes scoreUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

.score-change {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-green);
    animation: scoreUp 1s ease-out forwards;
    pointer-events: none;
}

.score-change.negative {
    color: #ff4444;
}

/* Rapid Fire Timer Animation */
@keyframes timerWarning {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
    }
}

.timer-warning {
    animation: timerWarning 0.5s ease-in-out infinite;
}

/* Result Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-animation {
    animation: slideUp 0.6s ease-out;
}

/* Confetti Effect */
@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    animation: confetti 3s ease-out forwards;
    pointer-events: none;
}

/* Button Effects */
button:not(:disabled):hover {
    filter: brightness(1.1);
}

button:not(:disabled):active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .trivia-card {
        padding: 1rem;
    }
    
    .category-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .answer-option {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .player-score {
        padding: 0.75rem;
    }
}

/* Fade In Animation for screens */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Hidden class override */
.hidden {
    display: none !important;
}

/* Achievement popup animation */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.achievement-popup {
    animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-in 2.5s;
}
