/* ==========================================================================
   SUPERHEROOO DYNAMIC FESTIVAL SYSTEM (CSS)
   Ultra-Responsive Fixed Top Banner & Simplified Hero Wish Badge
   ========================================================================== */

/* --- 1. FIXED TOP FESTIVAL BANNER --- */
.festival-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 42px;
  height: auto;
  z-index: 1001;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 14px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Independence Day & Republic Day (Prominent Tricolor) */
.festival-banner.festival-theme--independence,
.festival-banner.festival-theme--republic {
  background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
  color: #0A192F;
}

/* Navratri & Dussehra */
.festival-banner.festival-theme--navratri {
  background: linear-gradient(90deg, #FF6F00 0%, #FFD54F 50%, #E91E63 100%);
  color: #0F1932;
}

/* Diwali */
.festival-banner.festival-theme--diwali {
  background: linear-gradient(90deg, #1A0033 0%, #FFB300 50%, #800020 100%);
  color: #FFFFFF;
}

/* Holi */
.festival-banner.festival-theme--holi {
  background: linear-gradient(90deg, #FF4081 0%, #7C4DFF 50%, #00E676 100%);
  color: #FFFFFF;
}

/* --- DYNAMIC HEADER & PAGE OFFSET WHEN FESTIVAL BANNER IS ACTIVE --- */
body.has-festival-banner .header {
  top: 42px !important;
  transition: top 0.3s ease;
}

body.has-festival-banner .hero,
body.has-festival-banner .page-header,
body.has-festival-banner main {
  margin-top: 42px;
  transition: margin-top 0.3s ease;
}

/* --- BANNER CONTENT BADGE --- */
.festival-banner__content {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 4px 18px;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 153, 51, 0.4);
  max-width: 100%;
}

.festival-banner__flag {
  font-size: 1.2rem;
  flex-shrink: 0;
  animation: flagWave 2s ease-in-out infinite alternate;
}

.festival-banner__text {
  color: #0c2340;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.festival-banner__close {
  background: rgba(0, 0, 0, 0.12);
  border: none;
  color: #222;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  transition: all 0.2s ease;
  margin-left: 4px;
  flex-shrink: 0;
}

.festival-banner__close:hover {
  background: rgba(0, 0, 0, 0.25);
  color: #000;
}

/* --- 2. HERO SECTION FESTIVAL BADGE --- */
.festival-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.22) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(19, 136, 8, 0.22) 100%);
  border: 1.5px solid rgba(255, 153, 51, 0.6);
  padding: 6px 18px;
  border-radius: 30px;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.25);
  backdrop-filter: blur(12px);
  animation: pulseGlow 3s ease-in-out infinite;
}

.festival-hero-badge span.tricolor-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.tricolor-dot.saffron { background: #FF9933; }
.tricolor-dot.white { background: #FFFFFF; }
.tricolor-dot.green { background: #138808; }

/* --- 3. ANIMATIONS --- */
@keyframes flagWave {
  0% { transform: rotate(-5deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.12); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(255, 153, 51, 0.25); }
  50% { box-shadow: 0 6px 28px rgba(19, 136, 8, 0.35); }
}

/* --- 4. MOBILE RESPONSIVE RULES --- */
@media (max-width: 640px) {
  .festival-banner {
    min-height: 38px;
    padding: 4px 8px;
  }
  body.has-festival-banner .header {
    top: 38px !important;
  }
  body.has-festival-banner .hero,
  body.has-festival-banner .page-header,
  body.has-festival-banner main {
    margin-top: 38px;
  }
  .festival-banner__content {
    padding: 3px 10px;
    gap: 6px;
  }
  .festival-banner__text {
    font-size: 0.76rem;
    line-height: 1.25;
  }
  .festival-banner__flag {
    font-size: 1.1rem;
  }
  .festival-hero-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
}
