/* Hari Nama Japam Page Specific Styles - Extracted from inline styles for better performance */

:root {
    --krishna-blue: #1e3a8a;
    --deep-krishna: #2563eb;
    --light-krishna: #1e40af;
    --golden-yellow: #ffdf00;
    --saffron: #ff9933;
    --temple-cream: rgba(255,248,220,0.95);
    --pure-white: #ffffff;
    --deep-teal: #244D58;
    --krishna-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 25%, #1e40af 50%, #ffdf00 75%, #ff9933 100%);
    --temple-gradient: linear-gradient(135deg, rgba(255,248,220,0.9) 0%, rgba(255,255,255,0.8) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--krishna-gradient);
    background-size: 400% 400%;
    animation: divineGradient 20s ease infinite;
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--deep-teal);
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes divineGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Sacred Elements */
.divine-symbol {
    position: fixed;
    font-size: 2.5em;
    opacity: 0.1;
    pointer-events: none;
    animation: floatSacred 12s ease-in-out infinite;
    z-index: 1;
    color: var(--golden-yellow);
    text-shadow: 0 0 20px rgba(255, 223, 0, 0.3);
}

.symbol-1 { top: 15%; left: 8%; animation-delay: 0s; }
.symbol-2 { top: 60%; right: 12%; animation-delay: -4s; font-size: 2em; }
.symbol-3 { bottom: 20%; left: 15%; animation-delay: -8s; }

@keyframes floatSacred {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-35px) rotate(-2deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

.container {
    max-width: 950px;
    margin: 15px auto;
    padding: 35px;
    background: var(--temple-gradient);
    border-radius: 30px;
    box-shadow: 
        0 30px 70px rgba(30, 58, 138, 0.4),
        0 0 0 1px rgba(255, 223, 0, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.8);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 223, 0, 0.4);
    position: relative;
    min-height: calc(100vh - 50px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 10;
}

/* Sacred Header */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 2px solid rgba(255, 223, 0, 0.4);
    box-shadow: 
        0 20px 50px rgba(30, 58, 138, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 223, 0, 0.1) 0%, transparent 70%);
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.3em;
    font-weight: 700;
    background: linear-gradient(45deg, var(--krishna-blue), var(--deep-krishna), var(--golden-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(30, 58, 138, 0.2);
}

.intro {
    font-size: 1.1em;
    color: var(--deep-teal);
    text-align: justify;
    margin-bottom: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border-left: 5px solid var(--golden-yellow);
    border: 1px solid rgba(255, 223, 0, 0.3);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
}

.maha-mantra {
    background: var(--krishna-gradient);
    color: white;
    padding: 40px;
    border-radius: 25px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 
        0 25px 60px rgba(30, 58, 138, 0.4),
        0 0 0 1px rgba(255, 223, 0, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    animation: divineMantraGlow 6s ease-in-out infinite;
    border: 2px solid rgba(255, 223, 0, 0.3);
}

@keyframes divineMantraGlow {
    0%, 100% { 
        box-shadow: 
            0 25px 60px rgba(30, 58, 138, 0.4),
            0 0 0 1px rgba(255, 223, 0, 0.4);
    }
    50% { 
        box-shadow: 
            0 35px 80px rgba(30, 58, 138, 0.6),
            0 0 40px rgba(255, 223, 0, 0.6),
            0 0 0 2px rgba(255, 223, 0, 0.6);
    }
}

.maha-mantra::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,223,0,0.15) 0%, transparent 50%);
    animation: mantraRotate 30s linear infinite;
    z-index: 0;
}

@keyframes mantraRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.saint-japa {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.saint-figure {
    display: inline-block;
    text-align: center;
    position: relative;
    font-size: 4em;
    margin-bottom: 5px;
    animation: divineMediation 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 223, 0, 0.4));
}

.japa-beads {
    position: absolute;
    top: 50%;
    right: -20px;
    font-size: 0.6em;
    animation: sacredBeadCount 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 223, 0, 0.6));
}

.saint-name {
    font-size: 0.3em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-style: italic;
}

@keyframes divineMediation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes sacredBeadCount {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.15); }
}

.mantra-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mantra-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    animation: mantraPulse 4s ease-in-out infinite;
}

@keyframes mantraPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.mantra-description {
    margin-top: 25px;
    font-size: 1.05em;
    font-style: italic;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.audio-controls {
    margin: 25px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.audio-button {
    background: rgb(38 84 167);
    border: 2px solid rgb(226 212 117 / 87%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-family: 'Poppins', sans-serif;
}

.audio-button:hover {
    background: rgba(255, 223, 0, 0.3);
    border-color: rgba(255, 223, 0, 0.9);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 223, 0, 0.4);
}

.audio-button.playing {
    background: rgba(255, 223, 0, 0.4);
    border-color: rgba(255, 223, 0, 1);
    animation: divineAudioGlow 2.5s ease-in-out infinite;
}

@keyframes divineAudioGlow {
    0%, 100% { 
        box-shadow: 
            0 10px 25px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 223, 0, 0.4);
    }
    50% { 
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(255, 223, 0, 0.7),
            0 0 60px rgba(255, 223, 0, 0.3);
    }
}

.play-icon {
    font-size: 1.3em;
    animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.audio-button.playing .play-icon {
    animation: playingIconDance 1.2s ease-in-out infinite;
}

@keyframes playingIconDance {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.15) rotate(8deg); }
    75% { transform: scale(1.15) rotate(-8deg); }
}

.benefits-section {
    margin: 40px 0;
}

.benefit {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border-left: 5px solid var(--golden-yellow);
    border: 1px solid rgba(255, 223, 0, 0.3);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--krishna-gradient);
}

.benefit:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 25px 50px rgba(30, 58, 138, 0.3),
        0 0 0 1px rgba(255, 223, 0, 0.4);
    background: rgba(255, 255, 255, 1);
}

.benefit-title {
    color: var(--krishna-blue);
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    margin-bottom: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.benefit-content {
    color: var(--deep-teal);
    text-align: justify;
    line-height: 1.8;
    font-size: 1em;
}

.benefit-list {
    list-style: none;
    margin: 18px 0;
    padding-left: 0;
}

.benefit-list li {
    padding: 8px 0;
    color: var(--saffron);
    font-weight: 600;
    position: relative;
    padding-left: 25px;
    font-size: 1em;
}

.benefit-list li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 1.1em;
}

.scripture-verse {
    background: linear-gradient(135deg, rgba(255,248,220,0.9), rgba(255,255,255,0.8));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 35px;
    margin: 40px 0;
    border: 2px solid var(--golden-yellow);
    box-shadow: 
        0 20px 50px rgba(30, 58, 138, 0.3),
        0 0 0 1px rgba(255, 223, 0, 0.2);
    text-align: center;
    position: relative;
}

.verse-sanskrit {
    font-family: 'Playfair Display', serif;
    font-size: 1.25em;
    font-style: italic;
    color: var(--krishna-blue);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.6;
}

.verse-meaning {
    color: var(--deep-teal);
    font-size: 1.05em;
    margin-bottom: 15px;
    font-weight: 600;
}

.verse-explanation {
    color: var(--deep-teal);
    font-style: italic;
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
}

.conclusion {
    background: linear-gradient(135deg, rgba(255,248,220,0.9), rgba(255,255,255,0.8));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    margin-top: 45px;
    border: 2px solid rgba(255,223,0,0.6);
    box-shadow: 
        0 25px 50px rgba(30, 58, 138, 0.3),
        0 0 0 1px rgba(255, 223, 0, 0.3);
}

.conclusion-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: var(--saffron);
    margin-bottom: 20px;
    font-weight: 700;
}

.conclusion-text {
    color: var(--deep-teal);
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    font-weight: 400;
}

.navigation {
    text-align: center;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 2px solid rgba(255,223,0,0.4);
}

.nav-button {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 12px;
    background: var(--krishna-gradient);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
    border: 1px solid rgba(255, 223, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
}

.nav-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.5);
    background: linear-gradient(135deg, var(--deep-krishna), var(--light-krishna));
}

.om-decoration {
    position: absolute;
    color: rgba(255, 223, 0, 0.15);
    font-size: 4em;
    top: 25px;
    right: 25px;
    animation: omFloat 8s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 223, 0, 0.3);
}

@keyframes omFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-30px) rotate(-2deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 8px;
        padding: 20px;
        min-height: auto;
    }
    
    .page-title {
        font-size: 1.6em;
        line-height: 1.3;
    }
    
    .intro {
        font-size: 1em;
        padding: 20px;
        text-align: left;
    }
    
    .maha-mantra {
        padding: 25px;
        margin: 30px 0;
    }
    
    .saint-figure {
        font-size: 3em;
    }
    
    .mantra-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .mantra-text {
        font-size: 1.2em;
        line-height: 1.6;
    }
    
    .mantra-description {
        font-size: 0.95em;
        margin-top: 15px;
    }
    
    .audio-button {
        padding: 12px 24px;
        font-size: 0.95em;
        gap: 10px;
    }
    
    .benefit {
        padding: 20px;
        margin: 18px 0;
    }
    
    .benefit-title {
        font-size: 1.15em;
        line-height: 1.4;
    }
    
    .benefit-content {
        font-size: 0.95em;
    }
    
    .benefit-list {
        font-size: 0.95em;
        padding-left: 20px;
    }
    
    .nav-button {
        display: block;
        margin: 12px auto;
        padding: 12px 24px;
        font-size: 0.95em;
        text-align: center;
        width: 85%;
        max-width: 280px;
    }
    
    .om-decoration {
        font-size: 2.5em;
        top: 15px;
        right: 15px;
    }
    
    .divine-symbol {
        font-size: 2em;
        opacity: 0.08;
    }
    
    .om-decoration {
        font-size: 2.5em;
        top: 15px;
        right: 15px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        margin: 4px;
        padding: 15px;
    }
    
    .page-title {
        font-size: 1.4em;
    }
    
    .saint-figure {
        font-size: 2.2em;
    }
    
    .mantra-text {
        font-size: 1.1em;
    }
    
    .benefit {
        padding: 15px;
    }
    
    .nav-button {
        width: 95%;
        font-size: 0.9em;
        padding: 10px 20px;
    }
    
    .audio-button {
        padding: 10px 20px;
        font-size: 0.9em;
        gap: 8px;
    }
    
    .om-decoration {
        font-size: 2em;
        top: 10px;
        right: 10px;
    }
}