/* ========================================
   CHALISA SANGRAH - MAIN STYLESHEET
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #ff6b00;
    --primary-dark: #e55d00;
    --secondary-color: #8b0000;
    --gold-color: #ffd700;
    --cream-color: #fff8dc;
    --light-orange: #fff3e0;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Devanagari', 'Tiro Devanagari Hindi', sans-serif;
    background: linear-gradient(135deg, #fff8dc 0%, #ffe4b5 50%, #ffdab9 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Decorative Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   HEADER STYLES
   ======================================== */

.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.header-decoration {
    margin-bottom: 15px;
}

.om-symbol {
    font-size: 3.5rem;
    color: var(--gold-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,215,0,0.5);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,215,0,0.8), 0 0 30px rgba(255,215,0,0.6);
    }
}

.main-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.header-border {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.chalisa-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.decorative-line {
    flex: 1;
    max-width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

/* ========================================
   CHALISA GRID
   ======================================== */

.chalisa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ========================================
   CHALISA CARDS
   ======================================== */

.chalisa-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.chalisa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color), var(--primary-color));
}

.chalisa-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.chalisa-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.chalisa-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Devi Card Variations */
.devi-card::before {
    background: linear-gradient(90deg, #e91e63, #ff5722, #e91e63);
}

.devi-card:hover {
    border-color: #e91e63;
}

/* Graha Card Variations */
.graha-card::before {
    background: linear-gradient(90deg, #3f51b5, #00bcd4, #3f51b5);
}

.graha-card:hover {
    border-color: #3f51b5;
}

/* Other Card Variations */
.other-card::before {
    background: linear-gradient(90deg, #4caf50, #8bc34a, #4caf50);
}

.other-card:hover {
    border-color: #4caf50;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.main-footer {
    background: linear-gradient(135deg, var(--secondary-color), #5d0000);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-decoration {
    margin-bottom: 20px;
}

.footer-decoration .om-symbol {
    font-size: 2.5rem;
}

.main-footer p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 1rem !important;
    opacity: 0.9;
}

.footer-border {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    margin: 20px auto;
}

.copyright {
    font-size: 0.9rem !important;
    opacity: 0.8;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   CHALISA PAGE STYLES
   ======================================== */

.chalisa-page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
    position: relative;
}

.back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
}

.back-home:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(-5px);
}

.chalisa-page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.chalisa-page-header .subtitle {
    font-size: 1.3rem;
}

/* Chalisa Content */
.chalisa-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.chalisa-box {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    box-shadow: var(--shadow);
    position: relative;
}

.chalisa-box::before,
.chalisa-box::after {
    content: '॥';
    position: absolute;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.chalisa-box::before {
    top: 20px;
    left: 30px;
}

.chalisa-box::after {
    bottom: 20px;
    right: 30px;
}

.doha {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px dashed var(--primary-color);
}

.doha h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.doha-text {
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-dark);
}

.chaupai {
    margin-bottom: 40px;
}

.chaupai h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.verse {
    font-size: 1.25rem;
    line-height: 2.2;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-orange);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.verse:nth-child(even) {
    background: var(--cream-color);
}

/* Benefits Section */
.benefits-section {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.benefits-box {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.benefits-box h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.benefits-box ul {
    list-style: none;
}

.benefits-box li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.benefits-box li:last-child {
    border-bottom: none;
}

.benefits-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .om-symbol {
        font-size: 2.5rem;
    }
    
    .category-nav {
        gap: 10px;
        padding: 15px;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .decorative-line {
        display: none;
    }
    
    .chalisa-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .chalisa-card {
        padding: 25px 20px;
    }
    
    .chalisa-card h3 {
        font-size: 1.2rem;
    }
    
    .chalisa-box {
        padding: 30px 20px;
    }
    
    .verse {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .doha-text {
        font-size: 1.1rem;
    }
    
    .back-home {
        position: static;
        display: inline-flex;
        margin-bottom: 20px;
    }
    
    .chalisa-page-header h1 {
        font-size: 1.8rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 30px 15px;
    }
    
    .main-header h1 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .chalisa-grid {
        grid-template-columns: 1fr;
    }
    
    .chalisa-box::before,
    .chalisa-box::after {
        display: none;
    }
    
    .benefits-box {
        padding: 25px 20px;
    }
}

/* Print Styles */
@media print {
    .category-nav,
    .back-to-top,
    .back-home {
        display: none !important;
    }
    
    .chalisa-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}