/* ============================================================
   Diwali Festival Decor — strip + corner diyas & fairy lights
   Safe to delete after festival season.
   ============================================================ */

/* ===== Top festive strip ===== */
.diwali-strip{
  position:relative;
  background:
    radial-gradient(ellipse 60% 120% at 50% 120%, rgba(255, 180, 0, .35), transparent 60%),
    radial-gradient(ellipse 40% 100% at 12% -20%, rgba(255, 94, 58, .35), transparent 60%),
    radial-gradient(ellipse 40% 100% at 88% -20%, rgba(255, 94, 58, .35), transparent 60%),
    linear-gradient(180deg, #33082a 0%, #4a0f33 50%, #33082a 100%);
  border-bottom: 2px solid #ffd400;
  border-top: 1px solid rgba(255, 212, 0, .35);
  overflow: hidden;
}
.diwali-strip::before{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.5px);
  background-size: 46px 24px;
  background-position: 8px 4px;
  opacity: .35;
  animation: dwStarTwinkle 2.4s ease-in-out infinite alternate;
  pointer-events:none;
}
.diwali-strip__inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:5px 12px;
  position:relative;
}
.diwali-strip__text{ text-align:center; line-height:1.15; }
.diwali-strip__title{
  margin:0;
  font-weight:900;
  font-size:15px;
  letter-spacing:.22em;
  text-transform:uppercase;
  background: linear-gradient(180deg, #fff8c4 0%, #ffd400 35%, #ffbf29 55%, #ff9226 78%, #ffd400 100%);
  background-size:100% 220%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:#ffd400;
  filter: drop-shadow(0 0 10px rgba(255, 212, 0, .45));
  animation: dwTitleShine 3.2s ease-in-out infinite alternate;
}
.diwali-strip__sub{
  margin:2px 0 0;
  font-size:10.5px;
  font-weight:700;
  color:#ffe9a8;
  letter-spacing:.05em;
  text-shadow: 0 0 8px rgba(255, 214, 102, .5);
}
.tw{
  display:inline-block;
  color:#ffea00;
  animation: dwStarTwinkle 1.3s ease-in-out infinite alternate;
  -webkit-text-fill-color:#ffea00; /* keep sparkles solid */
}
.tw--d{ animation-delay:.65s; }

/* ===== CSS diya (used in the strip) ===== */
.diya{
  position:relative;
  width:44px;
  height:30px;
  flex:0 0 auto;
}
.diya__base{
  position:absolute;
  bottom:0; left:50%;
  width:42px; height:13px;
  transform:translateX(-50%);
  background: radial-gradient(ellipse 50% 90% at 50% 20%, #ffcf6b 0%, #f59f00 35%, #d9480f 75%, #8c2f0b 100%);
  border:1px solid #5c1f05;
  border-radius: 6px 6px 50% 50% / 4px 4px 100% 100%;
  box-shadow: 0 3px 6px rgba(0,0,0,.55), inset 0 -2px 4px rgba(0,0,0,.35), 0 0 18px rgba(255, 193, 69, .35);
}
.diya__base::after{
  content:"";
  position:absolute; left:20%; right:20%; bottom:2px; height:3px;
  border-radius:999px;
  background: rgba(92, 31, 5, .55);
}
.diya__flame{
  position:absolute;
  bottom:11px; left:50%;
  width:12px; height:17px;
  margin-left:-6px;
  background: radial-gradient(circle at 50% 72%, #fffbe0 0%, #ffe066 35%, #ffc247 60%, #ff922b 85%, #e8590c 100%);
  border-radius: 50% 50% 50% 50% / 62% 62% 42% 42%;
  transform-origin: 50% 90%;
  animation: dwFlameFlick .42s ease-in-out infinite alternate;
  box-shadow: 0 0 14px 6px rgba(255, 199, 84, .75), 0 0 34px 14px rgba(255, 146, 43, .35);
}
.diya__flame::after{
  content:"";
  position:absolute;
  left:50%; bottom:1px;
  width:4px; height:7px;
  margin-left:-2px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 80%, #fffdf0, #ffd43b);
}

/* ===== Corner decorations (fixed, both sides) ===== */
.diwali-corner{
  position:fixed;
  top:0;
  width:96px;
  height:150px;
  z-index:45;
  pointer-events:none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}
.diwali-corner--left{ left:2px; }
.diwali-corner--right{ right:2px; transform: scaleX(-1); }
.diwali-corner::before{
  content:"";
  position:absolute;
  top:-30px; width:120px; height:120px;
  background: radial-gradient(circle, rgba(255, 196, 66, .5) 0%, rgba(255, 146, 43, .18) 45%, transparent 75%);
  border-radius:50%;
}
.diwali-corner--left::before{ left:-30px; }
.diwali-corner--right::before{ right:-30px; }

/* SVG element styles */
.dw-garland{ stroke:#2b8a3e; stroke-width:2.6; fill:none; stroke-linecap:round; }
.dw-marigold{ stroke:#d9480f; stroke-width:1; }
.dw-marigold--a{ fill:#ff922b; }
.dw-marigold--b{ fill:#ffa94d; }
.dw-marigold--c{ fill:#ffd43b; stroke:#e8890c; stroke-width:.6; }
.dw-leaf{ fill:#37b24d; }
.dw-chain{ stroke:#8d6e63; stroke-width:1.4; stroke-dasharray:3 3; }
.dw-bulb{
  stroke: rgba(0,0,0,.25);
  stroke-width:.5;
  animation: dwBulbTwinkle 1.6s ease-in-out infinite alternate;
}
.dw-bulb--red{ fill:#ff6b6b; animation-delay:0s; filter: drop-shadow(0 0 4px #ff6b6b); }
.dw-bulb--green{ fill:#69db7c; animation-delay:.4s; filter: drop-shadow(0 0 4px #69db7c); }
.dw-bulb--yellow{ fill:#ffd43b; animation-delay:.8s; filter: drop-shadow(0 0 4px #ffd43b); }
.dw-bulb--blue{ fill:#74c0fc; animation-delay:1.1s; filter: drop-shadow(0 0 4px #74c0fc); }
.dw-bulb--pink{ fill:#faa2c1; animation-delay:.2s; filter: drop-shadow(0 0 4px #faa2c1); }
.dw-flame{
  fill:#ffd43b;
  transform-origin:50% 100%;
  animation: dwFlameFlick .45s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 3px #ffa94d) drop-shadow(0 0 6px #ff922b);
}
.dw-diya-base{ fill:#c2410c; stroke:#7c2d12; stroke-width:1.2; }
.dw-diya-glow{ fill:#ffd43b; opacity:.9; }

/* ===== Keyframes ===== */
@keyframes dwFlameFlick{
  0%   { transform: scaleY(.92) scaleX(1.05) rotate(-2deg); }
  35%  { transform: scaleY(1.06) scaleX(.95) rotate(1.5deg); }
  65%  { transform: scaleY(.95) scaleX(1.03) rotate(-1deg); }
  100% { transform: scaleY(1.08) scaleX(.93) rotate(2deg); }
}
@keyframes dwStarTwinkle{
  0%, 100% { opacity: .25; }
  50%      { opacity: 1; }
}
@keyframes dwTitleShine{
  0%   { background-position: 50% 0%; }
  100% { background-position: 50% 60%; }
}
@keyframes dwBulbTwinkle{
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

/* ===== Mobile adjustments ===== */
@media (max-width: 640px){
  .diwali-strip__inner{ gap:10px; padding:4px 8px; }
  .diya{ width:32px; height:22px; }
  .diya__base{ width:32px; height:10px; }
  .diya__flame{ width:9px; height:12px; bottom:9px; margin-left:-4.5px; }
  .diwali-strip__title{ font-size:11px; letter-spacing:.14em; }
  .diwali-strip__sub{ font-size:8.5px; }
  .diwali-corner{ width:60px; height:96px; }
}

/* ===== Reduced motion: freeze everything ===== */
@media (prefers-reduced-motion: reduce){
  .diwali-strip::before,
  .diwali-strip__title,
  .tw,
  .diya__flame,
  .dw-flame,
  .dw-bulb{ animation: none !important; }
}

/* ===== Hanging sway for the diyas ===== */
.dw-sway{ animation: dwSway 3.6s ease-in-out infinite alternate; }
.dw-sway--2{ animation-delay:.6s; }
@keyframes dwSway{
  from{ transform: rotate(-2.4deg); }
  to  { transform: rotate(2.4deg); }
}
@media (prefers-reduced-motion: reduce){
  .dw-sway{ animation:none !important; }
}
