/* CSS for Interactive Quiz */

:root {
    --primary: #4f46e5;
    --success: #10b981;
    --error: #ef4444;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Question Navigation Buttons */
.nav-btn {
    min-width: 45px;
    height: 45px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 2px solid #f1f5f9;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-btn.correct {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.nav-btn.wrong {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

/* Answer Buttons with Gradients */
.answer-btn {
    text-align: left;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
    border: 2px solid #f1f5f9;
    background: white;
    color: #334155;
    position: relative;
    overflow: hidden;
}

.answer-btn:hover:not(:disabled) {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateX(5px);
}

.answer-btn .opt-label {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.2s;
}

.answer-btn:nth-child(1):hover .opt-label { background: linear-gradient(135deg, #60a5fa, #3b82f6); color: white; }
.answer-btn:nth-child(2):hover .opt-label { background: linear-gradient(135deg, #f472b6, #db2777); color: white; }
.answer-btn:nth-child(3):hover .opt-label { background: linear-gradient(135deg, #fbbf24, #d97706); color: white; }
.answer-btn:nth-child(4):hover .opt-label { background: linear-gradient(135deg, #34d399, #059669); color: white; }
.answer-btn:nth-child(5):hover .opt-label { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: white; }

/* Status Styles */
.answer-btn.correct {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}

.answer-btn.correct .opt-label {
    background: #10b981 !important;
    color: white !important;
}

.answer-btn.wrong {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}

.answer-btn.wrong .opt-label {
    background: #ef4444 !important;
    color: white !important;
}

/* HOTS Badge */
.hots-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

/* Scroll Adjustment */
#quizContainer {
    scroll-margin-top: 150px;
}

/* Explanation Box */
.explanation-box {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AI Button */
.btn-ai {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}
