/* ============================================
   MAAC Panbazar - December / Christmas Theme
   Professional, lightweight seasonal styling
   ============================================ */

/* ============================================
   ROOT VARIABLES & NAMESPACE
   ============================================ */
.panbazar-christmas {
    --christmas-red: #C62828;
    --christmas-green: #2E7D32;
    --christmas-gold: #D4AF37;
    --snow-white: #FFFFFF;
    --frost-blue: rgba(173, 216, 230, 0.3);
}

/* ============================================
   SNOWFALL EFFECT - Pure CSS
   ============================================ */
.panbazar-christmas__snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.panbazar-christmas__snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.6;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .panbazar-christmas__snowflake {
        animation: none;
        display: none;
    }
}

/* ============================================
   DECORATIVE RIBBON
   ============================================ */
.panbazar-christmas__ribbon {
    position: fixed;
    top: 80px;
    right: -40px;
    background: linear-gradient(135deg, var(--christmas-red) 0%, #A52020 100%);
    color: var(--snow-white);
    padding: 8px 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.panbazar-christmas__ribbon::before,
.panbazar-christmas__ribbon::after {
    content: '';
    position: absolute;
    border-style: solid;
}

.panbazar-christmas__ribbon::before {
    top: 100%;
    right: 0;
    border-width: 0 20px 10px 0;
    border-color: transparent #7A1616 transparent transparent;
}

/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */
.panbazar-christmas .hero-section {
    position: relative;
    overflow: hidden;
}

.panbazar-christmas .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(212, 175, 55, 0.08) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.panbazar-christmas .hero-content {
    position: relative;
    z-index: 2;
}

/* ============================================
   SECTION HEADING DECORATIONS
   ============================================ */
.panbazar-christmas .section-header h2::before {
    content: '❄️';
    display: inline-block;
    margin-right: 12px;
    font-size: 0.85em;
    opacity: 0.8;
    animation: sparkle 3s ease-in-out infinite;
}

.panbazar-christmas .section-header h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--christmas-red) 0%,
        var(--snow-white) 25%,
        var(--christmas-green) 50%,
        var(--snow-white) 75%,
        var(--christmas-red) 100%
    );
    background-size: 200% 100%;
    margin: 12px auto 0;
    border-radius: 2px;
    animation: candy-cane-slide 3s linear infinite;
}

@keyframes candy-cane-slide {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ============================================
   COURSE SPOTLIGHT - Featured Courses
   ============================================ */
.panbazar-christmas .course-card.course-spotlight {
    position: relative;
    border: 2px solid var(--christmas-gold);
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.2),
        0 0 20px rgba(212, 175, 55, 0.15);
    animation: gentle-glow 2s ease-in-out infinite alternate;
}

.panbazar-christmas .course-card.course-spotlight::before {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    z-index: 10;
    animation: rotate-star 4s linear infinite;
}

.panbazar-christmas .course-card.course-spotlight::after {
    content: 'December Special';
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--christmas-gold);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes gentle-glow {
    0% {
        box-shadow: 
            0 4px 15px rgba(212, 175, 55, 0.2),
            0 0 20px rgba(212, 175, 55, 0.15);
    }
    100% {
        box-shadow: 
            0 6px 20px rgba(212, 175, 55, 0.3),
            0 0 30px rgba(212, 175, 55, 0.25);
    }
}

@keyframes rotate-star {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   CTA BUTTON SPARKLE EFFECT
   ============================================ */
.panbazar-christmas .primary-btn,
.panbazar-christmas .course-btn,
.panbazar-christmas .cta-button,
.panbazar-christmas .view-all-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.panbazar-christmas .primary-btn:hover,
.panbazar-christmas .course-btn:hover,
.panbazar-christmas .cta-button:hover,
.panbazar-christmas .view-all-btn:hover {
    box-shadow: 
        0 0 15px rgba(212, 175, 55, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.panbazar-christmas .primary-btn::after,
.panbazar-christmas .course-btn::after,
.panbazar-christmas .cta-button::after,
.panbazar-christmas .view-all-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.panbazar-christmas .primary-btn:hover::after,
.panbazar-christmas .course-btn:hover::after,
.panbazar-christmas .cta-button:hover::after,
.panbazar-christmas .view-all-btn:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* ============================================
   ACCENT HIGHLIGHTS
   ============================================ */
.panbazar-christmas .about-features li:hover .feature-icon {
    color: var(--christmas-red);
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

.panbazar-christmas .stat-number {
    color: var(--christmas-gold) !important;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    /* Reduce snow density */
    .panbazar-christmas__snowflake:nth-child(n+6) {
        display: none;
    }
    
    .panbazar-christmas .section-header h2::before {
        font-size: 0.75em;
        margin-right: 8px;
    }
    
    .panbazar-christmas .course-card.course-spotlight::after {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    /* Hide ribbon on very small screens */
    .panbazar-christmas__ribbon {
        display: none;
    }
    
    /* Further reduce snow */
    .panbazar-christmas__snowflake:nth-child(n+4) {
        display: none;
    }
    
    .panbazar-christmas .section-header h2::after {
        width: 80px;
    }
}

/* ============================================
   ACCESSIBILITY - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .panbazar-christmas .course-card.course-spotlight,
    .panbazar-christmas .section-header h2::before,
    .panbazar-christmas .course-card.course-spotlight::before {
        animation: none;
    }
    
    .panbazar-christmas .section-header h2::after {
        animation: none;
        background: var(--christmas-red);
    }
    
    .panbazar-christmas .primary-btn:hover,
    .panbazar-christmas .course-btn:hover,
    .panbazar-christmas .cta-button:hover,
    .panbazar-christmas .view-all-btn:hover {
        transform: none;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATION
   ============================================ */
.panbazar-christmas__snowflake,
.panbazar-christmas .course-card.course-spotlight,
.panbazar-christmas .section-header h2::before,
.panbazar-christmas .section-header h2::after {
    will-change: transform;
}

/* Use GPU acceleration for better performance */
.panbazar-christmas__snowflake {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   PRINT STYLES - Hide decorative elements
   ============================================ */
@media print {
    .panbazar-christmas__snow,
    .panbazar-christmas__ribbon,
    .panbazar-christmas .section-header h2::before,
    .panbazar-christmas .section-header h2::after,
    .panbazar-christmas .course-card.course-spotlight::before,
    .panbazar-christmas .course-card.course-spotlight::after {
        display: none !important;
    }
}
