/* ==========================================================================
   SACRED HERITAGE: INDIAN GODS, MYTHOLOGY & SACRED TEMPLES
   DESIGN SYSTEM & CUSTOM STYLES
   ========================================================================== */

:root {
  --bg-primary: #080C14;
  --bg-secondary: #0E1524;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  --border-gold: rgba(212, 175, 55, 0.28);
  --border-gold-bright: rgba(245, 158, 11, 0.7);
  --gold-primary: #D4AF37;
  --gold-light: #FDE047;
  --gold-amber: #F59E0B;
  --saffron-sacred: #EA580C;
  --saffron-light: #FB923C;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.25);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.35);
  --radius-card: 16px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.65);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(234, 88, 12, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography Enhancements */
.font-cinzel {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
}

.font-decorative {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
}

.font-sanskrit {
  font-family: 'Rozha One', 'Cinzel', serif;
  letter-spacing: 0.05em;
}

/* Golden Gradients & Glows */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFFBEB 0%, #FDE047 30%, #D4AF37 70%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-saffron-gradient {
  background: linear-gradient(135deg, #FFF7ED 0%, #FDBA74 40%, #EA580C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.border-gold-glow {
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.12);
}

.border-gold-glow:hover {
  border-color: var(--border-gold-bright);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

/* Glassmorphic Components */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.18);
}

/* Hero Section Aura */
.hero-mandala-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(234, 88, 12, 0.08) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: pulseAura 8s infinite alternate ease-in-out;
}

@keyframes pulseAura {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.95;
  }
}

/* Spinning Sacred Mandala Ring */
.mandala-ring {
  animation: slowRotate 120s linear infinite;
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Audio Visualizer Waves */
.sound-bar {
  animation: soundBounce 1.2s ease-in-out infinite alternate;
}
.sound-bar:nth-child(2) { animation-delay: 0.2s; }
.sound-bar:nth-child(3) { animation-delay: 0.4s; }
.sound-bar:nth-child(4) { animation-delay: 0.1s; }

@keyframes soundBounce {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Calm Temple Bell Chime Animation */
@keyframes bellSwing {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.bell-ringing {
  animation: bellSwing 1.6s ease-in-out infinite;
  transform-origin: top center;
  color: #fbbf24 !important;
}

/* Leaflet Map Customization */
#temple-map {
  height: 520px;
  width: 100%;
  border-radius: 16px;
  z-index: 10;
}

.leaflet-container {
  background-color: #0b1120 !important;
  font-family: inherit !important;
}

.custom-temple-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #f59e0b, #b45309);
  color: white;
  border-radius: 50%;
  border: 2px solid #fef08a;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.custom-temple-pin:hover {
  transform: scale(1.25);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.95);
}

.leaflet-popup-content-wrapper {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7) !important;
  padding: 4px !important;
}

.leaflet-popup-tip {
  background: #0f172a !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
}

/* Modals */
.modal-overlay {
  background-color: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  max-height: 88vh;
  scrollbar-width: thin;
}

/* Dashavatara Stepper Navigation */
.avatar-card.active {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
  background: rgba(30, 41, 59, 0.9);
}

/* Filter Tag Pills */
.filter-pill {
  transition: all 0.25s ease;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
}

.filter-pill:hover {
  border-color: rgba(245, 158, 11, 0.6);
  color: #f8fafc;
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #fde047;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

/* Badge Styles */
.circuit-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tradition-badge {
  background: rgba(234, 88, 12, 0.15);
  color: #fdba74;
  border: 1px solid rgba(234, 88, 12, 0.35);
}

/* Sanskrit Quote Callout */
.sanskrit-verse {
  position: relative;
  border-left: 3px solid #d4af37;
  padding-left: 1.25rem;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0 12px 12px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #temple-map {
    height: 380px;
  }
  .hero-mandala-bg {
    width: 320px;
    height: 320px;
  }
}
