/* =========================================
   VEDIC PANDIT - MANAS PUJA STYLES (FINAL)
   ========================================= */

/* --- 1. Temple Atmosphere (Background Vignette) --- */
.bg-radial-gradient {
    background: radial-gradient(circle, transparent 40%, #000000 95%);
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* --- 2. Mantra Text Glow --- */
#mantra-text {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3), 0 0 20px rgba(255, 140, 0, 0.2);
    transition: opacity 0.5s ease-in-out;
}

/* --- 3. Deity Positioning System (Relative Units - vh) --- */
/* यह कंटेनर पूरी स्क्रीन को कवर करेगा और मूर्ति को नीचे सेट करेगा */
.deity-container-fix {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full Viewport Height */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align to bottom */
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
}

#deity-image {
    /* डिफ़ॉल्ट सेटिंग्स (JS इन्हें deityConfig के हिसाब से अपडेट करेगा) */
    height: 35vh;         /* स्क्रीन की 55% ऊंचाई */
    width: auto;          /* रेश्यो न बिगड़े */
    margin-bottom: 33vh;  /* नीचे से 12% ऊपर */
    
    /* मूर्ति की चमक और परछाई */
    filter: brightness(0.9) contrast(1.1) drop-shadow(0 20px 30px rgba(0,0,0,0.7));
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth animation */
    will-change: height, margin-bottom, filter;
    transform-origin: bottom center;
}

/* मूर्ति के नीचे की हल्की काली परछाई (Base Shadow) */
.shadow-base {
    position: absolute;
    bottom: 10vh;
    width: 40vw;
    height: 5vh;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 14;
}

/* --- 4. Divine Glow Engine (Aarti Mode) --- */

/* अंधेरा (Darkness Overlay) */
#darkness-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 25%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.95) 100%);
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#darkness-overlay.active {
    opacity: 1;
}

/* सुनहरी रोशनी (Golden Glow) */
#golden-glow {
    --x: 50%;
    --y: 50%;
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 350px at var(--x) var(--y), 
        rgba(255, 220, 100, 0.3) 0%, 
        rgba(255, 160, 50, 0.15) 40%, 
        transparent 70%
    );
    z-index: 21;
    pointer-events: none;
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#golden-glow.active {
    opacity: 1;
}

/* कर्सर वाला दिया (Cursor Diya) */
#cursor-diya {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.3s;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
    left: 0;
    top: 0;
    transform: translate(-50%, -50%); /* सेंटर करें */
}

/* दीये की लौ (Flame Animation) */
.cursor-flame {
    width: 25px; 
    height: 40px;
    background: radial-gradient(white 20%, gold 50%, orangered 90%);
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 20px gold, 0 0 40px orange;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    animation: flame-flicker 0.1s infinite alternate;
}

@keyframes flame-flicker {
    0% { transform: translateX(-50%) scale(1); opacity: 1; }
    100% { transform: translateX(-50%) scale(1.1) rotate(2deg); opacity: 0.9; }
}

/* --- 5. Animations --- */

/* घंटी बजना (Bell) */
@keyframes ring {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}
.bell-ringing {
    animation: ring 1.5s ease-in-out;
}

/* फूल बरसना (Falling Flowers) */
.falling-flower {
    position: absolute;
    top: -10vh;
    z-index: 25;
    pointer-events: none;
    will-change: transform;
}

@keyframes fall-and-rotate {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(110vh) translateX(var(--drift)) rotate(var(--rotation));
        opacity: 0;
    }
}

/* --- 6. Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* टेक्स्ट का साइज एडजस्टमेंट (पुराना कोड) */
    #mantra-text {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    /* मूर्ति की पोजीशन (पुराना कोड) */
    #deity-image {
        margin-bottom: 25vh !important; /* थोड़ा ऊपर ताकि फूलों के पीछे न छिपे */
    }

    /* --- FIX: MOBILE DIYA VISIBILITY --- */
    /* अब हम दिया को मोबाइल पर भी दिखाएंगे */
    #cursor-diya {
        display: block !important; 
        /* मोबाइल पर दिया थोड़ा छोटा रखेंगे ताकि पूरी स्क्रीन न ढके */
        transform: scale(0.8) translate(-50%, -50%);
    }
}