/* Custom Scrollbar - Consistent with Index Page */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a; 
}

::-webkit-scrollbar-thumb {
  background: #554211; 
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D4A52A; 
}

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quiz-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(15, 23, 42, 0.9));
    min-height: calc(100vh - 200px);
    position: relative;
    overflow: hidden;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #f5f5f5;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(26, 26, 26, 0.7);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 10px;
    background: rgba(26, 26, 26, 0.7);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #b8860b);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.quiz-content {
    background: rgba(26, 26, 26, 0.7);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.question-card {
    margin-bottom: 2rem;
}

.question-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #f5f5f5;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-align: center;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.option-btn {
    background: rgba(40, 40, 40, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.2rem;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #f5f5f5;
}

.option-btn:hover {
    background: rgba(60, 60, 60, 0.7);
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.option-btn.selected {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.option-btn.correct {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
}

.option-btn.incorrect {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #D4AF37;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.option-btn.selected::before,
.option-btn.correct::before {
    transform: scaleY(1);
}

.quiz-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.quiz-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.next-btn {
    background: rgba(44, 62, 80, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.next-btn:hover:not(:disabled) {
    background: rgba(26, 37, 47, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4);
    border-color: #D4AF37;
}

.next-btn:disabled {
    background: rgba(60, 60, 60, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #a0aec0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.restart-btn {
    background: rgba(44, 62, 80, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.restart-btn:hover {
    background: rgba(26, 37, 47, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.quiz-result {
    text-align: center;
    padding: 3rem 2rem;
}

.result-content {
    background: rgba(26, 26, 26, 0.7);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.result-score {
    font-size: 5rem;
    font-weight: bold;
    color: #D4AF37;
    margin: 2rem 0;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.score-total {
    font-size: 2rem;
    color: #a0aec0;
}

.result-message {
    font-size: 1.5rem;
    color: #f5f5f5;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-title {
        font-size: 2rem;
    }
    
    .quiz-stats {
        gap: 1rem;
    }
    
    .stat-card {
        min-width: 80px;
        padding: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .option-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .quiz-content {
        padding: 1.5rem;
    }
    
    .quiz-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quiz-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .result-score {
        font-size: 3rem;
    }
    
    .result-message {
        font-size: 1.2rem;
    }
}

/* Additional Glassmorphism Effects */
.option-btn {
    background: rgba(40, 40, 40, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.2rem;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #f5f5f5;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.option-btn:hover {
    background: rgba(60, 60, 60, 0.7);
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.option-btn.selected {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.option-btn.correct {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
}

.option-btn.incorrect {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

@media (max-width: 480px) {
    .quiz-stats {
        flex-wrap: wrap;
    }
    
    .stat-card {
        min-width: 70px;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .result-content {
        padding: 2rem 1rem;
    }
}