/* assets/css/style.css */
/* Premium Devotional Theme for Ayyappa Mandir website */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,600;0,800;1,600&display=swap');

:root {
    --primary: #d9480f;     /* Deep Orange */
    --primary-light: #f76707;
    --primary-dark: #ad3700;
    --gold: #fcc419;        /* Bright Gold Accent */
    --gold-light: #ffd43b;
    --dark: #212529;        /* Warm Dark Charcoal */
    --light: #fff8f0;       /* Soft Cream / Off-White */
    --secondary: #e67e22;   /* Amber */
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(217, 72, 15, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-section a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0.5px;
}

.logo-section span {
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-links a.btn-cta {
    background-color: var(--gold);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(252, 196, 25, 0.3);
}

.nav-links a.btn-cta:hover {
    background-color: var(--gold-light);
    color: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(252, 196, 25, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)), url('../images/temple_bg.jpg') no-repeat center top/cover;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, var(--light), transparent);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 54px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 16px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(217, 72, 15, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 72, 15, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(252, 196, 25, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(252, 196, 25, 0.45);
}

/* Sections */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 38px;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.section-header h2::after {
    content: '🕉️';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: var(--gold);
}

.section-header p {
    color: #666;
    font-size: 16px;
}

/* Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(217, 72, 15, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(217, 72, 15, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    color: var(--primary-dark);
    font-size: 22px;
    margin-bottom: 15px;
}

.card p {
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Forms */
.form-container {
    max-width: 650px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(217, 72, 15, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 72, 15, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Payment QR Section in checkout */
.qr-container {
    background-color: #fff9f0;
    border: 2px dashed var(--gold);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 25px 0;
}

.qr-image {
    max-width: 200px;
    margin: 10px auto;
    display: block;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #eee;
}

/* Bhajan Multilingual Player styling (Glassmorphism) */
.bhajan-player-container {
    background: linear-gradient(135deg, rgba(217, 72, 15, 0.9) 0%, rgba(173, 55, 0, 0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    margin-bottom: 40px;
}

.lang-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 22px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.song-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for Song List */
.song-list::-webkit-scrollbar {
    width: 6px;
}
.song-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.song-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.song-item:hover, .song-item.playing {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
}

.song-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    margin-bottom: 4px;
}

.song-info span {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.play-icon {
    font-size: 20px;
    color: var(--gold);
}

/* Persistent Audio Player Bar */
.audio-player-interface {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.current-track-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-track-info div h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    margin-bottom: 2px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.control-btn.btn-play-pause {
    background-color: #fff;
    color: var(--primary-dark);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.control-btn.btn-play-pause:hover {
    background-color: var(--gold);
    color: var(--primary-dark);
}

.progress-bar-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.time-slider {
    width: 100%;
    cursor: pointer;
    accent-color: var(--gold);
}

/* Interactive Events Page */
.events-calendar-section {
    background-color: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

/* History styling */
.history-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.history-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 4px solid #fff;
    outline: 2px solid var(--gold);
}

.history-text h3 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 20px;
}

.history-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #444;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: #fff;
    padding: 50px 20px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.footer-col p, .footer-col li {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile side-drawer logic or collapse toggle */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .history-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
