/* ==========================================================================
   DesignDekh Seasonal Themes — Frontend CSS
   - Zero structural changes to existing theme/WooCommerce elements
   - Non-blocking overlays (pointer-events: none)
   - Mobile-first & GPU-accelerated (translate3d)
   ========================================================================== */

/* 1. Sub-Header Slim Decorative Strip */
.dd-st-subheader-strip {
    width: 100%;
    min-height: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.35;
    position: relative;
    overflow: hidden;
    z-index: 90;
    box-sizing: border-box;
}

.dd-st-subheader-strip:empty {
    min-height: 6px;
    padding: 0;
}

.dd-st-strip-text {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .dd-st-subheader-strip {
        font-size: 11.5px;
        padding: 5px 10px;
        letter-spacing: 0.3px;
    }
}

/* 2. Full-Viewport Ambient Particle Container */
.dd-st-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.dd-st-particle {
    position: absolute;
    top: -40px;
    left: var(--x, 50%);
    opacity: var(--op, 0.85);
    user-select: none;
    will-change: transform;
}

@media (max-width: 768px) {
    .dd-st-hide-mobile {
        display: none !important;
    }
    .dd-st-particle {
        transform-origin: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dd-st-overlay,
    .dd-st-subheader-strip::before,
    .dd-st-subheader-strip::after {
        display: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   THEME 1: CHRISTMAS (Snowfall + Evergreen/Crimson Header & Footer)
   ========================================================================== */
body.dd-theme-christmas header#masthead,
body.dd-theme-christmas .site-header {
    border-top: 3px solid #b91c1c;
    box-shadow: 0 4px 18px rgba(15, 61, 46, 0.08);
}

body.dd-theme-christmas footer#colophon,
body.dd-theme-christmas .site-footer {
    border-top: 3px solid #0f3d2e;
    background-image: linear-gradient(180deg, rgba(15, 61, 46, 0.04) 0%, rgba(185, 28, 28, 0.04) 100%);
}

.dd-st-strip-christmas {
    background: linear-gradient(90deg, #0f3d2e 0%, #b91c1c 50%, #0f3d2e 100%);
    color: #ffffff;
}

.dd-st-overlay-snow .dd-st-particle {
    color: #ffffff;
    font-size: var(--size, 18px);
    text-shadow: 0 2px 6px rgba(15, 35, 65, 0.28);
    animation: dd-st-fall var(--dur, 10s) linear var(--delay, 0s) infinite;
}

.dd-st-overlay-snow .dd-st-particle.dd-st-v0::after { content: "❄"; display: block; animation: dd-st-sway 3.4s ease-in-out infinite alternate; }
.dd-st-overlay-snow .dd-st-particle.dd-st-v1::after { content: "❅"; display: block; animation: dd-st-sway 4.1s ease-in-out infinite alternate; }
.dd-st-overlay-snow .dd-st-particle.dd-st-v2::after { content: "❆"; display: block; animation: dd-st-sway 2.9s ease-in-out infinite alternate; }

@media (max-width: 768px) {
    .dd-st-overlay-snow .dd-st-particle {
        font-size: calc(var(--size, 18px) * 0.78);
    }
}

/* ==========================================================================
   THEME 2: DIWALI (Rising Golden Diya Sparks + Royal Purple/Gold Accents)
   ========================================================================== */
body.dd-theme-diwali header#masthead,
body.dd-theme-diwali .site-header {
    border-top: 3px solid #f59e0b;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.14);
}

body.dd-theme-diwali footer#colophon,
body.dd-theme-diwali .site-footer {
    border-top: 3px solid #f59e0b;
    background-image: linear-gradient(180deg, rgba(46, 16, 101, 0.05) 0%, rgba(245, 158, 11, 0.06) 100%);
}

.dd-st-strip-diwali {
    background: linear-gradient(90deg, #2e1065 0%, #7e22ce 50%, #2e1065 100%);
    color: #fde68a;
    border-bottom: 2px solid #f59e0b;
}

.dd-st-overlay-diwali .dd-st-particle {
    top: auto;
    bottom: -30px;
    width: calc(var(--size, 14px) * 0.55);
    height: calc(var(--size, 14px) * 0.55);
    border-radius: 50%;
    background: radial-gradient(circle, #fef08a 0%, #f59e0b 65%, rgba(245, 158, 11, 0) 100%);
    box-shadow: 0 0 10px #fbbf24, 0 0 18px rgba(245, 158, 11, 0.6);
    animation: dd-st-rise var(--dur, 10s) ease-in var(--delay, 0s) infinite;
}

/* ==========================================================================
   THEME 3: DASARA / NAVRATRI (Falling Marigold Petals + Saffron/Vermilion)
   ========================================================================== */
body.dd-theme-dasara header#masthead,
body.dd-theme-dasara .site-header {
    border-top: 3px solid #ea580c;
}

body.dd-theme-dasara footer#colophon,
body.dd-theme-dasara .site-footer {
    border-top: 3px solid #ea580c;
    background-image: linear-gradient(180deg, rgba(234, 88, 12, 0.04) 0%, rgba(250, 204, 21, 0.05) 100%);
}

.dd-st-strip-dasara {
    background: linear-gradient(90deg, #9a3412 0%, #ea580c 50%, #9a3412 100%);
    color: #fef08a;
}

.dd-st-overlay-dasara .dd-st-particle {
    width: calc(var(--size, 16px) * 0.7);
    height: calc(var(--size, 16px) * 0.5);
    border-radius: 70% 30% 70% 30%;
    animation: dd-st-fall-spin var(--dur, 10s) linear var(--delay, 0s) infinite;
}

.dd-st-overlay-dasara .dd-st-particle.dd-st-v0 { background: #f97316; }
.dd-st-overlay-dasara .dd-st-particle.dd-st-v1 { background: #facc15; }
.dd-st-overlay-dasara .dd-st-particle.dd-st-v2 { background: #ea580c; }

/* ==========================================================================
   THEME 4: NEW YEAR (Metallic Gold & Silver Confetti + Champagne Trim)
   ========================================================================== */
body.dd-theme-new_year header#masthead,
body.dd-theme-new_year .site-header {
    border-top: 3px solid #eab308;
}

body.dd-theme-new_year footer#colophon,
body.dd-theme-new_year .site-footer {
    border-top: 3px solid #eab308;
    background-image: linear-gradient(180deg, rgba(24, 24, 27, 0.03) 0%, rgba(234, 179, 8, 0.05) 100%);
}

.dd-st-strip-new_year {
    background: linear-gradient(90deg, #09090b 0%, #27272a 50%, #09090b 100%);
    color: #fde047;
    border-bottom: 1px solid #eab308;
}

.dd-st-overlay-new_year .dd-st-particle {
    width: calc(var(--size, 14px) * 0.65);
    height: calc(var(--size, 14px) * 0.35);
    border-radius: 2px;
    animation: dd-st-fall-spin var(--dur, 9.5s) linear var(--delay, 0s) infinite;
}

.dd-st-overlay-new_year .dd-st-particle.dd-st-v0 { background: linear-gradient(135deg, #fde047, #ca8a04); }
.dd-st-overlay-new_year .dd-st-particle.dd-st-v1 { background: linear-gradient(135deg, #f8fafc, #94a3b8); }
.dd-st-overlay-new_year .dd-st-particle.dd-st-v2 { background: linear-gradient(135deg, #fbbf24, #d97706); }

/* ==========================================================================
   THEME 5: NATIONAL DAY (15 Aug / 26 Jan Tricolor Wave Strip + Footer Trim)
   ========================================================================== */
body.dd-theme-national_day header#masthead,
body.dd-theme-national_day .site-header {
    border-top: 3px solid #ff9933;
}

body.dd-theme-national_day footer#colophon,
body.dd-theme-national_day .site-footer {
    border-top: 3px solid #138808;
}

.dd-st-strip-national_day {
    background: linear-gradient(90deg, #ff9933 0%, #ffffff 50%, #138808 100%);
    background-size: 200% 100%;
    color: #0f172a;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    animation: dd-st-gradient-pan 8s ease infinite;
}

/* ==========================================================================
   THEME 6: CRICKET MATCH / IPL FEVER (Header Floodlight + Stadium Strip)
   ========================================================================== */
body.dd-theme-cricket_match header#masthead,
body.dd-theme-cricket_match .site-header {
    position: relative;
    border-top: 3px solid #1d4ed8;
}

body.dd-theme-cricket_match footer#colophon,
body.dd-theme-cricket_match .site-footer {
    border-top: 3px solid #eab308;
}

.dd-st-strip-cricket_match {
    background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 50%, #0f172a 100%);
    color: #facc15;
}

.dd-st-strip-cricket_match::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: dd-st-sweep 3.2s ease-in-out infinite;
}

/* ==========================================================================
   THEME 7: NEW SALE / MEGA DROP (Shimmer Strip + Header/Footer Highlight)
   ========================================================================== */
body.dd-theme-new_sale header#masthead,
body.dd-theme-new_sale .site-header {
    border-top: 3px solid #4f46e5;
}

body.dd-theme-new_sale footer#colophon,
body.dd-theme-new_sale .site-footer {
    border-top: 3px solid #ec4899;
}

.dd-st-strip-new_sale {
    background: linear-gradient(90deg, #4f46e5, #9333ea, #ec4899, #4f46e5);
    background-size: 250% 100%;
    color: #ffffff;
    animation: dd-st-gradient-pan 6s linear infinite;
}

/* ==========================================================================
   THEME 8: DISCOUNT OFFERS (Emerald & Gold Storewide Offer Accent)
   ========================================================================== */
body.dd-theme-discount_offers header#masthead,
body.dd-theme-discount_offers .site-header {
    border-top: 3px solid #059669;
}

body.dd-theme-discount_offers footer#colophon,
body.dd-theme-discount_offers .site-footer {
    border-top: 3px solid #059669;
}

.dd-st-strip-discount_offers {
    background: linear-gradient(90deg, #064e3b 0%, #059669 50%, #064e3b 100%);
    color: #fef08a;
}

/* ==========================================================================
   THEME 9: BUY NOW — TIME URGENCY (Pulsing Crimson/Amber Strip)
   ========================================================================== */
body.dd-theme-buy_now_urgency header#masthead,
body.dd-theme-buy_now_urgency .site-header {
    border-top: 3px solid #dc2626;
}

body.dd-theme-buy_now_urgency footer#colophon,
body.dd-theme-buy_now_urgency .site-footer {
    border-top: 3px solid #dc2626;
}

.dd-st-strip-buy_now_urgency {
    background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 50%, #7f1d1d 100%);
    color: #fef08a;
    animation: dd-st-urgency-pulse 2.4s ease-in-out infinite;
}

/* ==========================================================================
   SHARED GPU-ACCELERATED KEYFRAMES
   ========================================================================== */
@keyframes dd-st-fall {
    0% {
        transform: translate3d(0, -5vh, 0);
    }
    100% {
        transform: translate3d(var(--drift, 25px), 106vh, 0);
    }
}

@keyframes dd-st-fall-spin {
    0% {
        transform: translate3d(0, -5vh, 0) rotate(0deg);
    }
    100% {
        transform: translate3d(var(--drift, 25px), 106vh, 0) rotate(540deg);
    }
}

@keyframes dd-st-sway {
    0% {
        transform: translateX(-10px) rotate(0deg);
    }
    100% {
        transform: translateX(10px) rotate(160deg);
    }
}

@keyframes dd-st-rise {
    0% {
        transform: translate3d(0, 0, 0) scale(0.8);
        opacity: 0;
    }
    15% {
        opacity: var(--op, 0.85);
    }
    85% {
        opacity: var(--op, 0.85);
    }
    100% {
        transform: translate3d(var(--drift, 20px), -106vh, 0) scale(1.1);
        opacity: 0;
    }
}

@keyframes dd-st-gradient-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes dd-st-sweep {
    0% { left: -40%; }
    100% { left: 120%; }
}

@keyframes dd-st-urgency-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.18); }
}
