/* ============================================ */
/* CLASS 9 - BOARD PREPARATION - ORANGE THEME */
/* ============================================ */

:root {
    --primary-color: #f97316;
    --secondary-color: #fb923c;
    --accent-color: #fdba74;
    --dark-bg: #0f172a;
    --glow: rgba(249, 115, 22, 0.5);
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #7c2d12 50%, #92400e 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.magical-bg::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 146, 60, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(253, 186, 116, 0.1) 0%, transparent 50%);
    animation: gradientShiftOrange 20s ease infinite;
}

@keyframes gradientShiftOrange {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* Intense Focus Animation */
@keyframes intenseFocus {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.intense-focus {
    animation: intenseFocus 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Energy Pulse */
@keyframes energyPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    }
    50% { 
        transform: scale(1.03);
        box-shadow: 0 0 40px rgba(249, 115, 22, 0.6);
    }
}

.energy-pulse {
    animation: energyPulse 3s ease-in-out infinite;
}

/* Performance Flame */
@keyframes flameFlicker {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.flame-flicker {
    animation: flameFlicker 2s ease-in-out infinite;
}

/* Feature Cards - Intense */
.feature-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(251, 146, 60, 0.06) 100%);
    border: 2px solid rgba(249, 115, 22, 0.3) !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.2), transparent);
    transition: right 0.8s ease;
}

.feature-card:hover::before {
    right: 100%;
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.1) rotateZ(2deg);
    box-shadow: 0 35px 70px rgba(249, 115, 22, 0.6), 0 0 60px rgba(251, 146, 60, 0.4);
    border-color: rgba(251, 146, 60, 0.6) !important;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 146, 60, 0.08) 100%);
}

/* Magic Button - Exam Power */
.magic-btn {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.magic-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.7s ease;
}

.magic-btn:hover::after {
    left: 100%;
}

.magic-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(249, 115, 22, 0.7), 0 0 40px rgba(251, 146, 60, 0.4);
}

.magic-btn:active {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.6);
}

/* Glass Effect - Exam Mode */
.glass-effect {
    background: rgba(120, 45, 18, 0.5) !important;
    border: 1.5px solid rgba(249, 115, 22, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 10px 35px rgba(249, 115, 22, 0.15);
}

.glass-effect:hover {
    background: rgba(120, 45, 18, 0.65) !important;
    border-color: rgba(251, 146, 60, 0.5) !important;
    box-shadow: 0 15px 50px rgba(249, 115, 22, 0.35), inset 0 1px 20px rgba(255,255,255,0.12);
    transform: translateY(-7px) scale(1.04);
    transition: all 0.5s ease;
}

/* Stagger Animation - Rapid Entry */
@keyframes rapidEntry {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stagger-item {
    animation: rapidEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }

/* Glow Text - Orange */
.glow-text {
    text-shadow: 0 0 35px rgba(249, 115, 22, 0.7), 0 0 70px rgba(251, 146, 60, 0.3) !important;
    animation: orangeGlow 6s ease-in-out infinite;
}

@keyframes orangeGlow {
    0%, 100% { text-shadow: 0 0 35px rgba(249, 115, 22, 0.7), 0 0 70px rgba(251, 146, 60, 0.3); }
    50% { text-shadow: 0 0 50px rgba(249, 115, 22, 0.9), 0 0 100px rgba(251, 146, 60, 0.5); }
}

/* Exam Progress - Performance Tracker */
@keyframes examProgress {
    from { width: 0; transform: skewX(-45deg); }
    to { width: var(--progress, 0%); transform: skewX(0deg); }
}

.progress-fill {
    height: 14px;
    background: linear-gradient(90deg, #f97316, #fb923c, #fdba74);
    border-radius: 14px;
    animation: examProgress 2.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.9), inset 0 1px 5px rgba(255,255,255,0.5);
    transform-origin: left;
}

/* Class Cards - Focused */
.class-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 146, 60, 0.08) 100%);
    border: 2px solid rgba(249, 115, 22, 0.35);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.class-card:hover {
    transform: translateY(-18px) scale(1.11) rotateZ(3deg);
    border-color: rgba(251, 146, 60, 0.65);
    box-shadow: 0 32px 65px rgba(249, 115, 22, 0.6), 0 0 60px rgba(251, 146, 60, 0.35);
}

/* Pulse Magic - Intense */
@keyframes intensePulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(20deg); }
}

.pulse-magic {
    animation: intensePulse 4s ease-in-out infinite !important;
}

/* Navigation */
.nav-link-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
}

.nav-link-enhanced:hover::after {
    width: 80%;
}

/* Ripple Effect */
.ripple {
    background: rgba(249, 115, 22, 0.5) !important;
}

@keyframes ripple-animate {
    from { width: 0; height: 0; opacity: 0.8; }
    to { width: 550px; height: 550px; opacity: 0; }
}

/* Text Size Buttons */
.text-size-btn {
    background: rgba(249, 115, 22, 0.6) !important;
    border: 1.5px solid rgba(249, 115, 22, 0.4) !important;
    transition: all 0.3s ease;
}

.text-size-btn:hover {
    background: rgba(249, 115, 22, 0.8) !important;
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.6);
    transform: translateY(-3px);
}

.active-text-size {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%) !important;
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.8) !important;
    transform: scale(1.2) !important;
    text-shadow: 0 0 12px rgba(249, 115, 22, 0.7);
}

/* Footer */
footer {
    background: rgba(120, 45, 18, 0.9) !important;
    border-top: 2px solid rgba(249, 115, 22, 0.4);
}

/* Urgent Indicator */
.urgent-badge {
    animation: urgentFlash 1.5s ease-in-out infinite;
}

@keyframes urgentFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@media (max-width: 768px) {
    .feature-card:hover {
        transform: translateY(-14px) scale(1.07);
    }
    
    .stagger-item {
        animation: rapidEntry 0.5s ease-out forwards !important;
    }
}
