@import url('https://fonts.googleapis.com/css2?family=Yatra+One&family=Rozha+One&display=swap');

/* ==========================================================================
   🌅 SIZEFIX CHHATH PUJA: ROYAL DARK THEME (FAV-IMAGES EDITION) 🌅
   1672x941 Widescreen Artwork, Vivid Water Waves, Living Sun Glow, Embers & Audio
   ========================================================================== */

/* 1. FORCE PURE DEEP BLACK HTML & BODY */
html, body, html.dark-theme, body.dark-theme {
    background-color: #000000 !important;
    color: #f8fafc !important;
}

/* 2. DEVOTIONAL VRATI (CORNER PNG STANDING IN WATER) */
.chhath-vrati-corner {
    position: fixed !important;
    bottom: -15px !important; /* Lower portion immersed in water */
    left: -10px !important;
    z-index: 9980 !important; /* Behind .sf-bottom-ticker (z-index: 9990) and #sz-feedback-root (z-index: 99999) */
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    user-select: none !important;
    transition: bottom 0.3s ease !important;
    overflow: visible !important;
    contain: none !important;
    transform: translateZ(0) !important;
}

.chhath-vrati-img {
    height: 480px !important; /* Grand, prominent, enlarged size */
    width: auto !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important; /* Vrati & daura/thali in FRONT so sun NEVER overlays/covers the basket */
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.85)) !important;
    /* Hardware accelerated layer */
    transform: translateZ(0) !important;
    will-change: transform !important;
    animation: none !important;
}

/* 2.1 FULL-SCREEN SACRED WATER BACKDROP (SEAMLESS FLUID MOTION - ZERO SEAM) */
.chhath-water-fullscreen-wrap {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important; /* Base layer behind all content */
    pointer-events: none !important;
    user-select: none !important;
    overflow: hidden !important;
    background-color: #000000 !important;
    contain: strict !important;
}

.chhath-water-fluid-img {
    position: absolute !important;
    top: -4vh !important;
    left: -4vw !important;
    width: 108vw !important;
    height: 108vh !important;
    object-fit: cover !important;
    object-position: center bottom !important;
    display: block !important;
    will-change: transform !important;
    transform: translate3d(-14px, 0, 0) scale(1.03) !important;
    animation: chhathWaterFluidMotion 12s ease-in-out infinite alternate !important;
}

/* Real-time flowing river current canvas (लगातार बहती पावन जलधारा) */
.chhath-water-flow-canvas {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 58vh !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Sunlight shimmer reflection dancing on the water surface */
.chhath-water-shimmer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 62vh !important;
    background: radial-gradient(ellipse 85% 55% at 50% 70%, rgba(251, 191, 36, 0.14) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 80%) !important;
    pointer-events: none !important;
    will-change: transform, opacity !important;
    animation: chhathSunlightShimmer 8s ease-in-out infinite alternate !important;
}

@keyframes chhathWaterFluidMotion {
    0% {
        transform: translate3d(-14px, 0, 0) scale(1.03);
    }
    50% {
        transform: translate3d(12px, -5px, 0) scale(1.03);
    }
    100% {
        transform: translate3d(-14px, 0, 0) scale(1.03);
    }
}

@keyframes chhathSunlightShimmer {
    0% {
        opacity: 0.40;
        transform: translate3d(-12px, 0, 0);
    }
    50% {
        opacity: 0.80;
        transform: translate3d(12px, -4px, 0);
    }
    100% {
        opacity: 0.40;
        transform: translate3d(-12px, 0, 0);
    }
}

/* Atmospheric vignette & shadow overlay to make text & tools 100% legible */
.chhath-water-shadow-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.52) 32%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.82) 100%),
        radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.1) 75%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* 2.2 SACRED FLOATING RIVER DIYAS (जल में तैरते पावन दीप) */
.chhath-floating-diyas {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 140px !important;
    z-index: 1 !important; /* Floating softly on the river water */
    pointer-events: none !important;
    user-select: none !important;
    overflow: hidden !important;
}

.chhath-river-diya {
    position: absolute !important;
    display: inline-block !important;
    filter: drop-shadow(0 0 10px #f59e0b) drop-shadow(0 0 22px rgba(251, 146, 60, 0.8)) !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
}

.diya-1 {
    bottom: 25px !important;
    left: 28% !important;
    font-size: 1.55rem !important;
    animation: chhathDiyaDrift1 26s linear infinite !important;
}

.diya-2 {
    bottom: 55px !important;
    left: 55% !important;
    font-size: 1.35rem !important;
    animation: chhathDiyaDrift2 32s linear infinite !important;
}

.diya-3 {
    bottom: 35px !important;
    left: 78% !important;
    font-size: 1.45rem !important;
    animation: chhathDiyaDrift3 28s linear infinite !important;
}

@keyframes chhathDiyaDrift1 {
    0% { transform: translate3d(60px, 0, 0); }
    50% { transform: translate3d(-30px, -6px, 0); }
    100% { transform: translate3d(-120px, 0, 0); }
}

@keyframes chhathDiyaDrift2 {
    0% { transform: translate3d(80px, 0, 0); }
    50% { transform: translate3d(-20px, -5px, 0); }
    100% { transform: translate3d(-140px, 0, 0); }
}

@keyframes chhathDiyaDrift3 {
    0% { transform: translate3d(70px, 0, 0); }
    50% { transform: translate3d(-25px, -6px, 0); }
    100% { transform: translate3d(-130px, 0, 0); }
}

/* 2.3 SACRED SUGARCANE STALKS (पवित्र गन्ने का मंडप - GHAT RIGHT SIDE) */
.chhath-sugarcane-wrap {
    position: fixed !important;
    z-index: 9979 !important; /* Rising out of the water framing the ghat */
    pointer-events: none !important;
    user-select: none !important;
    transform-origin: bottom center !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
    contain: paint layout !important;
}

.chhath-sugarcane-right {
    bottom: -10px !important;
    right: 15px !important; /* Framing the right side of the ghat */
    animation: chhathGannaSwayRight 8.2s ease-in-out infinite alternate !important;
}

.chhath-sugarcane-img {
    height: 390px !important;
    width: auto !important;
    max-width: 440px !important;
    display: block !important;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.85)) !important;
    transform: translateZ(0) !important;
}

@keyframes chhathGannaSwayRight {
    0% {
        transform: rotate(0deg) translateZ(0);
    }
    100% {
        transform: rotate(-2.2deg) translateZ(0);
    }
}

body:has(.fc-preference-consent) .chhath-vrati-corner,
body:has([class*="fc-preference"]) .chhath-vrati-corner {
    bottom: 35px !important;
}

@media (max-width: 1024px) {
    .chhath-vrati-img {
        height: 380px !important;
    }
    .chhath-sugarcane-img {
        height: 310px !important;
        max-width: 350px !important;
    }
}

@media (max-width: 768px) {
    .chhath-vrati-corner {
        bottom: -10px !important;
        left: -12px !important;
    }
    .chhath-vrati-img {
        height: 320px !important;
    }
    .chhath-sugarcane-right {
        right: 12px !important;
    }
    .chhath-sugarcane-img {
        height: 250px !important;
        max-width: 280px !important;
    }
}

@media (max-width: 480px) {
    .chhath-vrati-corner {
        bottom: -10px !important;
        left: -16px !important;
    }
    .chhath-vrati-img {
        height: 260px !important;
    }
    .chhath-sugarcane-right {
        right: 6px !important;
    }
    .chhath-sugarcane-img {
        height: 190px !important;
        max-width: 210px !important;
    }
}

/* ==========================================================================
   3. SACRED SURYA DEV (HOVERING ABOVE TOKRI & BELOW LEAVES - EARLY DAWN GLOW)
   ========================================================================== */
.chhath-sun-above-tokri {
    position: absolute !important;
    top: -235px !important; /* Perfect height above the tokri & below the leaves canopy */
    left: calc(50% + 115px) !important; /* Shifted right into open sky towards arghya */
    transform: translateX(-50%) !important;
    z-index: 1 !important; /* Behind the front lip of tokri so she holds it naturally */
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
}

.chhath-sun-tokri-img,
.chhath-sun-img {
    width: 135px !important;
    height: 135px !important;
    display: block !important;
    border-radius: 50% !important;
    opacity: 0.90 !important;
    /* Early morning dawn sunrise: warm crimson-amber (उषा काल की सिंदूरी लालिमा), gentle, non-glaring */
    filter: brightness(0.85) contrast(1.08) saturate(1.28) hue-rotate(-8deg) drop-shadow(0 0 16px rgba(249, 115, 22, 0.65)) drop-shadow(0 0 35px rgba(234, 88, 12, 0.40)) !important;
    transform: translateZ(0) !important;
    will-change: transform, opacity !important;
    animation: chhathEarlyDawnGlow 5s ease-in-out infinite alternate !important;
}

@keyframes chhathEarlyDawnGlow {
    0% {
        transform: scale(1) translateZ(0);
        opacity: 0.88;
        filter: brightness(0.84) contrast(1.06) saturate(1.25) hue-rotate(-8deg) drop-shadow(0 0 14px rgba(249, 115, 22, 0.60)) drop-shadow(0 0 28px rgba(234, 88, 12, 0.35));
    }
    100% {
        transform: scale(1.03) translateZ(0);
        opacity: 0.93;
        filter: brightness(0.88) contrast(1.10) saturate(1.30) hue-rotate(-6deg) drop-shadow(0 0 20px rgba(249, 115, 22, 0.75)) drop-shadow(0 0 40px rgba(234, 88, 12, 0.45));
    }
}

@media (max-width: 1024px) {
    .chhath-sun-above-tokri {
        top: -195px !important;
        left: calc(50% + 90px) !important;
    }
    .chhath-sun-tokri-img,
    .chhath-sun-img {
        width: 110px !important;
        height: 110px !important;
    }
}

@media (max-width: 768px) {
    .chhath-sun-above-tokri {
        top: -160px !important;
        left: calc(50% + 70px) !important;
    }
    .chhath-sun-tokri-img,
    .chhath-sun-img {
        width: 90px !important;
        height: 90px !important;
    }
}

@media (max-width: 480px) {
    .chhath-sun-above-tokri {
        top: -130px !important;
        left: calc(50% + 50px) !important;
    }
    .chhath-sun-tokri-img,
    .chhath-sun-img {
        width: 75px !important;
        height: 75px !important;
    }
}

/* 4. FESTIVE SWAYING GREEN LEAVES CANOPY (TOP-LEFT & TOP-RIGHT) */
.chhath-leaves-corner {
    position: fixed !important;
    top: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    user-select: none !important;
    will-change: transform !important;
    contain: paint layout !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.chhath-leaves-left {
    left: 0 !important;
    transform-origin: top left !important;
    transform: translateZ(0) !important;
    animation: chhathLeafSwayLeft 6.5s ease-in-out infinite !important;
}

.chhath-leaves-right {
    right: 0 !important;
    transform-origin: top right !important;
    transform: translateZ(0) !important;
    animation: chhathLeafSwayRight 7.2s ease-in-out infinite !important;
}

.chhath-leaves-img {
    width: 250px !important;
    height: auto !important;
    display: block !important;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)) !important;
    transform: translateZ(0) !important;
}

@keyframes chhathLeafSwayLeft {
    0%, 100% {
        transform: rotate(0deg) translateZ(0);
    }
    50% {
        transform: rotate(2.4deg) translateZ(0);
    }
}

@keyframes chhathLeafSwayRight {
    0%, 100% {
        transform: rotate(0deg) translateZ(0);
    }
    50% {
        transform: rotate(-2.4deg) translateZ(0);
    }
}

@media (max-width: 1024px) {
    .chhath-leaves-img {
        width: 190px !important;
    }
}

@media (max-width: 768px) {
    .chhath-leaves-img {
        width: 140px !important;
    }
}

@media (max-width: 480px) {
    .chhath-leaves-img {
        width: 105px !important;
    }
}

/* 3. CANVAS FOR FLOATING GOLDEN EMBERS (स्वर्णिम कण) */
#chhathStudioCanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* 6. CONTENT WRAPPERS SIT SAFELY ON TOP (Z-INDEX: 2) */
header, .site-header, .main, .genz-hero-wrapper, .hero-section, .workspace-grid {
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
}

.ambient-orb, 
.mandala-container {
    display: none !important;
}

/* 7. OBSIDIAN GLASS CARDS */
body.dark-theme .dash-card,
body.dark-theme .tool-card,
body.dark-theme .tools-section,
body .dash-card,
body .tool-card,
body .tools-section {
    background: rgba(11, 15, 26, 0.82) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
    box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.85), 0 0 15px rgba(245, 158, 11, 0.08) !important;
    color: #f8fafc !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.dark-theme .dash-card:hover,
body .dash-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(245, 158, 11, 0.65) !important;
    box-shadow: 0 18px 45px -8px rgba(0, 0, 0, 0.95), 0 0 25px rgba(245, 158, 11, 0.25) !important;
}

body.dark-theme .dash-card-text h3,
body .dash-card-text h3 {
    color: #ffffff !important;
}

body.dark-theme .dash-card-text p,
body .dash-card-text p {
    color: #94a3b8 !important;
}

/* ==========================================================================
   🌅 8. CHHATH PUJA HERO HINDI CALLIGRAPHY WISHES (भव्य देवनागरी सुलेख) 🌅
   ========================================================================== */

.chhath-hero-announcement-pill {
    background: linear-gradient(135deg, rgba(35, 18, 0, 0.85), rgba(60, 24, 0, 0.72)) !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75), 0 0 16px rgba(245, 158, 11, 0.35) !important;
    color: #fef08a !important;
    font-weight: 600 !important;
}

.chhath-hero-badge {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.5) !important;
}

.chhath-hero-calligraphy-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 18px 0 16px 0 !important;
    padding: 0 15px !important;
    text-align: center !important;
    user-select: none !important;
    transform: translateZ(0) !important;
    position: relative !important;
}

.chhath-calligraphy-sub-top {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Yatra One', 'Rozha One', 'Noto Sans Devanagari', cursive, serif !important;
    font-size: 1.15rem !important;
    color: #fbbf24 !important;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.65), 0 2px 8px rgba(0, 0, 0, 0.9) !important;
    letter-spacing: 2px !important;
    margin-bottom: 4px !important;
}

.chhath-calligraphy-flourish {
    color: #f97316 !important;
    font-size: 1.35rem !important;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8)) !important;
}

.chhath-calligraphy-om {
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 60%, #f59e0b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.chhath-calligraphy-main {
    font-family: 'Yatra One', 'Rozha One', 'Noto Sans Devanagari', cursive, serif !important;
    font-size: 3.1rem !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    margin: 6px 0 10px 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fef08a 22%, #fbbf24 50%, #f59e0b 78%, #ea580c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 4px 22px rgba(245, 158, 11, 0.75)) drop-shadow(0 0 45px rgba(251, 146, 60, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95)) !important;
    letter-spacing: 1.5px !important;
    text-align: center !important;
    position: relative !important;
}

.chhath-calligraphy-sub-bottom {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, sans-serif !important;
    font-size: 0.96rem !important;
    font-weight: 600 !important;
    color: #fef08a !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 14px rgba(245, 158, 11, 0.5) !important;
    max-width: 680px !important;
    line-height: 1.55 !important;
    letter-spacing: 0.3px !important;
}

/* Responsive adjustments for Calligraphy */
@media (max-width: 1024px) {
    .chhath-calligraphy-main {
        font-size: 2.5rem !important;
    }
    .chhath-calligraphy-sub-top {
        font-size: 1.05rem !important;
    }
    .chhath-calligraphy-sub-bottom {
        font-size: 0.88rem !important;
    }
}

@media (max-width: 768px) {
    .chhath-calligraphy-main {
        font-size: 1.95rem !important;
        letter-spacing: 1px !important;
    }
    .chhath-calligraphy-sub-top {
        font-size: 0.95rem !important;
    }
    .chhath-calligraphy-sub-bottom {
        font-size: 0.82rem !important;
    }
}

@media (max-width: 480px) {
    .chhath-calligraphy-main {
        font-size: 1.55rem !important;
        letter-spacing: 0.5px !important;
    }
    .chhath-calligraphy-sub-top {
        font-size: 0.85rem !important;
    }
    .chhath-calligraphy-sub-bottom {
        font-size: 0.78rem !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   7. DASHBOARD CLOCK & TOP BAR HIGH-CONTRAST READABILITY FIX
   ══════════════════════════════════════════════════════════════════ */
/* Completely remove the irregular cut-off brush stroke that breaks dark mode */
.dash-clock-area::before,
body.dark-theme .dash-clock-area::before,
body.dark-mode .dash-clock-area::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Elegant high-contrast glassmorphic badge for the live clock */
.dash-clock-area,
body.dark-theme .dash-clock-area,
body.dark-mode .dash-clock-area {
    background: rgba(251, 191, 36, 0.08) !important;
    border: 1px solid rgba(251, 191, 36, 0.28) !important;
    border-radius: 14px !important;
    padding: 8px 18px 10px !important;
    box-shadow: inset 0 0 16px rgba(251, 191, 36, 0.05), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

#dash-time,
body #dash-time,
body.dark-theme #dash-time,
body.dark-mode #dash-time {
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.5px !important;
    font-variant-numeric: tabular-nums !important;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.4), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

#dash-date,
body #dash-date,
body.dark-theme #dash-date,
body.dark-mode #dash-date {
    color: #fbbf24 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.4px !important;
    text-transform: uppercase !important;
    margin-top: 4px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Active User pill high-contrast visibility */
body.dark-theme .user-live-pill,
body.dark-mode .user-live-pill {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .user-live-pill span,
body.dark-mode .user-live-pill span {
    color: #f8fafc !important;
}


