/* ==========================================================================
   SPIRITUAL COLOR PALETTE & DESIGN SYSTEM / ஆன்மீக வண்ணமைப்பு
   Sri Lakshmi Narayani Golden Temple Inspired Theme
   ========================================================================== */

:root {
  /* Core Divine Palette */
  --gold-primary: #FFD700;
  --gold-secondary: #E6A100;
  --gold-light: #FFF4B8;
  --saffron-primary: #FF9933;
  --saffron-deep: #E65100;
  --temple-red: #B71C1C;
  --temple-red-dark: #880E4F;
  --sandalwood-bg: #FFFDF5;
  --sandalwood-card: #FDFBF7;
  --sacred-charcoal: #1A1A1A;
  --text-muted: #555555;
  --success-green: #2E7D32;
  --border-gold: rgba(230, 161, 0, 0.3);

  /* Shadows & Elevation */
  --shadow-gold: 0 10px 25px rgba(230, 161, 0, 0.25);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-fab: 0 6px 20px rgba(183, 28, 28, 0.35);

  /* Typography Fonts */
  --font-heading: 'Cinzel', 'Noto Serif Tamil', serif;
  --font-body: 'Poppins', 'Mukta Malar', 'Noto Sans Tamil', sans-serif;
}

/* --- Base Body & Typography --- */
body {
  background-color: var(--sandalwood-bg);
  color: var(--sacred-charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--temple-red);
}

/* --- Shimmer & Animations --- */
.shimmer-gold {
  position: relative;
  overflow: hidden;
}

.shimmer-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: shimmerMove 3.5s infinite;
}

@keyframes shimmerMove {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.card-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}

/* Floating Diya / Om Preloader Animation */
.diya-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--sandalwood-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.diya-spin {
  width: 80px;
  height: 80px;
  animation: spinOm 3s linear infinite;
}

@keyframes spinOm {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* --- Navbar & Header --- */
.temple-topbar {
  background: linear-gradient(90deg, var(--temple-red-dark), var(--temple-red));
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 6px 0;
}

.temple-topbar a {
  color: var(--gold-primary);
  text-decoration: none;
}

.navbar-temple {
  background-color: var(--sandalwood-card);
  border-bottom: 3px solid var(--gold-secondary);
  box-shadow: var(--shadow-card);
  padding: 12px 0;
}

.navbar-brand img {
  height: 52px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar-nav {
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  font-weight: 600;
  color: var(--sacred-charcoal) !important;
  margin: 0 3px;
  padding-left: 6px !important;
  padding-right: 6px !important;
  white-space: nowrap !important;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--saffron-deep) !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  color: var(--temple-red-dark) !important;
  font-weight: 700;
  border: 1px solid var(--gold-secondary);
  border-radius: 30px;
  padding: 10px 24px;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--saffron-primary), var(--saffron-deep));
  color: #FFFFFF !important;
  transform: scale(1.03);
}

.btn-red {
  background: linear-gradient(135deg, var(--temple-red), var(--temple-red-dark));
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: 30px;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.btn-red:hover {
  background: var(--saffron-deep);
  box-shadow: 0 4px 12px rgba(183, 28, 28, 0.4);
}

/* --- Hero Banner Slider --- */
.hero-slider {
  position: relative;
  min-height: 520px;
  border-bottom: 4px solid var(--gold-primary);
  background-color: #121212;
}

.hero-slide-item {
  min-height: 520px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-shadow-dark {
  text-shadow: 2px 3px 12px rgba(0, 0, 0, 0.9);
}

.carousel-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  margin: 0 6px;
  opacity: 0.6;
}

.carousel-indicators .active {
  opacity: 1;
  transform: scale(1.2);
}

/* --- Live Darshan & Counter Cards --- */
.counter-box {
  background: #FFFFFF;
  border-radius: 12px;
  border-top: 4px solid var(--gold-secondary);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.counter-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--saffron-deep);
}

/* --- Daily Quote Section --- */
.quote-banner {
  background: linear-gradient(135deg, #FFF4B8, #FFE0B2);
  border-left: 6px solid var(--saffron-deep);
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--shadow-card);
}

/* --- Seva Booking Calendar & Forms --- */
.slot-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 4px;
}

.slot-available {
  background-color: #E8F5E9;
  color: var(--success-green);
  border: 1px solid var(--success-green);
}

.slot-full {
  background-color: #FFEBEE;
  color: var(--temple-red);
  border: 1px solid var(--temple-red);
  cursor: not-allowed;
  opacity: 0.6;
}

/* --- Traditional Indian Temple Receipt Voucher --- */
.traditional-receipt-card {
  background: linear-gradient(135deg, #FFFDF2 0%, #FFF9E6 100%);
  border: 4px double #D4AF37;
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
  max-width: 820px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', 'Mukta', sans-serif;
  color: #2C1810;
}

.traditional-receipt-card .watermark-swastika {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  font-size: 22rem;
  color: rgba(212, 175, 55, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.traditional-receipt-card .receipt-content {
  position: relative;
  z-index: 2;
}

.receipt-flute-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.receipt-flute-graphic img, .receipt-flute-graphic svg {
  max-height: 28px;
}

.receipt-address-pill {
  background-color: #C62828;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 20px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.dotted-line-field {
  border-bottom: 2px dotted #A1887F;
  min-height: 38px;
  display: inline-flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

.dotted-label {
  font-weight: 700;
  color: #3E2723;
  white-space: nowrap;
  margin-right: 8px;
}

.dotted-value {
  font-weight: 700;
  color: #B71C1C;
  font-size: 1.1rem;
  flex-grow: 1;
}

.receipt-stamp-box {
  background-color: #D32F2F;
  color: #FFFFFF;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.receipt-signature-text {
  color: #C62828;
  font-weight: 700;
  font-size: 1.1rem;
}

.watermark-om {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15rem;
  color: rgba(230, 161, 0, 0.05);
  font-family: serif;
  pointer-events: none;
  user-select: none;
}

/* --- Sticky E-Commerce Cart Drawer --- */
.cart-drawer {
  width: 380px;
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFFFFF;
  border-top: 2px solid var(--gold-secondary);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1040;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

.mobile-bottom-nav a {
  color: var(--sacred-charcoal);
  text-decoration: none;
  font-size: 0.75rem;
  text-align: center;
}

.mobile-bottom-nav i {
  font-size: 1.3rem;
  display: block;
  color: var(--temple-red);
}

/* --- Floating Action Button (FAB) --- */
.fab-container {
  position: fixed;
  bottom: 75px;
  right: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.4rem;
  box-shadow: var(--shadow-fab);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.fab-btn:hover {
  transform: scale(1.1);
  color: #FFFFFF;
}

.fab-whatsapp { background-color: #25D366; }
.fab-seva { background: linear-gradient(135deg, var(--saffron-primary), var(--saffron-deep)); }

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-slider h1 { font-size: 2rem; }
  body { padding-bottom: 60px; }
}

@media (min-width: 992px) {
  .mobile-bottom-nav { display: none !important; }
}

/* ==========================================================================
   PRINT MEDIA RULES / அச்சு வடிவமைப்பு பிரத்யேக விதிகள்
   ========================================================================== */
@media print {
  /* 1. Hide non-printable UI elements */
  header, footer, nav, .temple-topbar, .navbar-temple, .mobile-bottom-nav, 
  .fab-container, .d-print-none, .alert, button, .modal, .cart-drawer {
    display: none !important;
  }

  /* 2. Reset page body and background */
  body, html {
    background: #FFFFFF !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* 3. Page layout & single page fitting */
  @page {
    size: A4 portrait;
    margin: 10mm 15mm;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  /* 4. Format printable pass / receipt cards */
  .printable-pass, .traditional-receipt-card {
    border: 3px double #D4AF37 !important;
    background: linear-gradient(135deg, #FFFDF2 0%, #FFF9E6 100%) !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    padding: 20px 30px !important;
    margin: 0 auto !important;
    max-width: 750px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .receipt-address-pill, .receipt-stamp-box {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Preserve colors in print */
  .text-danger { color: #B71C1C !important; }
  .text-warning { color: #D4AF37 !important; }
  .text-success { color: #2E7D32 !important; }
  .bg-warning { background-color: #FFD54F !important; color: #000000 !important; }
  .bg-danger { background-color: #B71C1C !important; color: #FFFFFF !important; }
  .bg-success { background-color: #2E7D32 !important; color: #FFFFFF !important; }
}
