/* ॐ Krishna Consciousness Chapter Styles ॐ */

/* CSS Variables for Krishna Color Palette */
:root {
    --krishna-blue-dark: #1e3a8a;
    --krishna-blue: #2563eb;
    --krishna-blue-light: #3b82f6;
    --golden-yellow: #1d4ed8;
    --saffron: #ff9933;
    --temple-cream: rgba(255, 248, 220, 0.95);
    --temple-cream-light: rgba(255, 253, 235, 0.98);
    --sacred-white: #ffffff;
    --divine-text: #f8fafc;
    --accent-gold: #2563eb;
    --lotus-pink: #f8bbd9;
    --peacock-green: #0d9488;
    --sacred-purple: #7c3aed;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&family=Dancing+Script:wght@400;600&display=swap');

/* Body and Base Styling */
body {
    background: linear-gradient(135deg, 
        var(--krishna-blue-dark) 0%, 
        var(--krishna-blue) 25%, 
        var(--krishna-blue-light) 50%, 
        rgba(255, 152, 51, 0.8) 75%, 
        var(--golden-yellow) 100%);
    color: var(--divine-text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Sacred Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="2" fill="rgba(255,223,0,0.1)"/><circle cx="150" cy="80" r="1.5" fill="rgba(255,152,51,0.1)"/><circle cx="100" cy="150" r="2.5" fill="rgba(30,58,138,0.1)"/><circle cx="30" cy="180" r="1" fill="rgba(255,223,0,0.08)"/><circle cx="170" cy="30" r="1.8" fill="rgba(255,152,51,0.12)"/></svg>') repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* Main Container */
.gita-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px;
    position: relative;
    z-index: 1;
}

/* Chapter Header Styling */
.chapter-header {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(145deg, 
        var(--temple-cream) 0%, 
        var(--temple-cream-light) 100%);
    border-radius: 25px;
    margin-bottom: 25px;
    border: 3px solid var(--golden-yellow);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 60px rgba(30, 58, 138, 0.2),
        0 8px 30px rgba(255, 152, 51, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.chapter-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 223, 0, 0.1) 0%, 
        rgba(255, 152, 51, 0.08) 50%, 
        rgba(30, 58, 138, 0.1) 100%);
    opacity: 0.6;
    pointer-events: none;
}

/* Enhanced styling for paragraph elements in header */
.chapter-header p {
    margin-top: 12px;
    font-style: italic;
    font-size: 1.1em;
    font-weight: 500;
    background: linear-gradient(135deg, var(--krishna-blue) 0%, var(--sacred-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 8px rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 1;
}

/* Combined title styling - single line layout */
.title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.title-line .gita-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    color: var(--krishna-blue-dark);
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.title-line .chapter-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    background: linear-gradient(45deg, 
        var(--krishna-blue-dark) 0%, 
        var(--krishna-blue) 30%, 
        var(--saffron) 70%, 
        var(--golden-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: none;
}

.gita-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9em;
    color: var(--krishna-blue-dark);
    margin: 0 0 12px 0;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.chapter-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4em;
    background: linear-gradient(45deg, 
        var(--krishna-blue-dark) 0%, 
        var(--krishna-blue) 30%, 
        var(--saffron) 70%, 
        var(--golden-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 6px 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: none;
}

.chapter-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4em;
    color: var(--saffron);
    margin: 0 0 8px 0;
    font-style: italic;
    font-weight: 600;
    text-shadow: 3px 3px 10px rgba(255, 152, 51, 0.4);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1e40af 0%, var(--golden-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Chapter Introduction */
.chapter-intro {
    background: linear-gradient(145deg, 
        var(--temple-cream) 0%, 
        var(--temple-cream-light) 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    border-left: 6px solid var(--krishna-blue);
    border-right: 2px solid var(--golden-yellow);
    border-top: 2px solid rgba(255, 152, 51, 0.5);
    border-bottom: 2px solid rgba(255, 152, 51, 0.5);
    font-size: 1.05em;
    color: var(--krishna-blue-dark);
    text-align: center;
    font-weight: 500;
    box-shadow: 
        0 12px 40px rgba(30, 58, 138, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.chapter-intro::before {
    content: '🕉️';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    background: var(--temple-cream);
    padding: 5px 10px;
    border-radius: 50%;
    border: 2px solid var(--golden-yellow);
}

/* Theme Sections */
.theme-section {
    background: linear-gradient(145deg, 
        var(--temple-cream) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border-left: 6px solid;
    border-right: 2px solid rgba(255, 152, 51, 0.3);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(30, 58, 138, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.theme-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 223, 0, 0.05) 0%, 
        rgba(255, 152, 51, 0.03) 50%, 
        rgba(30, 58, 138, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.theme-section:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 25px 65px rgba(30, 58, 138, 0.2),
        0 15px 35px rgba(255, 152, 51, 0.15);
}

.theme-section:hover::before {
    opacity: 1;
}

/* Krishna Color Variations for Sections */
.section-1 {
    border-left-color: var(--krishna-blue);
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.1) 0%, 
        var(--temple-cream) 100%);
}

.section-2 {
    border-left-color: var(--saffron);
    background: linear-gradient(135deg, 
        rgba(255, 152, 51, 0.1) 0%, 
        var(--temple-cream) 100%);
}

.section-3 {
    border-left-color: var(--golden-yellow);
    background: linear-gradient(135deg, 
        rgba(255, 223, 0, 0.1) 0%, 
        var(--temple-cream) 100%);
}

.section-4 {
    border-left-color: var(--peacock-green);
    background: linear-gradient(135deg, 
        rgba(13, 148, 136, 0.1) 0%, 
        var(--temple-cream) 100%);
}

.section-5 {
    border-left-color: var(--sacred-purple);
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.1) 0%, 
        var(--temple-cream) 100%);
}

/* Section Titles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--krishna-blue-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
}

/* Section Content */
.section-content {
    color: #2d3748;
    font-size: 1.1em;
    line-height: 1.8;
    font-weight: 400;
}

.section-content ul {
    padding-left: 0;
    list-style: none;
}

.section-content li {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px 25px;
    margin: 15px 0;
    border-radius: 12px;
    border-left: 3px solid var(--golden-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.section-content li::before {
    content: '🔸';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--saffron);
}

.section-content li:hover {
    transform: translateX(8px);
    background: rgba(255, 248, 220, 0.9);
    box-shadow: 0 8px 20px rgba(255, 152, 51, 0.2);
}

/* Highlight Text */
.highlight {
    color: var(--krishna-blue);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, 
        rgba(255, 223, 0, 0.2) 0%, 
        rgba(255, 152, 51, 0.1) 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Verse Quote Styling */
.verse-quote {
    text-align: center;
    font-style: italic;
    font-size: 1.3em;
    color: var(--krishna-blue-dark);
    background: var(--temple-cream);
    padding: 25px 30px;
    border-radius: 15px;
    margin: 40px 0;
    border: 2px solid var(--golden-yellow);
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    box-shadow: 
        0 12px 35px rgba(30, 58, 138, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.verse-quote::before {
    content: '"';
    font-size: 3em;
    color: var(--saffron);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
}

.verse-quote::after {
    content: '"';
    font-size: 3em;
    color: var(--saffron);
    position: absolute;
    bottom: -30px;
    right: 20px;
    font-family: 'Playfair Display', serif;
}

/* Navigation Footer */
.navigation-footer {
    display: flex;
    justify-content: space-between;
    margin: 50px 0 30px 0;
    gap: 20px;
}

.nav-button {
    flex: 1;
    padding: 15px 25px;
    background: linear-gradient(135deg, 
        var(--krishna-blue) 0%, 
        var(--krishna-blue-light) 100%);
    color: var(--sacred-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    border: 2px solid transparent;
}

.nav-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, 
        var(--saffron) 0%, 
        var(--golden-yellow) 100%);
    color: var(--krishna-blue-dark);
    box-shadow: 0 15px 40px rgba(255, 152, 51, 0.4);
    border-color: var(--golden-yellow);
}

/* Sacred Background Symbols */
.sacred-symbol {
    position: fixed;
    font-size: 6em;
    color: rgba(255, 223, 0, 0.1);
    animation: float 8s ease-in-out infinite;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    font-family: 'Dancing Script', cursive;
}

.sacred-symbol:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.sacred-symbol:nth-child(2) {
    top: 60%;
    right: 8%;
    animation-delay: -3s;
}

.sacred-symbol:nth-child(3) {
    bottom: 15%;
    left: 10%;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-35px) rotate(0deg);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-20px) rotate(-2deg);
        opacity: 0.15;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gita-container {
        padding: 20px 15px;
    }
    
    .chapter-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .gita-title {
        font-size: 1.8em;
    }
    
    .chapter-title {
        font-size: 2.2em;
    }
    
    .chapter-subtitle {
        font-size: 1.3em;
    }
    
    .chapter-intro {
        padding: 20px;
        font-size: 1em;
    }
    
    .theme-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .section-title {
        font-size: 1.5em;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .section-content {
        font-size: 1em;
    }
    
    .section-content li {
        padding: 12px 20px;
        margin: 12px 0;
    }
    
    .verse-quote {
        font-size: 1.1em;
        padding: 20px;
        margin: 30px 0;
    }
    
    .navigation-footer {
        flex-direction: column;
        gap: 15px;
        margin: 40px 0 25px 0;
    }
    
    .nav-button {
        padding: 12px 20px;
    }
    
    .sacred-symbol {
        font-size: 4em;
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .chapter-header {
        padding: 25px 15px;
    }
    
    .gita-title {
        font-size: 1.6em;
    }
    
    .chapter-title {
        font-size: 1.9em;
    }
    
    .chapter-subtitle {
        font-size: 1.2em;
    }
    
    .theme-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3em;
    }
    
    .verse-quote {
        font-size: 1em;
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .sacred-symbol {
        display: none;
    }
    
    .navigation-footer {
        display: none;
    }
    
    .theme-section {
        break-inside: avoid;
    }
}