/* ============================================================
   ZoomCoupon — Hero "Top Stores Spotlight" carousel
   Stacked 3D card interaction, original ZoomCoupon dark-glass
   styling (matches the existing hero, not any third-party site).
   ============================================================ */

.hero-spotlight{
  --stage-h: 430px;
  position:relative;width:100%;outline:none;
}
.hero-spotlight:focus-visible{box-shadow:0 0 0 3px rgba(59,130,246,.55);border-radius:20px}

.hero-spotlight__stage{position:relative;height:var(--stage-h)}

/* ---------- Track + stacked cards ---------- */
.hero-spotlight__track{position:relative;width:100%;height:100%;perspective:1400px}
.hero-spotlight__card{
  position:absolute;top:0;left:50%;width:min(72%,272px);height:100%;
  transform:translate(-50%,0) translateX(0) scale(1);
  border-radius:20px;overflow:hidden;
  background:rgba(15,23,42,.6);border:1px solid rgba(255,255,255,.14);
  box-shadow:0 24px 48px rgba(2,6,16,.5);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  display:flex;flex-direction:column;
  opacity:0;filter:blur(6px);z-index:1;pointer-events:none;
  transition:transform .55s cubic-bezier(.22,.61,.36,1),opacity .55s ease,filter .55s ease;
}
/* Visible-by-default fallback for the first card so nothing flashes blank
   before the JS enhancement attaches (data-pos rules below win once set). */
.hero-spotlight__card[data-index="0"]{opacity:1;filter:blur(0);z-index:5;pointer-events:auto}
.hero-spotlight__card[data-pos="0"]{transform:translate(-50%,0) translateX(0) scale(1);opacity:1;filter:blur(0);z-index:5;pointer-events:auto}
.hero-spotlight__card[data-pos="-1"]{transform:translate(-50%,0) translateX(-64%) scale(.88);opacity:.55;filter:blur(1.5px);z-index:4}
.hero-spotlight__card[data-pos="1"]{transform:translate(-50%,0) translateX(64%) scale(.88);opacity:.55;filter:blur(1.5px);z-index:4}
.hero-spotlight__card[data-pos="-2"]{transform:translate(-50%,0) translateX(-112%) scale(.78);opacity:.22;filter:blur(3px);z-index:3}
.hero-spotlight__card[data-pos="2"]{transform:translate(-50%,0) translateX(112%) scale(.78);opacity:.22;filter:blur(3px);z-index:3}
.hero-spotlight__card[data-pos="far"]{transform:translate(-50%,0) translateX(0) scale(.6);opacity:0;filter:blur(4px);z-index:0}
.hero-spotlight__card[data-pos="-1"],.hero-spotlight__card[data-pos="1"],
.hero-spotlight__card[data-pos="-2"],.hero-spotlight__card[data-pos="2"]{cursor:pointer;pointer-events:auto}

.hero-spotlight__media{
  position:relative;flex:0 0 46%;display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(120% 140% at 28% 15%, color-mix(in srgb, var(--tile-tint) 55%, transparent) 0%, transparent 62%),
    linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,0) 45%),
    #0B1424;
}
.hero-spotlight__logo{
  width:88px;height:88px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 24px rgba(0,0,0,.35);border:3px solid rgba(255,255,255,.9);overflow:hidden;
}
.hero-spotlight__logo .brand-logo{width:60px !important;height:60px !important;object-fit:contain}
.hero-spotlight__logo .brand-logo--letter{width:60px !important;height:60px !important;font-size:1.6rem;border-radius:50%}
.hero-spotlight__verified{
  position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;gap:.35em;
  font-size:.72rem;font-weight:800;color:#0B3A22;background:#5FE3A1;
  padding:.35em .65em;border-radius:999px;box-shadow:0 6px 14px rgba(0,0,0,.25);
}
.hero-spotlight__verified svg{flex:0 0 auto}
.hero-spotlight__verified--muted{color:#1a2942;background:#C9D3E4}

.hero-spotlight__body{flex:1;display:flex;flex-direction:column;padding:16px 18px 18px;min-height:0}
.hero-spotlight__name{color:#fff;font-size:1.08rem;font-weight:800;margin:0 0 2px;letter-spacing:-.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-spotlight__cat{color:#8FA0BC;font-size:.8rem;font-weight:600;margin:0 0 10px}
.hero-spotlight__meta{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.hero-spotlight__chip{
  font-size:.72rem;font-weight:700;color:#E5EAF3;background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:.4em .75em;white-space:nowrap;
}
.hero-spotlight__chip--offer{color:#0B1424;background:#3B82F6;border-color:transparent}
.hero-spotlight__cta{margin-top:auto;font-size:.9rem;padding:.7em 1em;border-radius:11px}

/* ---------- Arrows ---------- */
.hero-spotlight__arrow{
  position:absolute;top:50%;translate:0 -50%;width:44px;height:44px;border-radius:50%;z-index:6;
  display:flex;align-items:center;justify-content:center;color:#fff;
  background:rgba(15,23,42,.65);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(6px);
  cursor:pointer;transition:background .15s,border-color .15s,transform .15s;
}
.hero-spotlight__arrow:hover{background:rgba(37,99,235,.5);border-color:rgba(59,130,246,.6)}
.hero-spotlight__arrow:active{transform:translateY(-50%) scale(.94)}
.hero-spotlight__arrow--prev{left:-6px}
.hero-spotlight__arrow--next{right:-6px}

/* ---------- Dots ---------- */
.hero-spotlight__dots{display:flex;justify-content:center;gap:7px;margin-top:18px}
.hero-spotlight__dot{
  width:7px;height:7px;padding:0;border-radius:50%;border:0;background:rgba(255,255,255,.22);
  cursor:pointer;transition:background .2s,transform .2s;
}
.hero-spotlight__dot.is-active{background:#3B82F6;transform:scale(1.35)}
.hero-spotlight__dot:hover{background:rgba(255,255,255,.5)}

@media (prefers-reduced-motion: reduce){
  .hero-spotlight__card{transition:none}
}

@media (max-width:1080px){
  .hero-spotlight{--stage-h:400px}
  .hero-spotlight__card{width:min(74%,252px)}
}

@media (max-width:860px){
  .hero-spotlight{--stage-h:420px;max-width:420px;margin-inline:auto}
  .hero-spotlight__card{width:min(66%,258px)}
}

@media (max-width:560px){
  .hero-spotlight{--stage-h:390px}
  .hero-spotlight__card{width:min(64%,220px)}
  .hero-spotlight__logo{width:72px;height:72px}
  .hero-spotlight__logo .brand-logo,.hero-spotlight__logo .brand-logo--letter{width:48px !important;height:48px !important}
  .hero-spotlight__arrow{width:38px;height:38px}
  .hero-spotlight__arrow--prev{left:-2px}
  .hero-spotlight__arrow--next{right:-2px}
  .hero-spotlight__card[data-pos="-1"]{transform:translate(-50%,0) translateX(-58%) scale(.86)}
  .hero-spotlight__card[data-pos="1"]{transform:translate(-50%,0) translateX(58%) scale(.86)}
  .hero-spotlight__card[data-pos="-2"],.hero-spotlight__card[data-pos="2"]{opacity:0}
}
