/* ======================================================================
   Regular Pooja Detail - Divine Jyothi (Sacred Flame) Theme
   ====================================================================== */
.pooja-detail-page {
    --pooja-maroon: #350811;
    --pooja-crimson: #68152A;
    --pooja-rose: #853148;

    --pooja-brass: #DFB261;
    --pooja-champagne: #FFE5A6;
    --pooja-flame: #F6BD50;

    --pooja-sandalwood: #F4E5D7;
    --pooja-ivory: #FFFDF9;

    --pooja-text: #410C1C;
    --pooja-border: #DEC6AF;

    --hx: 0;
    --hy: 0;

    position: relative;
    overflow-x: clip;
    padding: clamp(26px, 4.5vw, 48px) clamp(14px, 3vw, 24px) clamp(28px, 4vw, 40px);
    background:
        radial-gradient(ellipse at 85% 20%, rgba(223, 178, 97, 0.16), transparent 45%),
        radial-gradient(ellipse at 10% 85%, rgba(133, 49, 72, 0.06), transparent 45%),
        linear-gradient(145deg, #FFFDF9, #FFF9F2, #F0DFD4);
}

/* Faint Outer Background Mandala Accent */
.pooja-bg-mandala {
    position: absolute;
    top: -90px;
    right: -90px;
    width: clamp(280px, 36vw, 460px);
    aspect-ratio: 1;
    pointer-events: none;
    opacity: 0.055;
    z-index: 0;
}

.pooja-detail-panel {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    background: var(--pooja-ivory);
    border: 1px solid var(--pooja-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-depth);
    overflow: hidden;
    animation: poojaReveal 650ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* Maroon Event Header with Two-Column Jyothi Stage */
.pooja-detail-header {
    position: relative;
    overflow: hidden;
    color: var(--pooja-ivory);
    padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 42px);
    border-bottom: 1px solid rgba(223, 178, 97, 0.35);
    background:
        radial-gradient(
            ellipse at calc(80% + var(--hx) * 18px) calc(45% + var(--hy) * 14px),
            rgba(223, 178, 97, 0.26),
            transparent 55%
        ),
        linear-gradient(125deg, var(--pooja-maroon) 0%, var(--pooja-crimson) 60%, var(--pooja-rose) 100%);
}

.pooja-header-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}

@media (min-width: 768px) {
    .pooja-header-grid {
        grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
        gap: clamp(20px, 3.5vw, 36px);
    }
}

.pooja-header-info {
    min-width: 0;
    animation: poojaReveal 650ms cubic-bezier(0.22, 1, 0.36, 1) 180ms backwards;
}

.pooja-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(223, 178, 97, 0.18);
    border: 1px solid rgba(223, 178, 97, 0.48);
    color: var(--pooja-champagne);
    margin-bottom: 12px;
}

.pooja-detail-header h1 {
    margin: 0 0 10px;
    color: #FFF9F2;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    overflow-wrap: break-word;
}

.pooja-detail-location {
    margin: 0;
    color: rgba(255, 249, 242, 0.88);
    font-size: 1rem;
}

.pooja-detail-location i {
    color: var(--pooja-brass);
}

/* Accessible Icon-Only Animation Toggle */
.pooja-motion-toggle {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(223, 178, 97, 0.42);
    background: rgba(53, 8, 17, 0.58);
    color: var(--pooja-champagne);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.pooja-motion-toggle:hover,
.pooja-motion-toggle:focus-visible {
    background: rgba(104, 21, 42, 0.88);
    border-color: var(--pooja-champagne);
    outline: none;
    transform: scale(1.06);
}

.pooja-detail-page.is-paused *,
.pooja-detail-page.is-paused *::before,
.pooja-detail-page.is-paused *::after,
.pooja-detail-page.is-auto-paused *,
.pooja-detail-page.is-auto-paused *::before,
.pooja-detail-page.is-auto-paused *::after {
    animation-play-state: paused !important;
}

/* Decorative Jyothi Stage (Kuthuvilakku + Flames + Mandala + Smoke) */
.pooja-jyothi-stage {
    position: relative;
    width: 240px;
    height: 220px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: poojaReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 100ms backwards;
}

.pooja-lamp-aura {
    position: absolute;
    width: 260px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 220, 150, 0.35),
        rgba(223, 178, 97, 0.12),
        transparent 70%
    );
    will-change: opacity, transform;
    animation: divineAura 7s ease-in-out infinite;
    pointer-events: none;
}

.pooja-mandala {
    position: absolute;
    width: 220px;
    height: 220px;
    opacity: 0.34;
    will-change: transform;
    transform: translate3d(calc(var(--hx) * 4px), calc(var(--hy) * 4px), 0);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    animation: poojaMandalaEntrance 800ms cubic-bezier(0.22, 1, 0.36, 1) 160ms backwards,
               poojaMandalaRotate 120s linear infinite;
}

.pooja-lamp-assembly {
    position: relative;
    width: 162px;
    height: 206px;
    z-index: 3;
}

.pooja-lamp-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* CSS Animated Sacred Flames */
.pooja-flames-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.pooja-flame {
    position: absolute;
    width: 14px;
    height: 28px;
    border-radius: 70% 30% 65% 35%;
    background: radial-gradient(
        ellipse at 50% 78%,
        #FFFFFF 4%,
        #FFF8BE 28%,
        #F6BD50 57%,
        #D96D24 90%
    );
    transform-origin: bottom center;
    box-shadow:
        0 0 12px rgba(255, 196, 92, 0.85),
        0 0 28px rgba(246, 185, 69, 0.45);
    will-change: transform;
    animation: sacredFlame 2.2s ease-in-out infinite alternate;
}

.pooja-flame--left {
    left: 33px;
    top: 28px;
    width: 13px;
    height: 26px;
    animation-duration: 2.35s;
    animation-delay: -0.4s;
}

.pooja-flame--center {
    left: 74px;
    top: 10px;
    width: 15px;
    height: 31px;
    animation-duration: 2.05s;
    animation-delay: -0.9s;
}

.pooja-flame--right {
    right: 33px;
    top: 28px;
    width: 13px;
    height: 26px;
    animation-duration: 2.5s;
    animation-delay: -1.4s;
}

/* Subtle Rising Incense Smoke */
.pooja-smoke-group {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.pooja-smoke {
    position: absolute;
    left: 50%;
    top: 34px;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 245, 224, 0.34) 0%, transparent 72%);
    opacity: 0;
    will-change: transform, opacity;
    animation: incenseSmoke 9.5s ease-out infinite;
}

.pooja-smoke--2 {
    animation-duration: 11s;
    animation-delay: 3.2s;
}

.pooja-smoke--3 {
    animation-duration: 10.2s;
    animation-delay: 6.4s;
}

/* Soft Divine Light Particles */
.pooja-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    transform: translate3d(calc(var(--hx) * 6px), calc(var(--hy) * 6px), 0);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pooja-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pooja-champagne);
    box-shadow: 0 0 8px rgba(255, 229, 166, 0.85);
    opacity: 0;
    will-change: transform, opacity;
    animation: sparkFloat 7.5s ease-in-out infinite;
}

.pooja-spark--1 { left: 26%; bottom: 38%; animation-duration: 7.2s; animation-delay: 0s; }
.pooja-spark--2 { left: 72%; bottom: 42%; animation-duration: 8.6s; animation-delay: 1.5s; }
.pooja-spark--3 { left: 36%; bottom: 52%; animation-duration: 9.4s; animation-delay: 2.8s; width: 3px; height: 3px; }
.pooja-spark--4 { left: 64%; bottom: 56%; animation-duration: 6.8s; animation-delay: 3.9s; width: 3px; height: 3px; }
.pooja-spark--5 { left: 48%; bottom: 64%; animation-duration: 10.5s; animation-delay: 5.1s; }
.pooja-spark--6 { left: 80%; bottom: 30%; animation-duration: 8.2s; animation-delay: 6.2s; width: 3px; height: 3px; }

/* Pooja Detail Body & Pearl-Ivory Timing Cards */
.pooja-detail-body {
    padding: clamp(22px, 4vw, 36px) clamp(22px, 4vw, 40px);
    background: var(--pooja-ivory);
}

.pooja-detail-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.pooja-detail-top-grid:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .pooja-detail-top-grid.has-image {
        grid-template-columns: minmax(220px, 320px) 1fr;
    }
}

.pooja-detail-photo {
    width: 100%;
    border-radius: var(--radius-medium);
    border: 1px solid var(--pooja-border);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-soft);
}

.pooja-detail-heading {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pooja-border);
    color: var(--pooja-text);
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-weight: 700;
}

.pooja-timing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .pooja-timing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pooja-time-card {
    position: relative;
    background: linear-gradient(145deg, #FFF9F2, #F4E5D7);
    border: 1px solid var(--pooja-border);
    border-inline-start: 4px solid #801D32;
    border-radius: 18px;
    padding: clamp(18px, 3vw, 26px);
    color: var(--pooja-text);
    box-shadow: 0 8px 24px rgba(65, 12, 28, 0.06);
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
    animation: poojaReveal 650ms cubic-bezier(0.22, 1, 0.36, 1) 240ms backwards;
}

.pooja-time-card:nth-child(2) {
    animation-delay: 340ms;
}

@media (hover: hover) {
    .pooja-time-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(65, 12, 28, 0.11);
        border-color: var(--pooja-brass);
    }
}

.pooja-time-card .timing-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #801D32;
    margin-bottom: 6px;
}

.pooja-time-card .timing-date {
    font-size: clamp(1.12rem, 1.7vw, 1.28rem);
    font-weight: 700;
    color: var(--pooja-text);
    line-height: 1.35;
}

.pooja-time-card .timing-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #801D32;
    margin-top: 5px;
}

/* Keyframes */
@keyframes sacredFlame {
    0% { transform: rotate(-5deg) scale(0.96, 1); }
    50% { transform: rotate(3deg) scale(1.04, 0.94); }
    100% { transform: rotate(-2deg) scale(0.94, 1.08); }
}

@keyframes divineAura {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 0.85; transform: scale(1.10); }
}

@keyframes poojaMandalaRotate {
    from { transform: translate3d(calc(var(--hx) * 4px), calc(var(--hy) * 4px), 0) rotate(0deg); }
    to { transform: translate3d(calc(var(--hx) * 4px), calc(var(--hy) * 4px), 0) rotate(360deg); }
}

@keyframes poojaMandalaEntrance {
    from { opacity: 0; }
    to { opacity: 0.34; }
}

@keyframes incenseSmoke {
    0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.5); }
    25% { opacity: 0.35; }
    100% { opacity: 0; transform: translate3d(15px, -90px, 0) scale(1.6); }
}

@keyframes sparkFloat {
    0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); }
    30% { opacity: 0.78; }
    100% { opacity: 0; transform: translate3d(6px, -48px, 0) scale(1.1); }
}

@keyframes poojaReveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tablet adjustments (clear of floating left language button) */
@media (min-width: 768px) and (max-width: 1180px) {
    .pooja-detail-page {
        padding-inline: clamp(46px, 6vw, 68px);
    }

    .pooja-jyothi-stage {
        width: 206px;
        height: 196px;
    }

    .pooja-mandala {
        width: 190px;
        height: 190px;
    }
}

/* Mobile layout */
@media (max-width: 767px) {
    .pooja-detail-page {
        padding: 20px 14px 48px;
    }

    .pooja-detail-header {
        text-align: center;
        padding: 22px 18px 24px;
    }

    .pooja-jyothi-stage {
        order: -1;
        width: 190px;
        height: 180px;
    }

    .pooja-mandala {
        width: 172px;
        height: 172px;
    }

    .pooja-lamp-assembly {
        width: 136px;
        height: 172px;
    }

    .pooja-flame--left { left: 26px; top: 22px; width: 11px; height: 22px; }
    .pooja-flame--center { left: 62px; top: 8px; width: 13px; height: 26px; }
    .pooja-flame--right { right: 26px; top: 22px; width: 11px; height: 22px; }

    .pooja-spark--4,
    .pooja-spark--5,
    .pooja-spark--6 {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pooja-detail-page *,
    .pooja-detail-page *::before,
    .pooja-detail-page *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ======================================================================
   Pournami Girivalam Detail - Divine Cosmic Universe (CSS 3D)
   ====================================================================== */
.pournami-cosmic-page {
    --space-black: #080916;
    --cosmic-night: #160B1D;
    --midnight-plum: #25122E;
    --cosmic-maroon: #300B1C;
    --celestial-crimson: #87394F;
    --nebula-rose: #AC647F;
    --nebula-violet: #654A85;

    --earth-blue: #2678B8;
    --earth-atmosphere: #81D6EB;

    --moonlight-white: #FFFDF1;
    --lunar-champagne: #F1DEBA;
    --champagne-brass: #C8AB80;

    --pearl-ivory: #FFF9F2;
    --sandalwood: #F0DFD4;
    --text-maroon: #410C1C;

    --px: 0;
    --py: 0;
    --orbit-radius: clamp(128px, 13.5vw, 185px);

    position: relative;
    overflow-x: clip;
    overflow-y: hidden;
    padding: clamp(32px, 5vw, 60px) clamp(14px, 3vw, 28px) clamp(40px, 6vw, 72px);
    color: var(--pearl-ivory);
    background: var(--space-black);
}

/* Decorative Cosmic Scene */
.cosmic-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.deep-space {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 78% 18%, rgba(135, 57, 79, 0.36), transparent 48%),
        radial-gradient(ellipse at 18% 82%, rgba(101, 74, 133, 0.28), transparent 52%),
        radial-gradient(circle at 50% 45%, rgba(37, 18, 46, 0.85) 0%, rgba(22, 11, 29, 0.94) 55%, var(--space-black) 100%);
}

/* Animated Nebula Clouds */
.nebula-layer {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 10px), 0);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nebula-one {
    background:
        radial-gradient(ellipse 52% 40% at 24% 30%, rgba(172, 100, 127, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 46% 36% at 76% 68%, rgba(135, 57, 79, 0.24) 0%, transparent 68%),
        radial-gradient(ellipse 38% 30% at 54% 20%, rgba(200, 171, 128, 0.10) 0%, transparent 65%);
    animation: nebulaDrift 38s ease-in-out infinite alternate;
}

.nebula-two {
    background:
        radial-gradient(ellipse 48% 38% at 68% 26%, rgba(101, 74, 133, 0.22) 0%, transparent 72%),
        radial-gradient(ellipse 44% 34% at 32% 76%, rgba(48, 11, 28, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse 34% 28% at 82% 80%, rgba(241, 222, 186, 0.08) 0%, transparent 66%);
    animation: nebulaDrift 52s ease-in-out -14s infinite alternate-reverse;
}

/* Rotating Spiral Galaxies */
.spiral-galaxy {
    position: absolute;
    pointer-events: none;
    perspective: 700px;
    will-change: transform;
    animation: cosmicFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 180ms backwards;
}

.galaxy-one {
    top: 6%;
    right: 10%;
    width: clamp(220px, 26vw, 380px);
    aspect-ratio: 1;
    opacity: 0.72;
    transform:
        translate3d(calc(var(--px) * 5px), calc(var(--py) * 5px), 0)
        rotateX(62deg)
        rotateZ(-22deg);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.galaxy-two {
    bottom: 6%;
    left: 4%;
    width: clamp(140px, 16vw, 230px);
    aspect-ratio: 1;
    opacity: 0.38;
    transform:
        translate3d(calc(var(--px) * 5px), calc(var(--py) * 5px), 0)
        rotateX(66deg)
        rotateZ(28deg);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spiral-galaxy-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    will-change: transform;
    background:
        conic-gradient(
            from 15deg,
            transparent 0deg 38deg,
            rgba(172, 100, 127, 0.34) 68deg,
            rgba(241, 222, 186, 0.22) 92deg,
            transparent 138deg 218deg,
            rgba(101, 74, 133, 0.34) 248deg,
            rgba(172, 100, 127, 0.24) 274deg,
            transparent 318deg 360deg
        ),
        radial-gradient(circle, rgba(241, 222, 186, 0.35) 0%, rgba(135, 57, 79, 0.22) 34%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, #000 18%, rgba(0, 0, 0, 0.65) 48%, transparent 72%);
    mask-image: radial-gradient(circle, #000 18%, rgba(0, 0, 0, 0.65) 48%, transparent 72%);
    animation: galaxyRotation 120s linear infinite;
}

.spiral-galaxy-inner::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: conic-gradient(
        from 105deg,
        transparent 0deg 45deg,
        rgba(241, 222, 186, 0.22) 82deg,
        rgba(101, 74, 133, 0.26) 110deg,
        transparent 158deg 225deg,
        rgba(172, 100, 127, 0.26) 262deg,
        rgba(241, 222, 186, 0.18) 290deg,
        transparent 338deg 360deg
    );
    filter: blur(5px);
}

.spiral-galaxy-inner::after {
    content: "";
    position: absolute;
    inset: 34%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 253, 241, 0.85) 0%,
        rgba(241, 222, 186, 0.45) 36%,
        rgba(172, 100, 127, 0.18) 68%,
        transparent 100%
    );
    filter: blur(3px);
}

/* Multilayer Starfield */
.star-layer {
    position: absolute;
    inset: -24px;
    pointer-events: none;
    will-change: opacity, transform;
    background-repeat: repeat;
}

.stars-distant {
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255, 253, 241, 0.72) 50%, transparent 100%),
        radial-gradient(1px 1px at 26% 68%, rgba(241, 222, 186, 0.65) 50%, transparent 100%),
        radial-gradient(1px 1px at 43% 24%, rgba(255, 253, 241, 0.68) 50%, transparent 100%),
        radial-gradient(1px 1px at 61% 54%, rgba(241, 222, 186, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 79% 16%, rgba(255, 253, 241, 0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 82%, rgba(241, 222, 186, 0.62) 50%, transparent 100%);
    background-size: 300px 240px;
    animation: starTwinkle 8s ease-in-out infinite;
}

.stars-medium {
    background-image:
        radial-gradient(1.5px 1.5px at 16% 42%, rgba(255, 253, 241, 0.88) 45%, transparent 100%),
        radial-gradient(1.5px 1.5px at 49% 84%, rgba(241, 222, 186, 0.82) 45%, transparent 100%),
        radial-gradient(1.7px 1.7px at 73% 32%, rgba(255, 253, 241, 0.9) 40%, transparent 100%),
        radial-gradient(1.4px 1.4px at 87% 60%, rgba(200, 171, 128, 0.8) 45%, transparent 100%);
    background-size: 400px 320px;
    transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 6px), 0);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    animation: starTwinkle 6.5s ease-in-out 2.1s infinite;
}

.stars-near {
    background-image:
        radial-gradient(2.2px 2.2px at 22% 18%, rgba(241, 222, 186, 0.95) 35%, rgba(241, 222, 186, 0.14) 72%, transparent 100%),
        radial-gradient(2px 2px at 66% 74%, rgba(255, 253, 241, 0.92) 35%, rgba(241, 222, 186, 0.12) 72%, transparent 100%),
        radial-gradient(2px 2px at 12% 86%, rgba(129, 214, 235, 0.72) 35%, transparent 72%);
    background-size: 520px 420px;
    transform: translate3d(calc(var(--px) * 15px), calc(var(--py) * 15px), 0);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
    animation: starTwinkle 5s ease-in-out 3.8s infinite;
}

/* Subtle Shooting Star (every ~20s) */
.shooting-star {
    position: absolute;
    top: 14%;
    left: -140px;
    width: 130px;
    height: 1.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, rgba(241, 222, 186, 0.45) 60%, rgba(255, 253, 241, 0.95) 100%);
    opacity: 0;
    will-change: transform, opacity;
    animation: shootingStar 20s ease-out 4s infinite;
}

.shooting-star::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--moonlight-white);
    box-shadow: 0 0 8px rgba(241, 222, 186, 0.85);
}

/* Layout Shell: Two-Column Desktop, Planet-Top Mobile */
.pournami-layout-shell {
    position: relative;
    z-index: 10;
    width: min(94%, 1180px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
}

@media (min-width: 992px) {
    .pournami-layout-shell {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    }
}

/* Translucent Celestial-Crimson Glass Panel */
.pournami-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: clamp(24px, 4vw, 44px);

    /* Solid / high-opacity fallback when backdrop-filter is unsupported */
    background: linear-gradient(
        145deg,
        rgba(135, 57, 79, 0.92),
        rgba(65, 12, 28, 0.96)
    );
    border: 1px solid rgba(200, 171, 128, 0.45);
    border-radius: 28px;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    animation: pournamiReveal 750ms cubic-bezier(0.22, 1, 0.36, 1) 180ms backwards;
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .pournami-content {
        background: linear-gradient(
            145deg,
            rgba(135, 57, 79, 0.72),
            rgba(65, 12, 28, 0.86)
        );
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.pournami-hero-header {
    padding-bottom: 22px;
    margin-bottom: 22px;
    position: relative;
}

.pournami-hero-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(200, 171, 128, 0.5) 0%,
        rgba(241, 222, 186, 0.22) 60%,
        transparent 100%
    );
}

.pournami-cosmic-page .pooja-status-badge {
    background: rgba(200, 171, 128, 0.18);
    border: 1px solid rgba(200, 171, 128, 0.48);
    color: var(--lunar-champagne);
    letter-spacing: 0.02em;
}

.pournami-content h1 {
    margin: 0 0 8px;
    color: var(--pearl-ivory);
    font-size: clamp(1.65rem, 2.8vw, 2.4rem);
    overflow-wrap: break-word;
}

.pournami-content .pooja-detail-location {
    color: var(--lunar-champagne);
    font-size: 1rem;
}

.pournami-content .pooja-detail-location i {
    color: var(--champagne-brass);
}

.pournami-detail-heading {
    margin: 0 0 18px;
    color: var(--lunar-champagne);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 700;
}

.pournami-timing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.pournami-timing-grid:last-child {
    margin-bottom: 0;
}

@media (min-width: 576px) {
    .pournami-timing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Pearl-Ivory Timing Cards */
.pournami-date-card {
    background: linear-gradient(145deg, var(--pearl-ivory), var(--sandalwood));
    color: var(--text-maroon);
    border: 1px solid var(--champagne-brass);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
    animation: pournamiReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) 280ms backwards;
}

.pournami-date-card:nth-child(2) {
    animation-delay: 380ms;
}

@media (hover: hover) {
    .pournami-date-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.8);
        border-color: var(--lunar-champagne);
    }
}

.pournami-date-card .timing-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--divine-crimson);
    margin-bottom: 8px;
}

.pournami-date-card .timing-date {
    color: var(--text-maroon);
    font-size: clamp(1.15rem, 1.7vw, 1.32rem);
    font-weight: 700;
    line-height: 1.35;
}

.pournami-date-card .timing-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--divine-crimson);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 6px;
}

.pournami-content .post-content {
    color: rgba(255, 249, 242, 0.92);
}

/* ======================================================================
   3D Earth & Orbiting Moon Stage (Right Column on Desktop, Top on Mobile)
   ====================================================================== */
.pournami-planet-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(230px, 34vw, 390px);
    pointer-events: none;
    animation: pournamiReveal 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms backwards;
}

.earth-moon-system {
    position: relative;
    width: 100%;
    height: clamp(230px, 34vw, 390px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
    transform-style: preserve-3d;
    transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 8px), 0);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Earth centered at Z = 0 */
.earth-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transform: translate3d(0, 0, 0);
}

.earth {
    position: relative;
    width: clamp(148px, 16vw, 236px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(
        circle at 30% 25%,
        #81D6EB 0%,
        #2678B8 40%,
        #164579 70%,
        #071224 100%
    );
    box-shadow:
        0 0 10px rgba(129, 214, 235, 0.65),
        0 0 38px rgba(72, 159, 232, 0.35),
        0 0 80px rgba(45, 100, 200, 0.16);
}

/* Seamless SVG Continents (400px loop) */
.earth-surface {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath d='M36,44c18-12,48-8,58,8c8,12,2,28-10,36c-12,8-8,28,6,34c10,4,14,22,2,32c-14,12-34,4-42-12c-8-16-24-22-26-44C22,74,22,54,36,44z' fill='%233d8259' opacity='0.88'/%3E%3Cpath d='M56,58c10-4,24,4,22,16c-2,10-18,14-24,6C48,72,48,62,56,58z' fill='%238c7a52' opacity='0.65'/%3E%3Cpath d='M148,32c26-10,58-2,74,16c12,14,32,12,44,24c14,14,6,38-12,42c-16,4-24-10-38-4c-14,6-10,28-24,36c-16,8-34-6-38-24c-4-16-20-26-22-46C128,54,132,38,148,32z' fill='%234b9164' opacity='0.88'/%3E%3Cpath d='M182,52c16-4,34,6,30,22c-4,14-26,16-36,4C168,68,170,56,182,52z' fill='%239c885c' opacity='0.68'/%3E%3Cpath d='M286,74c22-12,54-6,66,14c10,16-4,38-22,42c-16,4-26-8-40-2c-12,4-18-16-14-30C278,88,278,78,286,74z' fill='%233d8259' opacity='0.85'/%3E%3Cpath d='M316,138c14-6,32,2,34,16c2,12-14,22-28,16C308,164,304,144,316,138z' fill='%238c7a52' opacity='0.72'/%3E%3C/svg%3E");
    background-size: 400px 100%;
    background-repeat: repeat-x;
    mix-blend-mode: screen;
    opacity: 0.78;
    will-change: background-position;
    animation: earthRotation 42s linear infinite;
}

/* Semi-transparent Cloud Layer */
.earth-clouds {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cellipse cx='65' cy='46' rx='38' ry='10' fill='%23ffffff' opacity='0.34'/%3E%3Cellipse cx='120' cy='82' rx='52' ry='12' fill='%23ffffff' opacity='0.26'/%3E%3Cellipse cx='210' cy='38' rx='46' ry='9' fill='%23ffffff' opacity='0.32'/%3E%3Cellipse cx='265' cy='112' rx='58' ry='13' fill='%23ffffff' opacity='0.28'/%3E%3Cellipse cx='345' cy='62' rx='36' ry='10' fill='%23ffffff' opacity='0.3'/%3E%3Cellipse cx='160' cy='148' rx='48' ry='11' fill='%23ffffff' opacity='0.24'/%3E%3C/svg%3E");
    background-size: 400px 100%;
    background-repeat: repeat-x;
    will-change: background-position;
    animation: earthRotation 58s linear infinite;
}

/* Stable Day/Night Spherical Shadow */
.earth-shadow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 28% 26%,
        rgba(255, 255, 255, 0.14) 0%,
        transparent 42%,
        rgba(7, 16, 36, 0.56) 72%,
        rgba(4, 8, 20, 0.92) 96%
    );
}

/* Soft Blue Atmospheric Rim */
.earth-atmosphere {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow:
        inset 3px 3px 14px rgba(129, 214, 235, 0.55),
        inset -6px -6px 18px rgba(38, 120, 184, 0.32);
}

/* Tilted 3D Orbital Plane */
.orbit-plane {
    position: absolute;
    width: calc(var(--orbit-radius) * 2);
    height: calc(var(--orbit-radius) * 2);
    transform-style: preserve-3d;
    transform: rotateX(72deg) rotateY(-14deg);
}

.orbit-path {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(241, 222, 186, 0.18);
    box-shadow: 0 0 18px rgba(200, 171, 128, 0.08);
}

.moon-orbit {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
    animation: lunarOrbit 34s linear infinite;
}

.moon-arm {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: translateX(var(--orbit-radius));
}

.moon-billboard {
    position: relative;
    width: clamp(38px, 3.8vw, 54px);
    aspect-ratio: 1;
    margin-left: calc(clamp(38px, 3.8vw, 54px) / -2);
    margin-top: calc(clamp(38px, 3.8vw, 54px) / -2);
    transform-style: preserve-3d;
    will-change: transform;
    animation: lunarBillboarding 34s linear infinite;
}

.moon {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 26%,
        var(--moonlight-white) 0%,
        var(--lunar-champagne) 58%,
        #B99E76 100%
    );
    box-shadow:
        inset -6px -7px 14px rgba(84, 62, 42, 0.42),
        inset 2px 2px 8px rgba(255, 253, 241, 0.72),
        0 0 18px rgba(241, 222, 186, 0.52);
}

.moon-surface {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 34%, rgba(154, 128, 92, 0.28) 0%, transparent 24%),
        radial-gradient(circle at 66% 46%, rgba(142, 118, 84, 0.24) 0%, transparent 28%),
        radial-gradient(circle at 46% 70%, rgba(138, 114, 80, 0.22) 0%, transparent 22%),
        radial-gradient(circle at 26% 62%, rgba(162, 136, 100, 0.18) 0%, transparent 16%);
}

.moon-aura {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    z-index: -1;
    will-change: transform, opacity;
    background: radial-gradient(
        circle,
        rgba(241, 222, 186, 0.55) 26%,
        rgba(200, 171, 128, 0.24) 56%,
        transparent 76%
    );
    animation: moonAura 7s ease-in-out infinite;
}

/* Accessible Icon-Only Animation Pause/Play Control */
.cosmic-motion-toggle {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(200, 171, 128, 0.42);
    background: rgba(37, 18, 46, 0.65);
    color: var(--lunar-champagne);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.cosmic-motion-toggle:hover,
.cosmic-motion-toggle:focus-visible {
    background: rgba(135, 57, 79, 0.78);
    border-color: var(--lunar-champagne);
    outline: none;
    transform: scale(1.05);
}

.pournami-cosmic-page.is-paused *,
.pournami-cosmic-page.is-paused *::before,
.pournami-cosmic-page.is-paused *::after,
.pournami-cosmic-page.is-auto-paused *,
.pournami-cosmic-page.is-auto-paused *::before,
.pournami-cosmic-page.is-auto-paused *::after {
    animation-play-state: paused !important;
}

/* Keyframes */
@keyframes galaxyRotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes nebulaDrift {
    0% {
        transform: translate3d(calc(var(--px) * 10px - 4%), calc(var(--py) * 10px - 3%), 0) rotate(-4deg) scale(1);
    }
    100% {
        transform: translate3d(calc(var(--px) * 10px + 4%), calc(var(--py) * 10px + 3%), 0) rotate(4deg) scale(1.08);
    }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.22; }
    50% { opacity: 0.9; }
}

@keyframes shootingStar {
    0%, 82% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(24deg);
    }
    85% {
        opacity: 0.9;
    }
    94% {
        opacity: 0;
        transform: translate3d(115vw, 48vh, 0) rotate(24deg);
    }
    100% {
        opacity: 0;
        transform: translate3d(115vw, 48vh, 0) rotate(24deg);
    }
}

@keyframes earthRotation {
    from { background-position: 0 0; }
    to { background-position: -400px 0; }
}

@keyframes lunarOrbit {
    from { transform: rotateZ(0deg); }
    to { transform: rotateZ(360deg); }
}

@keyframes lunarBillboarding {
    from { transform: rotateZ(0deg) rotateY(14deg) rotateX(-72deg); }
    to { transform: rotateZ(-360deg) rotateY(14deg) rotateX(-72deg); }
}

@keyframes moonAura {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.18); }
}

@keyframes pournamiReveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cosmicFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tablet adjustments (clear of floating language button) */
@media (min-width: 768px) and (max-width: 1240px) {
    .pournami-cosmic-page {
        padding-inline: clamp(48px, 6vw, 72px);
    }
}

/* Mobile Responsive Layout */
@media (max-width: 991px) {
    .pournami-cosmic-page {
        --orbit-radius: 102px;
        padding: 24px 14px 56px;
    }

    .pournami-planet-stage {
        order: -1;
        min-height: 205px;
    }

    .earth-moon-system {
        height: 205px;
    }

    .earth {
        width: 128px;
    }

    .moon-billboard {
        width: 32px;
        margin-left: -16px;
        margin-top: -16px;
    }

    .stars-near {
        display: none;
    }

    .galaxy-two {
        display: none;
    }

    .nebula-layer {
        animation-duration: 56s;
    }

    .pournami-content {
        border-radius: 22px;
        padding: 24px 18px;
    }

    .pournami-date-card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pournami-cosmic-page *,
    .pournami-cosmic-page *::before,
    .pournami-cosmic-page *::after {
        animation: none !important;
        transition: none !important;
    }

    .moon-orbit {
        transform: rotateZ(35deg);
    }

    .moon-billboard {
        transform: rotateZ(-35deg) rotateY(14deg) rotateX(-72deg);
    }
}

/* Gallery Styling inside Pooja Detail */
.post-content {
    line-height: 1.85;
    font-size: 1.04rem;
}

.post-content .gallery-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin: 28px 0 !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    .post-content .gallery-grid-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 992px) {
    .post-content .gallery-grid-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.post-content .gallery-grid-item {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    padding-bottom: 100% !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    border: 1.5px solid var(--border-light) !important;
    background: var(--sandalwood) !important;
}

.post-content .gallery-grid-item img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.post-content img.standalone-image { display: none !important; }
.glightbox-container .goverlay { background: rgba(20, 4, 9, 0.96) !important; }
.glightbox-container .gslide-image img { object-fit: contain !important; }
.glightbox-desc, .glightbox-title { display: none !important; }
