/* ============================================
   BHAGAVAD GITA PAGE STYLES
   Sacred Temple Aesthetic
   ============================================ */

:root {
    --saffron: #FF6F00;
    --saffron-light: #FFA040;
    --gold: #D4A017;
    --gold-light: #F0D060;
    --gold-dark: #B8860B;
    --temple-maroon: #6D1B2A;
    --temple-cream: #FFF8E7;
    --temple-ivory: #FEFCF3;
    --deep-brown: #3E2723;
    --dark-bg: #1A0A00;
    --lotus-pink: #E91E63;
    --sacred-green: #2E7D32;
    --shadow-gold: rgba(212, 160, 23, 0.3);
    --shadow-saffron: rgba(255, 111, 0, 0.3);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #0D0500 0%, #1A0A00 30%, #2C1810 60%, #1A0A00 100%);
    color: var(--temple-cream);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   AMBIENT EFFECTS
   ============================================ */
.gita-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.g-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--gold-light), transparent);
    border-radius: 50%;
    animation: gita-float linear infinite;
    opacity: 0;
}

@keyframes gita-float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.7; transform: translateY(80vh) scale(1); }
    80% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

.ambient-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    animation: glow-breathe 6s ease-in-out infinite;
}

.glow-left {
    top: 30%;
    left: -100px;
    background: rgba(255, 111, 0, 0.08);
}

.glow-right {
    bottom: 20%;
    right: -100px;
    background: rgba(212, 160, 23, 0.06);
    animation-delay: 3s;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.gita-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(180deg, rgba(13, 5, 0, 0.95), rgba(13, 5, 0, 0.7), transparent);
    padding: 15px 0;
}

.gita-nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gita-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.gita-back-link:hover {
    color: var(--gold);
    transform: translateX(-5px);
}

.back-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.gita-back-link:hover .back-arrow {
    transform: translateX(-3px);
}

.gita-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 3px;
}

.nav-om {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 18px;
    animation: om-pulse-small 2s ease-in-out infinite;
}

@keyframes om-pulse-small {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.gita-hero {
    padding: 120px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gita-mandala {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
}

.mandala-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(212, 160, 23, 0.08);
    transform: translate(-50%, -50%);
}

.c1 { width: 200px; height: 200px; animation: m-rotate 30s linear infinite; border-style: dashed; }
.c2 { width: 300px; height: 300px; animation: m-rotate 40s linear infinite reverse; }
.c3 { width: 420px; height: 420px; animation: m-rotate 50s linear infinite; border-style: dotted; }
.c4 { width: 560px; height: 560px; animation: m-rotate 60s linear infinite reverse; }

@keyframes m-rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.gita-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.sacred-om {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 70px;
    color: var(--gold);
    text-shadow: 0 0 40px var(--shadow-gold), 0 0 80px rgba(212, 160, 23, 0.15);
    margin-bottom: 20px;
    animation: sacred-glow 4s ease-in-out infinite;
}

@keyframes sacred-glow {
    0%, 100% { text-shadow: 0 0 40px var(--shadow-gold), 0 0 80px rgba(212, 160, 23, 0.15); }
    50% { text-shadow: 0 0 60px var(--gold), 0 0 120px var(--shadow-gold); }
}

.gita-title {
    margin-bottom: 20px;
}

.gita-title-sanskrit {
    display: block;
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(20px, 4vw, 32px);
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--shadow-gold);
}

.gita-title-english {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: clamp(14px, 2vw, 18px);
    color: var(--gold-light);
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 0.7;
}

.gita-intro {
    font-size: 14px;
    color: rgba(255, 248, 231, 0.6);
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto 30px;
}

.gita-diya-row {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.g-diya {
    width: 25px;
    height: 16px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 0 0 50% 50%;
    position: relative;
    box-shadow: 0 3px 10px var(--shadow-gold);
}

.g-flame {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 14px;
    background: radial-gradient(ellipse at bottom, #FF6F00, #FFD700, transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: g-flame-flicker 0.7s ease-in-out infinite alternate;
    box-shadow: 0 0 12px #FFD700, 0 0 25px rgba(255, 165, 0, 0.3);
}

@keyframes g-flame-flicker {
    0% { transform: translateX(-50%) scaleY(1) scaleX(1); }
    50% { transform: translateX(-50%) scaleY(1.1) scaleX(0.9); }
    100% { transform: translateX(-50%) scaleY(0.95) scaleX(1.05); }
}

/* ============================================
   VERSE CARD
   ============================================ */
.verse-section {
    padding: 0 20px 60px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.verse-card {
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.6), rgba(26, 10, 0, 0.8));
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212, 160, 23, 0.1);
    transition: all 0.5s ease;
    animation: card-appear 0.8s ease-out;
}

@keyframes card-appear {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.verse-card-decoration {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--saffron), var(--gold), transparent);
}

.top-dec { top: 0; }
.bottom-dec { bottom: 0; }

.verse-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--gold);
    border-style: solid;
}

.verse-corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.verse-corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.verse-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.verse-corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

/* Verse Reference */
.verse-reference {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.chapter-label, .verse-label {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.chapter-label span, .verse-label span {
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
}

.verse-dot {
    color: var(--saffron);
    font-size: 8px;
}

/* Sanskrit Verse */
.verse-sanskrit-block {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    animation: verse-fade 0.6s ease;
}

.verse-sanskrit-block p {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(18px, 3vw, 24px);
    color: var(--gold);
    line-height: 2;
    text-shadow: 0 0 15px var(--shadow-gold);
}

/* Transliteration */
.verse-transliteration {
    text-align: center;
    margin-bottom: 25px;
}

.verse-transliteration p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    color: rgba(240, 208, 96, 0.6);
    line-height: 1.8;
    letter-spacing: 1px;
}

/* Inner Divider */
.verse-inner-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.vid-left, .vid-right {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.vid-center {
    color: var(--saffron);
    font-size: 16px;
    animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 1; transform: rotate(0deg); }
    50% { opacity: 0.5; transform: rotate(180deg); }
}

/* Translation */
.verse-translation {
    text-align: center;
    margin-bottom: 25px;
}

.verse-translation p {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--temple-cream);
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Commentary */
.verse-commentary {
    background: rgba(212, 160, 23, 0.05);
    border-left: 3px solid var(--gold);
    padding: 20px 25px;
    border-radius: 0 10px 10px 0;
}

.verse-commentary h4 {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.verse-commentary p {
    font-size: 13px;
    color: rgba(255, 248, 231, 0.7);
    line-height: 1.8;
}

@keyframes verse-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   VERSE ACTIONS
   ============================================ */
.verse-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.verse-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.verse-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.verse-btn:hover::before {
    left: 100%;
}

.btn-new-verse {
    background: linear-gradient(135deg, #E65100, #FF6F00, #FFA040);
    color: white;
    box-shadow: 0 8px 30px var(--shadow-saffron);
}

.btn-new-verse:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow-saffron);
}

.btn-new-verse:active {
    transform: translateY(0);
}

.btn-icon-gita {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 20px;
}

/* Verse Counter */
.verse-counter {
    text-align: center;
    margin-top: 20px;
}

.verse-counter p {
    font-size: 12px;
    color: rgba(212, 160, 23, 0.4);
    letter-spacing: 2px;
}

.verse-counter span {
    color: var(--gold);
    font-weight: 700;
}

/* ============================================
   INFO SECTION
   ============================================ */
.gita-info-section {
    padding: 60px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.info-card {
    background: rgba(62, 39, 35, 0.4);
    border: 1px solid rgba(212, 160, 23, 0.1);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 160, 23, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.info-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.info-card p {
    font-size: 13px;
    color: rgba(255, 248, 231, 0.6);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.gita-footer {
    border-top: 1px solid rgba(212, 160, 23, 0.1);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-verse-gita {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 15px;
    color: var(--gold);
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-verse-gita em {
    font-size: 12px;
    color: var(--gold-light);
    opacity: 0.6;
    font-family: 'Poppins', sans-serif;
}

.gita-footer p {
    font-size: 12px;
    color: rgba(255, 248, 231, 0.4);
    margin-bottom: 10px;
}

.footer-home-link {
    display: inline-block;
    color: var(--gold-light);
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(212, 160, 23, 0.3);
    padding: 8px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.footer-home-link:hover {
    background: rgba(212, 160, 23, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   LANGUAGE SWITCHER (Gita Page)
   ============================================ */
.lang-switcher {
    position: relative;
    z-index: 200;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.3);
    color: var(--gold-light);
    padding: 6px 14px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: rgba(212, 160, 23, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.lang-flag {
    font-weight: 700;
    font-size: 11px;
}

.lang-arrow {
    transition: transform 0.3s ease;
}

.lang-dropdown.open + .lang-current .lang-arrow,
.lang-dropdown.open ~ .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(135deg, #2C1810, #1A0A00);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 12px;
    padding: 6px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--temple-cream);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(212, 160, 23, 0.15);
    color: var(--gold);
}

.lang-option.active {
    background: rgba(212, 160, 23, 0.2);
    color: var(--gold);
    font-weight: 600;
}

.lang-option.active::before {
    content: '✓';
    font-size: 11px;
    margin-right: 2px;
}

/* ============================================
   REGIONAL FONT OVERRIDES
   ============================================ */
html[lang="ta"] body {
    font-family: 'Noto Sans Tamil', 'Poppins', sans-serif;
}

html[lang="te"] body {
    font-family: 'Noto Sans Telugu', 'Poppins', sans-serif;
}

html[lang="kn"] body {
    font-family: 'Noto Sans Kannada', 'Poppins', sans-serif;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .verse-card {
        padding: 35px 25px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .gita-diya-row {
        gap: 30px;
    }

    .gita-nav-title span:last-child {
        display: none;
    }

    .lang-switcher {
        position: fixed;
        top: 18px;
        right: 15px;
        z-index: 200;
    }
}

@media (max-width: 480px) {
    .verse-card {
        padding: 25px 18px;
    }

    .verse-sanskrit-block p {
        font-size: 16px;
    }

    .verse-btn {
        padding: 14px 30px;
        font-size: 13px;
    }
}
