/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Mukta+Malar:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary-color: #3e0a0a;
  --secondary-color: #240404;
  --gold-primary: #d4af37;
  --gold-secondary: #c29b4e;
  --text-light: #ffffff;
  --text-muted: #e0e0e0;
  --bg-dark: #121212;
  --glass-bg: rgba(62, 10, 10, 0.7);
  --glass-border: rgba(212, 175, 55, 0.3);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', 'Mukta Malar', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), url('../images/hero-banner.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Mukta Malar', sans-serif;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.py-4 { padding: 4rem 0; }

.gold-text {
  color: var(--gold-primary);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(45deg, #8b0000, var(--primary-color));
  color: var(--text-light);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--primary-color), #8b0000);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.btn-gold {
  background: linear-gradient(45deg, var(--gold-secondary), var(--gold-primary));
  color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Header */
header {
  background: rgba(36, 4, 4, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.85rem;
}

.social-icons a {
  color: var(--gold-primary);
  margin-left: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--text-light);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-area img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
}

.logo-text h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

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

.nav-links li a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 5px 10px;
  transition: var(--transition);
  text-transform: uppercase;
}

.nav-links li a:hover, .nav-links li a.active {
  color: var(--gold-primary);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero h2 {
  font-size: 1.5rem;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero .quote {
  font-size: 1.2rem;
  color: var(--gold-secondary);
  font-style: italic;
  margin-bottom: 40px;
}

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

/* Info Cards Row */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: -60px auto 0;
  position: relative;
  z-index: 10;
}

.info-card {
  text-align: center;
}

.info-card h3 {
  border-bottom: 1px solid var(--gold-primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.timing-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.service-item {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-item h4 {
  padding: 15px;
  text-align: center;
  margin: 0;
  background: var(--primary-color);
  font-size: 1.1rem;
}

/* Stats Section */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
  padding: 40px 20px;
  border-top: 2px solid var(--gold-primary);
  border-bottom: 2px solid var(--gold-primary);
  margin: 40px 0;
}

.stat-item {
  text-align: center;
}

.stat-item h2 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-secondary);
}

.form-control {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  color: white;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255,255,255,0.1);
}

select.form-control option {
  background: var(--primary-color);
  color: white;
}

/* Footer */
footer {
  background: var(--secondary-color);
  padding: 60px 20px 20px;
  border-top: 3px solid var(--gold-primary);
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: left;
}

.footer-section h3 {
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Specific Pages */
.page-header {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(rgba(36,4,4,0.9), rgba(36,4,4,0.9));
  border-bottom: 1px solid var(--gold-primary);
}

/* Payment Overlay */
.payment-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.payment-box {
  background: var(--secondary-color);
  border: 2px solid var(--gold-primary);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.spinner {
  border: 4px solid rgba(255,255,255,0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-left-color: var(--gold-primary);
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Live Darshan Video */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border: 2px solid var(--gold-primary);
  border-radius: 8px;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 20px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Admin Dashboard Specific Styles */
.admin-body {
  background-color: #0d0d0d;
  background-image: none;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: #1a1a1a;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

.admin-brand {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--glass-border);
}

.admin-brand img {
  width: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
}

.admin-brand h3 {
  color: var(--gold-primary);
  margin: 0;
  font-size: 1.2rem;
}

.admin-nav {
  padding: 20px 0;
}

.admin-nav li a {
  display: block;
  padding: 15px 25px;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.admin-nav li a:hover, .admin-nav li a.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  border-left-color: var(--gold-primary);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: #1a1a1a;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.admin-header h2 {
  margin: 0;
  color: var(--text-light);
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-profile img {
  width: 40px;
  border-radius: 50%;
}

.admin-content {
  padding: 30px;
  overflow-y: auto;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.admin-stat-card {
  background: #242424;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-stat-card h3 {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.admin-stat-card .value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold-primary);
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th, .admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.admin-table th {
  color: var(--gold-secondary);
  font-weight: 500;
}

.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.badge.success { background: rgba(76, 209, 55, 0.2); color: #4cd137; }
.badge.pending { background: rgba(255, 159, 67, 0.2); color: #ff9f43; }

/* Responsive Admin Dashboard */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }
  
  .admin-nav li {
    display: inline-block;
  }
  
  .admin-nav li a {
    padding: 10px 15px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  
  .admin-nav li a:hover, .admin-nav li a.active {
    border-left-color: transparent;
    border-bottom-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
  }
  
  .admin-header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .admin-content {
    padding: 15px;
  }
  
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  
  /* Make table card scrollable horizontally */
  .admin-section.glass-card {
    overflow-x: auto;
    padding: 1.5rem;
  }
  
  .admin-table {
    min-width: 500px;
  }
}
