/* assets/css/quiz-theme.css */
.transition-fade-out { opacity: 0; transition: opacity 0.4s ease; transition-delay: 0.1s; }
.transition-fade-in { opacity: 0; animation: fadeIn 0.5s forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.pulse-selected { animation: pulseSelection 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
@keyframes pulseSelection {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3); }
    100% { transform: scale(1); }
}

/* Validation Feedback */
.shake-error { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.premium-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(45, 52, 54, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}
.premium-toast.show { transform: translateX(-50%) translateY(0); }
.premium-toast i { color: #ff7675; font-size: 1.2rem; }

.game-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(118, 75, 162, 0.4);
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
    position: relative;
    color: #ffffff;
}

body.quiz-active {
    background-color: #f8f9fa;
}

/* Active Quiz Title Highlight */
#activeQuizTitle {
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.quiz-active-title-wrapper {
    position: relative;
    z-index: 100;
}

.game-hud {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,0.2) !important;
}

.game-hud .text-dark {
    color: #ffffff !important;
}

/* Timer Styling */
.timer-badge {
    background-color: rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.4rem 1rem !important;
}

#timerDisplay {
    color: #8b0000 !important; /* Dark Red */
    font-weight: 800;
    font-size: 1.25rem; /* Standardized to h5 size */
    font-family: 'Courier New', Courier, monospace;
}

/* Hide Redundant Badge */
#categoryBadge {
    display: none !important;
}

/* Premium Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #4e54c8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #adb5bd;
}

.game-option-btn {
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    cursor: pointer;
}

.game-option-btn:hover {
    transform: translateX(5px);
}

.game-option-bg {
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    padding: 2px;
    transition: all 0.3s ease;
}

.game-option-inner {
    background: #1a0b2e;
    color: #ffffff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center text */
    padding: 0.5rem 3.5rem; /* Ensure label clearance */
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    text-align: center;
}

.game-option-badge {
    color: #00d2ff;
    font-weight: 800;
    font-size: 1.25rem; /* h5 size */
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
    position: absolute;
    left: 1.8rem; /* Moved from 1rem to 1.8rem */
}

.game-option-btn.selected .game-option-bg {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    padding: 0;
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.5);
}

.game-option-btn.selected .game-option-inner {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    color: #ffffff;
}

.game-option-btn.selected .game-option-badge {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.game-option-btn.selected {
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.6));
}

@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
        margin: 1rem auto;
        border-radius: 0.5rem;
    }
    .game-option-inner {
        padding: 0.5rem 2.8rem; /* More clearance on mobile */
        min-height: 50px;
        font-size: 0.9rem; /* Standardized to muted text size */
    }
    .game-option-badge {
        font-size: 1rem; /* h6 equivalent */
        left: 1.2rem; /* Moved from 0.8rem to 1.2rem */
    }
    .game-hud {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
    }
    .game-hud .d-flex {
        width: 100%;
        justify-content: space-between;
    }
}
