/**
 * Christmas Holiday Effects - Centralized CSS
 * For CDN deployment across all frontoffice sites
 * Prefix: xmas- to avoid conflicts with existing styles
 */

/* ============================================
   Snowfall
   ============================================ */

.xmas-snowfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.xmas-snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: xmas-snowfall linear infinite;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes xmas-snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

.xmas-snowflake:nth-child(odd) {
    animation-duration: 8s;
}

.xmas-snowflake:nth-child(even) {
    animation-duration: 12s;
}

.xmas-snowflake:nth-child(3n) {
    font-size: 1.5em;
    animation-duration: 10s;
}

.xmas-snowflake:nth-child(5n) {
    font-size: 0.8em;
    animation-duration: 15s;
}

.xmas-snowflake:nth-child(7n) {
    font-size: 1.2em;
}

/* ============================================
   Christmas Trees
   ============================================ */

.xmas-tree {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    z-index: 50;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(0, 100, 0, 0.3));
}

.xmas-tree--left {
    left: 20px;
}

.xmas-tree--right {
    right: 20px;
}

@media (max-width: 1400px) {
    .xmas-tree {
        display: none;
    }
}

/* ============================================
   Gift Hunt
   ============================================ */

.xmas-gift {
    position: fixed;
    font-size: 2rem;
    z-index: 999;
    cursor: pointer;
    pointer-events: auto;
    animation: xmas-gift-float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.xmas-gift:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

@keyframes xmas-gift-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   Coupon Modal
   ============================================ */

.xmas-coupon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: xmas-fadeIn 0.3s ease;
}

@keyframes xmas-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.xmas-coupon-modal {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3f 50%, #1a472a 100%);
    border: 4px solid #c41e3a;
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3);
    animation: xmas-modalPop 0.4s ease;
}

@keyframes xmas-modalPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.xmas-coupon-modal h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.xmas-coupon-emoji {
    font-size: 4rem;
    display: block;
    margin: 15px 0;
}

.xmas-coupon-modal p {
    color: #fff;
    font-size: 1rem;
    margin: 15px 0;
}

.xmas-coupon-code {
    background: #fff;
    color: #c41e3a;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    margin: 15px 0;
    letter-spacing: 3px;
    cursor: pointer;
    border: 2px dashed #c41e3a;
    transition: all 0.3s ease;
}

.xmas-coupon-code:hover {
    background: #ffeef0;
    transform: scale(1.05);
}

.xmas-coupon-close {
    background: #c41e3a;
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.xmas-coupon-close:hover {
    background: #a01830;
    transform: scale(1.05);
}

.xmas-coupon-copied {
    color: #90EE90;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.xmas-coupon-copied.show {
    opacity: 1;
}

.xmas-coupon-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.xmas-coupon-details strong {
    color: #ffd700;
    font-size: 1.1rem;
}

/* ============================================
   Mobile Adjustments
   ============================================ */

@media (max-width: 768px) {
    .xmas-snowflake {
        font-size: 0.6em;
    }

    .xmas-snowfall-container {
        opacity: 0.6;
    }

    .xmas-gift {
        font-size: 1.5rem;
    }

    .xmas-coupon-modal {
        padding: 20px 25px;
    }

    .xmas-coupon-modal h2 {
        font-size: 1.4rem;
    }

    .xmas-coupon-code {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    .xmas-snowflake,
    .xmas-gift {
        animation: none;
    }

    .xmas-snowfall-container {
        display: none;
    }
}