/* ====================================
   CHRISTMAS THEME FOR POLLOS STEVE
   ==================================== */

/* Christmas Colors & Variables */
:root {
    --christmas-red: #c41e3a;
    --christmas-green: #0f8558;
    --christmas-gold: #ffd700;
    --christmas-white: #f0f8ff;
    --steve-orange: #b2542c;
    --steve-light-orange: #d4653b;
}

/* ====================================
   SNOWFLAKES ANIMATION (OPTIMIZED)
   ==================================== */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: snowfall;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes snowfall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 100vh, 0) rotate(360deg);
        opacity: 0.8;
    }
}

/* Different snowflake animations for variety */
.snowflake:nth-of-type(2n) {
    animation-duration: 12s;
}

.snowflake:nth-of-type(3n) {
    animation-duration: 8s;
}

.snowflake:nth-of-type(4n) {
    animation-duration: 14s;
}

/* ====================================
   CHRISTMAS DECORATIONS (OPTIMIZED)
   ==================================== */

/* Christmas Lights at the top - Reduced count */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 998;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    pointer-events: none;
}

.christmas-light {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 10px;
    animation: twinkle 1.5s ease-in-out infinite;
    will-change: opacity;
}

.christmas-light:nth-child(1) { left: 10%; background: var(--christmas-red); animation-delay: 0s; }
.christmas-light:nth-child(2) { left: 30%; background: var(--christmas-green); animation-delay: 0.5s; }
.christmas-light:nth-child(3) { left: 50%; background: var(--christmas-gold); animation-delay: 1s; }
.christmas-light:nth-child(4) { left: 70%; background: var(--christmas-red); animation-delay: 0.3s; }
.christmas-light:nth-child(5) { left: 90%; background: var(--christmas-green); animation-delay: 0.8s; }

/* Christmas light wire */
.christmas-light::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background: #333;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 5px currentColor;
    }
}

/* ====================================
   CHRISTMAS BANNER
   ==================================== */
.christmas-banner {
    background: var(--christmas-red);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    border-bottom: 3px solid var(--christmas-gold);
    position: relative;
    overflow: hidden;
}

.christmas-banner::before {
    content: '🎄';
    position: absolute;
    left: 20px;
    font-size: 2rem;
    animation: sway 3s ease-in-out infinite;
}

.christmas-banner::after {
    content: '🎅';
    position: absolute;
    right: 20px;
    font-size: 2rem;
    animation: sway 3s ease-in-out infinite reverse;
}

@keyframes sway {
    0%, 100% {
        transform: rotate3d(0, 0, 1, -5deg);
    }
    50% {
        transform: rotate3d(0, 0, 1, 5deg);
    }
}

/* ====================================
   CHRISTMAS THEMED BUTTONS
   ==================================== */
.btn-christmas {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
    color: white !important;
    border: 2px solid var(--christmas-gold);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-christmas:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

/* ====================================
   CHRISTMAS DECORATIONS FOR CARDS
   ==================================== */
.christmas-card-decoration {
    position: relative;
}

.christmas-card-decoration::before {
    content: '❄️';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate3d(0, 0, 1, 0deg);
    }
    to {
        transform: rotate3d(0, 0, 1, 360deg);
    }
}

/* ====================================
   FESTIVE HEADER DECORATIONS
   ==================================== */
.christmas-header-decoration {
    position: relative;
}

.christmas-header-decoration::before,
.christmas-header-decoration::after {
    content: '🎁';
    position: absolute;
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.christmas-header-decoration::before {
    left: -40px;
}

.christmas-header-decoration::after {
    right: -40px;
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

/* ====================================
   CHRISTMAS HERO OVERLAY
   ==================================== */
.christmas-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(15, 133, 88, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ====================================
   CHRISTMAS GREETING SECTION
   ==================================== */
.christmas-greeting {
    /* use solid banner red for consistency */
    background: var(--christmas-red);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.3);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.christmas-greeting::before {
    content: '🎄🎁🎅⭐🔔';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 1.5rem;
    opacity: 0.2;
    letter-spacing: 20px;
    animation: slide 15s linear infinite;
}

@keyframes slide {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

/* ====================================
   FESTIVE MENU ITEM DECORATIONS
   ==================================== */
.christmas-menu-badge {
    display: inline-block;
    background: var(--christmas-red);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.4);
}

.christmas-menu-badge::before {
    content: '🎄 ';
}

/* ====================================
   CHRISTMAS FOOTER DECORATION
   ==================================== */
.christmas-footer-decoration {
    border-top: 3px solid var(--christmas-gold);
    background: linear-gradient(to bottom, rgba(196, 30, 58, 0.05) 0%, transparent 100%);
}

/* ====================================
   RESPONSIVE ADJUSTMENTS & PERFORMANCE
   ==================================== */
@media (max-width: 768px) {
    .christmas-banner::before,
    .christmas-banner::after {
        font-size: 1.5rem;
    }
    
    .christmas-banner::before {
        left: 10px;
    }
    
    .christmas-banner::after {
        right: 10px;
    }
    
    .christmas-header-decoration::before,
    .christmas-header-decoration::after {
        display: none;
    }
    
    .snowflake {
        font-size: 1.2rem;
    }
    
    /* Reduce animations on mobile for better performance */
    .christmas-light,
    .christmas-cart-light-item {
        animation-duration: 2s;
    }
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .snowflake,
    .christmas-light,
    .christmas-cart-light-item,
    .christmas-banner::before,
    .christmas-banner::after {
        animation: none !important;
    }
}

/* ====================================
   SPECIAL CHRISTMAS PROMOTION BOX
   ==================================== */
.christmas-promo-box {
    /* use solid banner red for consistency */
    background: var(--christmas-red);
    border: 3px solid var(--christmas-gold);
    border-radius: 15px;
    padding: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
    position: relative;
    overflow: hidden;
}

.christmas-promo-box::before {
    content: '✨';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.christmas-promo-box::after {
    content: '✨';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite;
    animation-delay: 0.75s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
    50% {
        opacity: 0.5;
        transform: scale3d(1.2, 1.2, 1);
    }
}

/* ====================================
   CHRISTMAS THEMED CART ICON
   ==================================== */
.christmas-cart-decoration {
    position: relative;
}

/* Removed jumping Santa that blocks cart - using subtle decoration instead */

/* ====================================
   HOLLY DECORATION
   ==================================== */
.holly-decoration {
    position: relative;
    padding-left: 30px;
}

.holly-decoration::before {
    content: '🎄';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* ====================================
   CART SIDEBAR CHRISTMAS DECORATIONS
   ==================================== */
.christmas-cart-header {
    position: relative;
    padding: 10px 0;
}

.christmas-cart-header::before {
    content: '🎄';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    animation: sway 3s ease-in-out infinite;
}

.christmas-cart-header::after {
    content: '🎁';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    animation: bounce 2s ease-in-out infinite;
}

/* Christmas lights along the cart sidebar */
.christmas-cart-lights {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 20px;
    pointer-events: none;
    z-index: 1056;
    display: none;
}

.offcanvas.show ~ .christmas-cart-lights {
    display: block;
}

.christmas-cart-light-item {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    right: 5px;
    box-shadow: 0 0 8px currentColor;
    will-change: opacity;
}

.christmas-cart-light-item:nth-child(1) { top: 15%; background: var(--christmas-red); animation: twinkle 1.5s ease-in-out infinite; animation-delay: 0s; }
.christmas-cart-light-item:nth-child(2) { top: 35%; background: var(--christmas-green); animation: twinkle 1.5s ease-in-out infinite; animation-delay: 0.5s; }
.christmas-cart-light-item:nth-child(3) { top: 50%; background: var(--christmas-gold); animation: twinkle 1.5s ease-in-out infinite; animation-delay: 1s; }
.christmas-cart-light-item:nth-child(4) { top: 65%; background: var(--christmas-red); animation: twinkle 1.5s ease-in-out infinite; animation-delay: 0.3s; }
.christmas-cart-light-item:nth-child(5) { top: 85%; background: var(--christmas-green); animation: twinkle 1.5s ease-in-out infinite; animation-delay: 0.8s; }

.christmas-cart-item {
    border-left: 3px solid transparent;
    border-image: linear-gradient(to bottom, #c41e3a, #0f8558, #ffd700) 1;
    padding-left: 10px !important;
    position: relative;
}

.christmas-cart-total {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(15, 133, 88, 0.05) 100%);
    border-radius: 10px;
    padding: 10px;
    position: relative;
}

.christmas-cart-total::before {
    content: '❄️';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.2rem;
    animation: spin 4s linear infinite;
}

/* ====================================
   WHATSAPP ORDER BUTTON CHRISTMAS LIGHTS
   ==================================== */
.btn-christmas-order {
    position: relative;
    overflow: visible;
}

.btn-christmas-order::before {
    content: '💡';
    position: absolute;
    top: -8px;
    left: 10%;
    font-size: 0.8rem;
    animation: twinkle 1.5s ease-in-out infinite;
}

.btn-christmas-order::after {
    content: '💡';
    position: absolute;
    top: -8px;
    right: 10%;
    font-size: 0.8rem;
    animation: twinkle 1.5s ease-in-out infinite;
    animation-delay: 0.75s;
}

/* Extra lights for the button */
.christmas-order-lights {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
}

.christmas-order-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: twinkle 1.5s ease-in-out infinite;
}

.christmas-order-light:nth-child(1) { background: #c41e3a; animation-delay: 0s; }
.christmas-order-light:nth-child(2) { background: #0f8558; animation-delay: 0.3s; }
.christmas-order-light:nth-child(3) { background: #ffd700; animation-delay: 0.6s; }
.christmas-order-light:nth-child(4) { background: #c41e3a; animation-delay: 0.9s; }
.christmas-order-light:nth-child(5) { background: #0f8558; animation-delay: 1.2s; }
