/* ===================================
   Rameshwaram Pooja Booking - Styles
   Gold & White Temple Theme
   =================================== */

:root {
    --gold: #C9A83C;
    --gold-light: #E8C96A;
    --gold-dark: #9A7B1E;
    --dark: #1A1209;
    --dark-brown: #2C1810;
    --saffron: #FF6B00;
    --cream: #FFF8E7;
    --text-dark: #2D2009;
    --text-muted: #7A6040;
    --white: #FFFFFF;
    --section-bg: #FFF8E7;
}

* { box-sizing: border-box; }

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .navbar-brand, .footer-brand {
    font-family: 'Cinzel', serif;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--dark);
    color: var(--gold-light);
    font-size: 0.85rem;
}
.top-bar a {
    color: var(--gold-light);
    text-decoration: none;
}
.top-bar a:hover { color: var(--white); }

/* ===== Navbar ===== */
#mainNav {
    background: var(--dark-brown);
    border-bottom: 2px solid var(--gold);
    transition: all 0.3s ease;
    padding: 10px 0;
}
#mainNav.scrolled {
    background: rgba(28, 16, 8, 0.97);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 6px 0;
}
.brand-om {
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}
.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    font-weight: 700;
}
.brand-sub {
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.navbar-nav .nav-link {
    color: #D4B896 !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 14px !important;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-light) !important;
}

/* ===== Buttons ===== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark) !important;
    border: none;
    border-radius: 4px;
    padding: 10px 22px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201,168,60,0.4);
}
.btn-saffron {
    background: var(--saffron);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-saffron:hover {
    background: #e05a00;
    transform: translateY(-1px);
    color: var(--white);
}
.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    border-radius: 4px;
    padding: 10px 24px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-brown) 50%, #3D2200 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::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='%23C9A83C' 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.6;
}
.hero-om {
    font-size: 12rem;
    color: var(--gold);
    opacity: 0.07;
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold-light);
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: #D4B896;
    font-weight: 300;
    line-height: 1.7;
}
.hero-badges .badge {
    background: rgba(201,168,60,0.2);
    border: 1px solid rgba(201,168,60,0.4);
    color: var(--gold-light);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-family: 'Lato', sans-serif;
    margin: 4px;
}

/* ===== Section Styles ===== */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--dark-brown);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
section { padding: 80px 0; }
.bg-cream { background: var(--cream); }

/* ===== Pooja Cards ===== */
.pooja-card {
    background: var(--white);
    border: 1px solid #F0E8D0;
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.pooja-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 12px 0 0 12px;
}
.pooja-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(201,168,60,0.2);
    border-color: var(--gold);
}
.pooja-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 16px;
    flex-shrink: 0;
}
.pooja-name-tamil {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 4px;
}
.pooja-name-en {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.pooja-desc {
    font-size: 0.88rem;
    color: #5A4A2A;
    line-height: 1.65;
}
.pooja-tariff {
    background: var(--cream);
    border: 1px solid #E8D5A0;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 14px;
}

/* ===== Services Page ===== */
.service-detail-card {
    background: var(--white);
    border: 1px solid #EDE0C4;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    transition: box-shadow 0.3s;
}
.service-detail-card:hover {
    box-shadow: 0 10px 40px rgba(201,168,60,0.15);
}
.service-number {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===== Booking Form ===== */
.booking-section {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-brown) 100%);
    padding: 80px 0;
}
.booking-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.3);
}
.booking-card .form-label {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 0.9rem;
}
.booking-card .form-control,
.booking-card .form-select {
    border: 1.5px solid #DDD0B3;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.booking-card .form-control:focus,
.booking-card .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,60,0.15);
    outline: none;
}
.booking-info-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,60,0.3);
    border-radius: 12px;
    padding: 30px;
    color: #D4B896;
}
.booking-info-box h4 { color: var(--gold-light); }

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #EDE0C4;
    height: 100%;
    transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-stars { color: var(--gold); font-size: 1.1rem; }
.testimonial-avatar {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--saffron));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== Stats Bar ===== */
.stats-bar {
    background: linear-gradient(135deg, var(--dark-brown) 0%, #3D2200 100%);
    padding: 50px 0;
}
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--gold-light);
}
.stat-item p {
    color: #C4A878;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Contact Page ===== */
.contact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 36px;
    border: 1px solid #EDE0C4;
    height: 100%;
}
.contact-icon-box {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 16px;
}
.map-container iframe {
    border-radius: 12px;
    border: 3px solid var(--gold);
}

/* ===== About Page ===== */
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #EDE0C4;
}
.about-feature:last-child { border-bottom: none; }
.about-feature-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    border-top: 3px solid var(--gold-dark);
}
.footer-brand {
    color: var(--gold-light);
    font-size: 1.1rem;
}
.footer-heading {
    color: var(--gold);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    padding: 5px 0;
}
.footer-links a {
    color: #B0956A;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-links li { color: #B0956A; font-size: 0.9rem; }
.footer-divider { border-color: rgba(201,168,60,0.2); }
.text-light-muted { color: #7A6040; }
.text-gold { color: var(--gold); }
.social-links a {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(201,168,60,0.15);
    border: 1px solid rgba(201,168,60,0.3);
    border-radius: 50%;
    color: var(--gold);
    margin-right: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.social-links a:hover {
    background: var(--gold);
    color: var(--dark);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 24px;
    background: #25D366;
    color: var(--white);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-green 2.5s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(37,211,102,0.7);
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,0.8), 0 0 0 10px rgba(37,211,102,0.15); }
}

/* ===== Admin Panel ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #F5F5F5;
    font-family: 'Lato', sans-serif;
}
.admin-sidebar {
    width: 260px;
    background: var(--dark-brown);
    min-height: 100vh;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(201,168,60,0.2);
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    font-size: 1rem;
}
.admin-sidebar .nav-link {
    color: #C4A878;
    padding: 12px 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(201,168,60,0.12);
    color: var(--gold-light);
    border-left-color: var(--gold);
}
.admin-sidebar .nav-link i { width: 22px; }
.admin-main {
    flex: 1;
    padding: 0;
    overflow: hidden;
}
.admin-topbar {
    background: var(--white);
    padding: 14px 28px;
    border-bottom: 1px solid #E0D5C0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-content { padding: 28px; }
.admin-card {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #E8E0D0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}
.stat-card {
    border-radius: 10px;
    padding: 24px;
    color: var(--white);
}
.stat-card-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--dark); }
.stat-card-brown { background: linear-gradient(135deg, #6B3E26, #3D2200); }
.stat-card-saffron { background: linear-gradient(135deg, #FF6B00, #CC4400); }
.stat-card-green { background: linear-gradient(135deg, #2C7A3A, #1A5227); }
.stat-card h2 { font-size: 2.2rem; margin-bottom: 4px; }
.stat-card p { margin: 0; opacity: 0.85; font-size: 0.9rem; }
.admin-table th {
    background: var(--cream);
    color: var(--dark-brown);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 2px solid #E0D0A0;
}
.admin-table td {
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #F0E8D8;
}
.admin-table tr:hover td { background: #FFFBF0; }
.badge-pending { background: #FFF3CD; color: #856404; }
.badge-confirmed { background: #D1E7DD; color: #0A3622; }
.badge-cancelled { background: #F8D7DA; color: #58151C; }

/* ===== Admin Login ===== */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-brown) 100%);
    display: flex; align-items: center; justify-content: center;
}
.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

/* ===== Alert Styles ===== */
.alert-success { border-left: 4px solid #25D366; }
.alert-danger { border-left: 4px solid #DC3545; }

/* ===== Page Header Banner ===== */
.page-banner {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-brown) 100%);
    padding: 70px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: 'ॐ';
    position: absolute;
    font-size: 18rem;
    color: rgba(201,168,60,0.04);
    right: -3rem;
    top: 50%;
    transform: translateY(-50%);
}
.page-banner h1 { color: var(--gold-light); }
.page-banner .breadcrumb-item a { color: var(--gold); text-decoration: none; }
.page-banner .breadcrumb-item.active { color: #B0956A; }
.page-banner .breadcrumb-item+.breadcrumb-item::before { color: #7A6040; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section { min-height: 75vh; }
    .hero-om { font-size: 8rem; opacity: 0.05; }
    section { padding: 55px 0; }
    .booking-card { padding: 24px 16px; }
    .admin-sidebar { width: 200px; }
    .admin-content { padding: 16px; }
}
@media (max-width: 576px) {
    .admin-sidebar { display: none; }
    .admin-wrapper { flex-direction: column; }
}