/* ===================================================================
   MANGAL SEVA - FESTIVE LUXURY STYLES & PRELOADER
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Poppins:wght@300;400;500;600;700&family=Rozha+One&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

:root {
  --maroon-deep: #5A0813;
  --maroon-royal: #7A0C1A;
  --maroon-crimson: #9B1B2B;
  --gold-primary: #D4AF37;
  --gold-light: #F7E49A;
  --gold-dark: #A67C1E;
  --cream-soft: #FDFBF7;
  --cream-card: #FFFDF9;
  --saffron: #FF7722;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #200508;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4AF37, #9B1B2B);
  border-radius: 6px;
  border: 2px solid #200508;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #FAF6EE;
  color: #261B1B;
  overflow-x: hidden;
}

.font-hindi-royal {
  font-family: 'Rozha One', 'Tiro Devanagari Hindi', serif;
}

.font-hindi-text {
  font-family: 'Tiro Devanagari Hindi', serif;
}

.font-serif-royal {
  font-family: 'Cinzel', 'Playfair Display', serif;
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #7A0C1A 0%, #3B0309 60%, #1A0104 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Diya Animation */
.diya-flame {
  width: 24px;
  height: 38px;
  background: linear-gradient(to bottom, #FFF, #FFE066, #FF9900, #FF3300);
  border-radius: 50% 50% 35% 35% / 70% 70% 30% 30%;
  animation: flicker 1.8s infinite alternate ease-in-out;
  filter: drop-shadow(0 0 16px rgba(255, 180, 0, 0.95)) drop-shadow(0 0 35px rgba(255, 120, 0, 0.6));
  transform-origin: bottom center;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-1.5deg); opacity: 0.95; }
  25% { transform: scale(1.06, 0.96) rotate(1.5deg); opacity: 1; }
  50% { transform: scale(0.96, 1.04) rotate(-2deg); opacity: 0.9; }
  75% { transform: scale(1.03, 0.98) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(-1deg); opacity: 0.95; }
}

.diya-base {
  width: 68px;
  height: 24px;
  background: linear-gradient(180deg, #E5A823 0%, #A26B14 100%);
  border-radius: 0 0 34px 34px;
  border-top: 3px solid #FFDF73;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  position: relative;
}

.diya-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 200, 50, 0.35) 0%, rgba(255, 140, 0, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 2.4s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: translateX(-50%) scale(0.85); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

/* Gold Shimmer Text */
.gold-shimmer-text {
  background: linear-gradient(90deg, #D4AF37 0%, #FFF3B0 30%, #D4AF37 60%, #FFDF73 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Festive Background Patterns */
.bg-festive-pattern {
  background-color: #FFFDF9;
  background-image: radial-gradient(#D4AF37 0.75px, transparent 0.75px), radial-gradient(#7A0C1A 0.75px, #FFFDF9 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.bg-maroon-pattern {
  background-color: #550711;
  background-image: radial-gradient(#D4AF37 0.6px, transparent 0.6px);
  background-size: 24px 24px;
}

/* Festive Golden Borders */
.golden-border-box {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 30px -10px rgba(122, 12, 26, 0.12), inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.golden-border-box::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  pointer-events: none;
  border-radius: inherit;
}

/* Floating animation */
@keyframes softFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-soft-float {
  animation: softFloat 4s ease-in-out infinite;
}

/* Golden Pulse Badge */
.pulse-badge {
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* Checkmark animation */
.custom-checkbox:checked {
  background-color: #7A0C1A;
  border-color: #D4AF37;
}

/* Modal animation */
.modal-enter {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}
.modal-enter-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}
.modal-exit-active {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 200ms ease-in, transform 200ms ease-in;
}

/* Print styles for order receipt */
@media print {
  body * {
    visibility: hidden;
  }
  #printableReceipt, #printableReceipt * {
    visibility: visible;
  }
  #printableReceipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: white !important;
    color: black !important;
  }
}
