/**
 * Global Diwali Festive Experience Stylesheet
 * Reusable, High-Performance, Accessible
 * Theme: Shreeji Properties
 */

/* ==========================================================================
   1. FAIRY LIGHTS STRING (HORIZONTAL RUN ACROSS TOP OF ALL PAGES)
   ========================================================================== */
.diwali-lights-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  pointer-events: none;
  height: 28px;
  overflow: visible;
}

.diwali-wire {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-image: radial-gradient(ellipse at center, rgba(214, 179, 106, 0.45) 0%, rgba(24, 42, 67, 0.2) 70%);
  border-bottom: 1.5px solid rgba(214, 179, 106, 0.55);
  box-shadow: 0 1px 6px rgba(214, 179, 106, 0.3);
}

.diwali-bulbs-track {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  width: 100%;
  padding: 0 10px;
}

.diwali-bulb {
  position: relative;
  width: 10px;
  height: 16px;
  border-radius: 50% 50% 60% 60% / 40% 40% 70% 70%;
  margin-top: 5px;
  transform-origin: top center;
  transition: transform 0.3s ease;
}

.diwali-bulb::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #B88B3D;
  border-radius: 1px;
}

/* Warm Luxury Gold Bulb */
.bulb-gold {
  background: radial-gradient(circle at 35% 35%, #FFF7D6, #D6B36A 60%, #9E7D1B 100%);
  box-shadow: 0 2px 14px 2px rgba(214, 179, 106, 0.75), 0 0 22px 4px rgba(214, 179, 106, 0.4);
  animation: bulbGlow1 2.2s infinite ease-in-out;
}

/* Champagne Warm Bulb */
.bulb-champagne {
  background: radial-gradient(circle at 35% 35%, #FFFFFF, #E9D7A5 65%, #C29F2F 100%);
  box-shadow: 0 2px 12px 2px rgba(233, 215, 165, 0.8), 0 0 20px 4px rgba(233, 215, 165, 0.4);
  animation: bulbGlow2 2.7s infinite ease-in-out;
}

/* Amber Festive Bulb */
.bulb-amber {
  background: radial-gradient(circle at 35% 35%, #FFF0C2, #E5A83B 60%, #9B5D0F 100%);
  box-shadow: 0 2px 15px 3px rgba(229, 168, 59, 0.75), 0 0 24px 5px rgba(229, 168, 59, 0.35);
  animation: bulbGlow3 2s infinite ease-in-out;
}

/* Ruby Royal Festive Accent Bulb */
.bulb-ruby {
  background: radial-gradient(circle at 35% 35%, #FFE0E0, #D94848 65%, #8B1E1E 100%);
  box-shadow: 0 2px 12px 2px rgba(217, 72, 72, 0.65), 0 0 18px 3px rgba(217, 72, 72, 0.3);
  animation: bulbGlow1 2.5s infinite ease-in-out 0.5s;
}

@keyframes bulbGlow1 {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.35); transform: scale(1.05); }
}

@keyframes bulbGlow2 {
  0%, 100% { opacity: 0.9; filter: brightness(1.2); }
  50% { opacity: 0.75; filter: brightness(0.9); transform: scale(0.97); }
}

@keyframes bulbGlow3 {
  0%, 100% { opacity: 0.75; filter: brightness(0.95); }
  50% { opacity: 1; filter: brightness(1.4); transform: scale(1.08); }
}

/* ==========================================================================
   2. ELEGANT HAPPY DIWALI BANNER & GREETING CARD
   ========================================================================== */
.diwali-banner-ribbon {
  background: linear-gradient(135deg, #101B2C 0%, #182A43 50%, #101B2C 100%);
  border-bottom: 1px solid rgba(214, 179, 106, 0.35);
  border-top: 1px solid rgba(214, 179, 106, 0.2);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
}

.diwali-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.diwali-greeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D6B36A;
  background: rgba(214, 179, 106, 0.12);
  border: 1px solid rgba(214, 179, 106, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.diwali-hindi-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #E9D7A5;
  text-shadow: 0 0 12px rgba(233, 215, 165, 0.4);
}

.diwali-message-text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #E2E8F0;
}

.diwali-sign-off {
  font-size: 0.75rem;
  color: #D6B36A;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   3. TRADITIONAL DIYA ILLUSTRATION WITH FLICKERING FLAME
   ========================================================================== */
.diya-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.diya-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(214, 179, 106, 0.4));
}

.flame-element {
  transform-origin: 50% 85%;
  animation: diyaFlameFlicker 1.8s infinite ease-in-out;
}

@keyframes diyaFlameFlicker {
  0%, 100% {
    transform: scale(1) rotate(-1deg);
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(255, 190, 40, 0.9));
  }
  25% {
    transform: scale(1.08, 0.95) rotate(2deg);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 210, 80, 1));
  }
  50% {
    transform: scale(0.95, 1.05) rotate(-2deg);
    opacity: 0.9;
    filter: drop-shadow(0 0 7px rgba(255, 170, 30, 0.85));
  }
  75% {
    transform: scale(1.05, 0.98) rotate(1.5deg);
    opacity: 1;
    filter: drop-shadow(0 0 11px rgba(255, 200, 60, 0.95));
  }
}

/* ==========================================================================
   4. FESTIVE SPARKLES & SUBTLE CELEBRATORY FIREWORKS
   ========================================================================== */
.festive-sparkle {
  position: absolute;
  pointer-events: none;
  width: 4px;
  height: 4px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px #D6B36A;
  animation: sparkleTwinkle 3s infinite ease-in-out;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) translateY(0); }
  50% { opacity: 0.85; transform: scale(1.2) translateY(-6px); }
}

/* Pure CSS lightweight ambient background firework bursts */
.festive-firework-burst {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.burst-gold-1 {
  top: 15%;
  left: 8%;
  background: radial-gradient(circle, rgba(214, 179, 106, 0.25) 0%, rgba(214, 179, 106, 0.05) 45%, transparent 70%);
  animation: fireworkPop 4s infinite ease-out 1s;
}

.burst-gold-2 {
  top: 25%;
  right: 10%;
  background: radial-gradient(circle, rgba(233, 215, 165, 0.28) 0%, rgba(233, 215, 165, 0.05) 50%, transparent 70%);
  animation: fireworkPop 4.5s infinite ease-out 2.2s;
}

@keyframes fireworkPop {
  0% { transform: scale(0.2); opacity: 0; }
  20% { opacity: 0.8; }
  60% { transform: scale(1.3); opacity: 0.3; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   5. DISMISS / COLLAPSE BUTTON
   ========================================================================== */
.diwali-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 179, 106, 0.25);
  color: #D6B36A;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.diwali-close-btn:hover {
  background: rgba(214, 179, 106, 0.25);
  color: #FFFFFF;
  transform: scale(1.08);
}

/* ==========================================================================
   6. LIGHT THEME POLISH & COMPATIBILITY
   ========================================================================== */
html.light .diwali-banner-ribbon {
  background: linear-gradient(135deg, #101B2C 0%, #182A43 70%, #101B2C 100%);
  border-bottom: 2px solid #D6B36A;
  box-shadow: 0 4px 18px rgba(16, 27, 44, 0.2);
}

html.light .diwali-wire {
  border-bottom: 1.5px solid rgba(184, 139, 61, 0.65);
}

/* ==========================================================================
   7. ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .diwali-bulb,
  .flame-element,
  .festive-sparkle,
  .festive-firework-burst {
    animation: none !important;
    transform: none !important;
  }
  .diwali-bulb {
    opacity: 0.9 !important;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .diwali-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }
  .diwali-greeting-badge {
    font-size: 0.65rem;
  }
  .diwali-hindi-title {
    font-size: 1rem;
  }
  .diwali-message-text {
    font-size: 0.725rem;
  }
  .diwali-bulb {
    width: 7px;
    height: 12px;
  }
}

/* ==========================================================================
   7. INTERACTIVE USER-CLICK FIREWORKS CANVAS
   ========================================================================== */
#diwali-fireworks-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 999999;
}
@media (prefers-reduced-motion: reduce) {
	#diwali-fireworks-canvas {
		display: none !important;
	}
}