/* =========================================================
   FESTIVE EXTRAS (Diwali lights, drifting sparkles, offer pop-up)
   Switched on from admin.html → Offers. Nothing here shows
   unless an offer asks for it.
   ========================================================= */

/* ---- string lights hanging from the announcement bar ---- */
.announce-bar { position: relative; }
.festive-lights {
  position: absolute; left: 0; right: 0; bottom: -14px;
  height: 22px; display: flex; justify-content: space-around; align-items: flex-start;
  pointer-events: none; z-index: 101; overflow: hidden;
}
.festive-lights::before { /* the wire */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, #7a5a22, #c9a15b, #7a5a22);
}
.festive-bulb {
  position: relative; top: 1px; width: 8px; height: 12px; border-radius: 50% 50% 55% 55%;
  background: var(--c); box-shadow: 0 0 8px 2px var(--c);
  animation: bulbTwinkle 2.4s ease-in-out infinite;
  animation-delay: var(--d);
}
.festive-bulb::before { /* little cap */
  content: ""; position: absolute; left: 50%; top: -3px; width: 4px; height: 4px;
  transform: translateX(-50%); background: #7a5a22; border-radius: 1px;
}
@keyframes bulbTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}

/* ---- drifting sparkles ---- */
.festive-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 50;
}

/* ---- offer pop-up ---- */
.festive-overlay {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(31, 1, 2, 0.72);
  animation: festiveFade 0.35s ease;
}
.festive-overlay[hidden] { display: none; }
.festive-card {
  position: relative; width: min(440px, 100%); text-align: center;
  padding: 34px 28px 28px; border-radius: 10px; color: var(--ivory);
  background: radial-gradient(ellipse at top, var(--maroon-700) 0%, var(--maroon-900) 55%, var(--maroon-950) 100%);
  border: 1px solid var(--gold); box-shadow: 0 0 0 5px rgba(201, 161, 91, 0.18), 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  animation: festivePop 0.5s cubic-bezier(0.2, 1.2, 0.4, 1);
  overflow: hidden;
}
.festive-card::before { /* soft golden glow behind the diya */
  content: ""; position: absolute; top: -60px; left: 50%; width: 260px; height: 200px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 190, 90, 0.45), transparent);
  animation: festiveGlow 3s ease-in-out infinite;
}
.festive-close {
  position: absolute; top: 8px; right: 12px; z-index: 2; background: none; border: 0;
  color: var(--gold-light); font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.festive-diya { position: relative; width: 92px; height: 64px; margin: 0 auto 6px; }
.festive-diya .flame { transform-origin: 50% 100%; animation: flameFlicker 1.3s ease-in-out infinite; }
.festive-diya .flame-inner { transform-origin: 50% 100%; animation: flameFlicker 0.9s ease-in-out infinite reverse; }
.festive-kicker { position: relative; font-family: var(--font-script); font-size: 1.7rem; color: var(--gold-light); margin: 0; }
.festive-title { position: relative; font-size: clamp(1.7rem, 6vw, 2.2rem); color: var(--white); margin: 2px 0 10px; }
.festive-details { position: relative; font-size: 1.15rem; line-height: 1.5; margin: 0 0 8px; color: var(--ivory); }
.festive-till { position: relative; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); margin: 0 0 20px; }
.festive-actions { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.festive-cta {
  display: inline-block; padding: 13px 34px; border-radius: 999px; cursor: pointer; border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--maroon-950);
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.04em;
  box-shadow: 0 8px 22px -8px rgba(201, 161, 91, 0.8); transition: var(--transition);
}
.festive-cta:hover { transform: translateY(-2px); }
.festive-later { background: none; border: 0; color: var(--gold-light); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.95rem; }

@keyframes festiveFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes festivePop { from { opacity: 0; transform: translateY(18px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes festiveGlow { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes flameFlicker {
  0%, 100% { transform: scale(1, 1) rotate(-1.5deg); }
  35% { transform: scale(0.94, 1.08) rotate(2deg); }
  65% { transform: scale(1.04, 0.95) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .festive-bulb, .festive-card, .festive-card::before, .festive-overlay,
  .festive-diya .flame, .festive-diya .flame-inner { animation: none; }
}

/* =========================================================
   DIWALI THEME — opening show, home page decor, crackers button
   (brand maroon + gold kept throughout)
   ========================================================= */

/* ---- opening fireworks ---- */
.festive-intro {
  position: fixed; inset: 0; z-index: 1300; cursor: pointer;
  background: radial-gradient(ellipse at 50% 30%, var(--maroon-800) 0%, var(--maroon-950) 70%);
  display: flex; align-items: center; justify-content: center;
  animation: festiveFade 0.4s ease;
  transition: opacity 0.6s ease;
}
.festive-intro.is-leaving { opacity: 0; pointer-events: none; }
.festive-intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.festive-intro-text { position: relative; text-align: center; padding: 0 24px; pointer-events: none; animation: introText 1.2s 0.5s ease both; }
.festive-intro-kicker {
  font-family: var(--font-script); color: var(--gold-light); margin: 0 0 10px;
  font-size: clamp(2.6rem, 9vw, 5rem); text-shadow: 0 0 28px rgba(255, 170, 60, 0.55);
}
.festive-intro-sub { color: var(--ivory); font-size: clamp(1rem, 3.4vw, 1.3rem); letter-spacing: 0.04em; margin: 0; }
.festive-intro-skip {
  position: absolute; right: 18px; bottom: 22px; z-index: 2;
  background: rgba(31, 1, 2, 0.5); color: var(--gold-light); border: 1px solid var(--gold); border-radius: 999px;
  padding: 9px 20px; font-family: var(--font-display); font-size: 0.9rem; cursor: pointer;
}
.festive-intro-skip:hover { background: var(--gold); color: var(--maroon-950); }
@keyframes introText { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---- fireworks over the page (button) ---- */
.festive-show-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 900; }
.festive-crackers-btn {
  position: fixed; left: 18px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  background: var(--maroon-900); color: var(--gold-light); border: 1px solid var(--gold);
  font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.03em;
  box-shadow: 0 12px 26px -10px rgba(37, 7, 9, 0.7);
  transition: var(--transition);
}
.festive-crackers-btn:hover { background: var(--gold); color: var(--maroon-950); }
.festive-crackers-btn:disabled { opacity: 0.65; cursor: default; }
.festive-crackers-btn span { color: #ffb347; }
.festive-crackers-btn:hover span { color: var(--maroon-950); }

/* ---- home page decor ---- */
.festive-diwali .hero {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 160, 50, 0.16), transparent 55%),
    radial-gradient(ellipse at top, var(--maroon-800) 0%, var(--maroon-950) 65%);
}
.festive-hero { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.festive-swag-wrap { position: absolute; left: 0; right: 0; top: 0; height: 60px; }
.festive-swag { position: absolute; left: 0; top: 0; }
.festive-bulb.festive-swag-bulb { position: absolute; }

.festive-diya-row { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; }
.festive-diya-sm { position: absolute; display: block; aspect-ratio: 4 / 3; }
.festive-diya-sm::before { /* warm glow around each diya */
  content: ""; position: absolute; left: 50%; top: -30%; width: 180%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 170, 60, 0.4), transparent);
  animation: festiveGlow 2.6s ease-in-out infinite; animation-delay: var(--d);
}
.festive-diya-sm svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.festive-diya-sm .flame, .festive-diya-sm .flame-inner { transform-box: fill-box; transform-origin: 50% 100%; animation: flameFlicker 1.3s ease-in-out infinite; animation-delay: var(--d); }
.festive-diya-sm .flame-inner { animation-duration: 0.9s; animation-direction: reverse; }

.festive-lantern { position: absolute; top: 0; width: 64px; transform-origin: 50% 0; animation: lanternSwing 4.5s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255, 170, 60, 0.55)); }
.festive-lantern svg { display: block; width: 100%; height: auto; }
.festive-lantern-l { left: 5%; }
.festive-lantern-r { right: 5%; animation-delay: -2.2s; }
@keyframes lanternSwing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
@media (max-width: 600px) { .festive-lantern { width: 42px; } .festive-crackers-btn { padding: 9px 16px; font-size: 0.82rem; left: 12px; bottom: 16px; } }

@media (prefers-reduced-motion: reduce) {
  .festive-lantern, .festive-diya-sm::before, .festive-diya-sm .flame, .festive-diya-sm .flame-inner, .festive-intro, .festive-intro-text { animation: none; }
}

/* ---- clearer numerals: the body font draws small old-style digits ---- */
body { font-variant-numeric: lining-nums; }
.announce-bar { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.06em; }
.festive-till { font-family: var(--font-display); }

/* =========================================================
   BRIGHTER STRING LIGHTS + ORNATE DIYAS (v2)
   ========================================================= */
.festive-swag-wrap { height: 80px; }
.festive-bulb.festive-swag-bulb, .festive-bulb.festive-strand-bulb {
  position: absolute; width: 12px; height: 17px;
  background: radial-gradient(circle at 50% 35%, #fffdf2 0%, var(--c) 55%, var(--c) 100%);
  box-shadow: 0 0 10px 3px var(--c), 0 0 26px 8px rgba(255, 190, 90, 0.45);
}
.festive-bulb.festive-swag-bulb::before, .festive-bulb.festive-strand-bulb::before { top: -4px; width: 6px; height: 5px; background: #6b4c1a; }
.festive-bulb.festive-strand-bulb { left: -5px; }

.festive-curtain { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.festive-strand { position: absolute; top: 0; width: 2px; }
.festive-strand i { position: absolute; left: 0; top: 0; bottom: 0; width: 1.6px; background: linear-gradient(#6b4c1a, rgba(107, 76, 26, 0.5)); }

.festive-bigdiya { display: none; position: absolute; bottom: 104px; width: 124px; filter: drop-shadow(0 0 22px rgba(255, 170, 60, 0.5)); }
.festive-bigdiya svg { display: block; width: 100%; height: auto; overflow: visible; }
.festive-bigdiya .flame, .festive-bigdiya .flame-inner { transform-box: fill-box; transform-origin: 50% 100%; animation: flameFlicker 1.3s ease-in-out infinite; }
.festive-bigdiya .flame-inner { animation-duration: 0.9s; animation-direction: reverse; }
.festive-bigdiya-l { left: 9%; }
.festive-bigdiya-r { right: 9%; }
@media (min-width: 1100px) { .festive-bigdiya { display: block; } .festive-lantern-l { left: 14%; } .festive-lantern-r { right: 14%; } }
@media (max-width: 600px) { .festive-lantern { display: none; } }

.festive-card .festive-diya { width: 150px; height: auto; margin: 0 auto 4px; }
.festive-card .festive-diya svg { display: block; width: 100%; height: auto; }
.festive-card .festive-diya .flame, .festive-card .festive-diya .flame-inner { transform-box: fill-box; transform-origin: 50% 100%; animation: flameFlicker 1.3s ease-in-out infinite; }
.festive-card .festive-diya .flame-inner { animation-duration: 0.9s; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .festive-bigdiya .flame, .festive-bigdiya .flame-inner, .festive-card .festive-diya .flame, .festive-card .festive-diya .flame-inner { animation: none; } }
