/* ============================================
   NEW YEAR THEME STYLES
   ============================================ */

/* New Year Popup Modal */
.newyear-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.newyear-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.newyear-popup {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #6366f1 100%);
    border-radius: 15px;
    padding: 25px 30px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.5s ease-out;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 15px 40px rgba(0, 0, 0, 0.3);
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.newyear-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newyear-popup-close:hover {
    transform: rotate(90deg);
    color: #ffd700;
}

.newyear-popup-content {
    text-align: center;
    color: #ffffff;
    position: relative;
}

.newyear-icon {
    font-size: 50px;
    animation: bounce 2s infinite;
    display: block;
    margin-bottom: 5px;
}

.newyear-sparkle-icon {
    font-size: 35px;
    position: absolute;
    top: -10px;
    right: -10px;
    animation: rotate 3s infinite linear;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.newyear-popup-title {
    font-size: 24px;
    font-weight: 800;
    margin: 10px 0 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffd700;
}

.newyear-popup-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.newyear-discount-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1e3a8a;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 15px auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.discount-number {
    font-size: 32px;
    line-height: 1;
}

.discount-text {
    font-size: 18px;
    line-height: 1;
}

.newyear-popup-message {
    font-size: 13px;
    line-height: 1.6;
    margin: 15px 0;
    color: #ffffff;
}

.newyear-popup-message strong {
    color: #ffd700;
    font-size: 16px;
}

.newyear-popup-btn {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newyear-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.newyear-popup-note {
    font-size: 10px;
    margin-top: 10px;
    opacity: 0.8;
    font-style: italic;
}

.newyear-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.newyear-decorations .sparkle {
    position: absolute;
    color: #ffd700;
    font-size: 14px;
    animation: float 3s infinite;
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.newyear-decorations .sparkle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.newyear-decorations .sparkle:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
}

.newyear-decorations .sparkle:nth-child(3) {
    left: 80%;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(400px) rotate(360deg);
        opacity: 0;
    }
}

/* Falling Sparkles Background - Optional, can be disabled in JS */
.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    color: #ffd700;
    font-size: 1.2em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
    animation: sparklefall linear infinite;
    opacity: 0.6;
}

@keyframes sparklefall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .newyear-popup {
        padding: 20px 20px;
        max-width: 85%;
        border-radius: 12px;
    }

    .newyear-popup-title {
        font-size: 20px;
        margin: 8px 0 5px;
    }

    .newyear-popup-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .newyear-icon {
        font-size: 40px;
        margin-bottom: 5px;
    }

    .newyear-sparkle-icon {
        font-size: 28px;
        top: -8px;
        right: -8px;
    }

    .newyear-discount-badge {
        padding: 10px 16px;
        margin: 12px auto;
        gap: 6px;
    }

    .discount-number {
        font-size: 28px;
    }

    .discount-text {
        font-size: 16px;
    }

    .newyear-popup-message {
        font-size: 12px;
        margin: 12px 0;
    }

    .newyear-popup-message strong {
        font-size: 14px;
    }

    .newyear-popup-btn {
        padding: 10px 20px;
        font-size: 13px;
        margin: 12px 0;
    }

    .newyear-popup-note {
        font-size: 9px;
        margin-top: 8px;
    }

    .newyear-popup-close {
        top: 8px;
        right: 12px;
        font-size: 20px;
        width: 26px;
        height: 26px;
    }

    .sparkle {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .newyear-popup {
        padding: 18px 15px;
        max-width: 90%;
    }

    .newyear-popup-title {
        font-size: 18px;
    }

    .newyear-icon {
        font-size: 35px;
    }
}

