/* ============================================
   Christmas Theme CSS
   ============================================ */

/* CSS Variables for Christmas Theme */
:root {
    --christmas-red: #dc3545;
    --christmas-green: #28a745;
    --christmas-white: #ffffff;
    --christmas-dark-red: #c82333;
    --christmas-dark-green: #218838;
}

/* Christmas Theme Active */
body.christmas-theme {
    position: relative;
}

/* ============================================
   Falling Snowflakes Animation
   ============================================ */
.christmas-theme::before {
    content: '';
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    z-index: 9998;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, var(--christmas-white), transparent),
        radial-gradient(2px 2px at 60% 70%, var(--christmas-white), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--christmas-white), transparent),
        radial-gradient(1px 1px at 80% 10%, var(--christmas-white), transparent),
        radial-gradient(2px 2px at 90% 60%, var(--christmas-white), transparent),
        radial-gradient(1px 1px at 33% 80%, var(--christmas-white), transparent),
        radial-gradient(1px 1px at 15% 40%, var(--christmas-white), transparent),
        radial-gradient(2px 2px at 55% 20%, var(--christmas-white), transparent),
        radial-gradient(1.5px 1.5px at 25% 60%, var(--christmas-white), transparent),
        radial-gradient(1.5px 1.5px at 75% 30%, var(--christmas-white), transparent),
        radial-gradient(1px 1px at 40% 90%, var(--christmas-white), transparent),
        radial-gradient(2px 2px at 10% 50%, var(--christmas-white), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: snowflakes-fall 10s linear infinite;
    opacity: 0.6;
}

.christmas-theme::after {
    content: '';
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    z-index: 9997;
    background-image: 
        radial-gradient(1.5px 1.5px at 30% 20%, var(--christmas-white), transparent),
        radial-gradient(1px 1px at 70% 50%, var(--christmas-white), transparent),
        radial-gradient(2px 2px at 50% 80%, var(--christmas-white), transparent),
        radial-gradient(1px 1px at 20% 70%, var(--christmas-white), transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, var(--christmas-white), transparent),
        radial-gradient(1px 1px at 45% 40%, var(--christmas-white), transparent),
        radial-gradient(2px 2px at 65% 10%, var(--christmas-white), transparent),
        radial-gradient(1px 1px at 35% 90%, var(--christmas-white), transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: snowflakes-fall 12s linear infinite;
    opacity: 0.5;
    animation-delay: -5s;
}

@keyframes snowflakes-fall {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(100vh) translateX(-30px);
    }
}

/* Reduce animation on mobile for performance */
@media (max-width: 768px) {
    .christmas-theme::before {
        animation-duration: 15s;
        opacity: 0.4;
        background-size: 150px 150px;
    }
    
    .christmas-theme::after {
        animation-duration: 18s;
        opacity: 0.3;
        background-size: 180px 180px;
    }
}

/* ============================================
   Buttons with Green Effect
   ============================================ */
.christmas-theme .custom-button {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
    position: relative;
    overflow: hidden;
}

.christmas-theme .custom-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.christmas-theme .custom-button:hover {
    background: linear-gradient(135deg, var(--christmas-dark-red) 0%, var(--christmas-dark-green) 100%);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   Breadcrumb Area - Christmas Background
   ============================================ */
.christmas-theme .breadcrumb-area {
    /* Comment out the original image */
    /* background: 
        url("../images/banner/heartshape.png")
            no-repeat center bottom / cover,
        #311591; */
    
    /* New Christmas background with red color similar to breadcrumb */
    /* Add your Christmas image (Santa, trees, gifts) to: public/assets/images/banner/christmas-bg.jpg */
    background: 
        /* Christmas image with Santa, trees, gifts */
        url("../images/banner/christmas-bg.jpg") 
            no-repeat center center / cover,
        /* Red background similar to breadcrumb-area */
        linear-gradient(135deg, #8b0000 0%, #a00000 50%, #8b0000 100%);
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay for better text readability */
.christmas-theme .breadcrumb-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.7) 0%,
        rgba(160, 0, 0, 0.6) 50%,
        rgba(139, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.christmas-theme .breadcrumb-area .container {
    position: relative;
    z-index: 2;
}

/* Note: Add your Christmas image with Santa, trees, and gifts to:
   public/assets/images/banner/christmas-bg.jpg
   
   Recommended image specs:
   - Format: JPG or PNG
   - Size: 1920x600px or larger
   - Content: Santa Claus, Christmas trees, gifts, festive elements
   - Style: Red/dark background to match breadcrumb area
*/

/* ============================================
   Accessibility - Respect Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .christmas-theme::before,
    .christmas-theme::after {
        animation: none;
    }
    
    .christmas-theme .custom-button::before {
        animation: none;
    }
}
