/* ============================================================================
   ADARSH DIGITAL — FESTIVAL OVERLAY ENGINE CSS
   Refined, accessible, white-first compatible seasonal styling
   ============================================================================ */

:root {
  --fest-accent: #E31E24;
  --fest-secondary: #F59E0B;
  --fest-speed-mult: 1;
}

/* ─── Top Festival Announcement Strip ─────────────────────────────────────── */
.fest-announcement {
  position: relative;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 44px 9px 16px;
  background: linear-gradient(95deg, color-mix(in srgb, var(--fest-accent) 92%, #0F172A), color-mix(in srgb, var(--fest-secondary) 86%, #0F172A));
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  animation: festSlideDown 0.35s ease-out both;
}

.fest-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
}

.fest-announcement-badge {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px;
  object-fit: contain;
}

.fest-announcement-text {
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.fest-announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.fest-announcement-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.22);
}

.fest-announcement-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.fest-announcement-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* ─── Navbar Accent Ribbon & Brand Emblem ─────────────────────────────────── */
.fest-navbar-accent-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--fest-accent), var(--fest-secondary), var(--fest-accent));
  background-size: 200% 100%;
  opacity: 0.9;
  pointer-events: none;
  animation: festShimmer calc(6s / var(--fest-speed-mult)) linear infinite;
}

body[data-festival="republic-day"] .fest-navbar-accent-bar,
body[data-festival="independence-day"] .fest-navbar-accent-bar {
  background: linear-gradient(90deg, #FF9933 0%, #FF9933 32%, #E2E8F0 48%, #1E3A8A 50%, #E2E8F0 52%, #138808 68%, #138808 100%);
}

.fest-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fest-accent) 9%, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--fest-accent) 26%, #E2E8F0);
  vertical-align: middle;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fest-nav-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.fest-nav-badge-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fest-accent) 85%, #0F172A);
  line-height: 1;
}

/* ─── Ambient Background Glow Layer (Non-Intrusive) ───────────────────────── */
.fest-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 92% 14%, color-mix(in srgb, var(--fest-accent) 7%, transparent) 0%, transparent 42%),
    radial-gradient(circle at 8% 82%, color-mix(in srgb, var(--fest-secondary) 7%, transparent) 0%, transparent 44%);
}

/* ─── Hero Corner Decorative Motifs ───────────────────────────────────────── */
.fest-hero-art {
  position: absolute;
  top: 14px;
  width: clamp(82px, 8.5vw, 132px);
  height: auto;
  pointer-events: none;
  z-index: 2;
  opacity: 0.88;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.09));
  animation: festHeroFloat calc(6.5s / var(--fest-speed-mult)) ease-in-out infinite;
}

.fest-hero-art.left {
  left: 14px;
  transform-origin: top left;
}

.fest-hero-art.right {
  right: 14px;
  transform-origin: top right;
  animation-delay: -2.4s;
}

body[data-festival="diwali"] .fest-hero-art.left,
body[data-festival="diwali"] .fest-hero-art.right,
body[data-festival="christmas"] .fest-hero-art.right {
  transform-origin: top center;
  animation: festSway calc(5.8s / var(--fest-speed-mult)) ease-in-out infinite;
}

body[data-festival="republic-day"] .fest-hero-art.right,
body[data-festival="independence-day"] .fest-hero-art.left {
  opacity: 0.24;
  animation: festSlowSpin calc(36s / var(--fest-speed-mult)) linear infinite;
}

/* ─── Floating Particles Layer ────────────────────────────────────────────── */
.fest-floating-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 12;
}

.fest-floating-item {
  position: absolute;
  top: -64px;
  width: 26px;
  height: 26px;
  opacity: 0;
  will-change: transform, opacity;
  animation: festDriftDown var(--dur, 18s) linear var(--delay, 0s) infinite;
}

.fest-floating-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ─── Section Divider & Footer Emblem ─────────────────────────────────────── */
.fest-section-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 14px;
  max-width: 260px;
  pointer-events: none;
}

.fest-section-art::before,
.fest-section-art::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fest-accent) 45%, #CBD5E1), transparent);
}

.fest-section-art img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.88;
}

.fest-footer-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding-top: 6px;
  pointer-events: none;
}

.fest-footer-deco img {
  max-width: 190px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}

/* ─── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes festSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes festShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes festHeroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.02); }
}

@keyframes festSway {
  0%, 100% { transform: rotate(-2.5deg); }
  50%      { transform: rotate(2.5deg); }
}

@keyframes festSlowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes festDriftDown {
  0%   { transform: translate3d(0, -40px, 0) rotate(0deg) scale(0.85); opacity: 0; }
  12%  { opacity: var(--item-opacity, 0.42); }
  85%  { opacity: var(--item-opacity, 0.42); }
  100% { transform: translate3d(var(--drift-x, 28px), 108vh, 0) rotate(var(--spin-deg, 180deg)) scale(1); opacity: 0; }
}

/* ─── Responsive Safe Framing ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .fest-hero-art {
    width: 72px;
    opacity: 0.34;
    top: 8px;
  }
  .fest-nav-badge-label {
    display: none;
  }
}

@media (max-width: 640px) {
  .fest-announcement {
    font-size: 0.78rem;
    padding: 8px 36px 8px 12px;
  }
  .fest-hero-art {
    width: 54px;
    opacity: 0.22;
  }
  .fest-floating-item {
    width: 20px;
    height: 20px;
  }
}

/* ─── Accessibility: Respect Reduced Motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fest-announcement,
  .fest-navbar-accent-bar,
  .fest-hero-art,
  .fest-floating-item {
    animation: none !important;
  }
  .fest-floating-layer {
    display: none;
  }
}
