/* WhereTooEat - FEATURED RESTAURANTS visual refinement (Daniel spec t234u, 2026-10-06).
   VISUAL ONLY: no data / Atlas / map / carousel / profile logic. Scope = #discFeatured only.

   2026-10-06 (pass 3, Daniel): "remove any overlay or any image from this section".
   The section paints NOTHING of its own: no photo, no overlay, no vignette, no base colour, no gradient.
   The former background layer (.wte-featured-bg + ::before photo + ::after overlay) and its markup hook are gone;
   the image files stay unreferenced in assets/featured/ for an easy undo.
   What shows through is the page itself: the #discoveryStack::before gradient (explore-redesign-20261001.css)
   over the html/body colour - neither is a Featured rule.

   2026-10-06 (pass 4, Daniel): "Extend the footer fire video up behind Featured too, no overlay".
   js/footer-fire-8765.js now anchors --wte-fire-reach at the top of #discFeatured, so .wte-fire-layer covers
   Featured + Newest + footer as ONE video. Nothing in this file paints on the video: Featured is transparent,
   its cards/arrows are tint-only (no backdrop blur, no darkening drop shadow), text is readable via text-shadow only.
   The page background (#discoveryStack::before) is cut off exactly at the video's top edge (section 6).

   2026-10-06 (pass 5, Daniel): "make sure there is no overlay in third section or image, so the video that is
   playing should automatically reach the third section without altering the video".
   Third section from the footer = #discExclusive (Newest 1, Featured 2, Exclusive 3; same at 1440-360).
   footer-fire-8765.js anchors the reach at the top of #discExclusive (falls back to #discFeatured, then to the
   section above the footer). ambient-8765.js no longer manages #discExclusive (no layer, no image loads, no
   rotation). Section 7 below makes Exclusive paint nothing of its own, like Featured.

   2026-10-06 (pass 6, Daniel): "Put the video back to its original size and position, keep the sections free of
   images and overlays". footer-fire-8765.js reach is back to the original (top of the section above the footer =
   #discNewest), so the video is Newest + footer at its original scale again. Exclusive and Featured stay
   transparent (no image / overlay / wash of their own); behind them shows the page's own #discoveryStack::before
   background, which now fades out exactly at Newest's top (= the video's top edge, section 6). */

/* ---------- 1. Section transparent: neutralise every pre-existing section paint ---------- */
/* app.css .featured-showcase (flat navy gradient + cyan top rule) and the discovery-seams ::after seam wash
   are already nulled by transparent-fire-8765.css; restated here so Featured stays clear whatever that file does. */
#discoveryStack #discFeatured,
#discoveryStack #discFeatured.featured-showcase {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
#discoveryStack #discFeatured::before,
#discoveryStack #discFeatured::after {
  content: none !important;
  background: none !important;
}
#discoveryStack #discFeatured > .disc-inner,
#discoveryStack #discFeatured .disc-head,
#discoveryStack #discFeatured .disc-carousel,
#discoveryStack #discFeatured .disc-track {
  background: none !important;
  box-shadow: none !important;
}
/* any section-level image layer (ambient / hero / old featured-bg) never renders inside Featured */
#discoveryStack #discFeatured > .wte-ambient,
#discoveryStack #discFeatured > .wte-featured-bg,
#discoveryStack #discFeatured > .promo-bg,
#discoveryStack #discFeatured > .promo-bg-scrim { display: none !important; }
/* the decorative fire smoke (.wte-smoke, transparent-fire-8765.css / footer-fire-8765.js) is positioned over
   Featured + Newest; its mask blanks it over the video (Newest) but NOT over Featured, so since pass 6 this rule is
   what keeps smoke out of Featured (and off the video). Required. */
#discoveryStack > .wte-smoke { display: none !important; }
#discoveryStack #discFeatured > .disc-inner { position: relative; z-index: 3; }

/* ---------- 2. Heading: same type, a little closer to the carousel ---------- */
#discoveryStack #discFeatured .disc-head { margin-bottom: 8px; padding-bottom: 6px; }
/* heading sits on the bare video: text-only halo (same as Newest in transparent-fire-8765.css), no area dimming */
#discoveryStack #discFeatured .disc-head .premium-kicker,
#discoveryStack #discFeatured .disc-head h2,
#discoveryStack #discFeatured .disc-head .premium-lede {
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.75), 0 0 22px rgba(0, 0, 0, 0.5);
}

/* ---------- 3. Cards: dark glass, subtle gold border, aligned rows (card styling, not section) ---------- */
/* cards over the fire video: tint-only like Newest (no backdrop blur on the video), and no 0 12px 32px drop
   shadow darkening the video around them (inset highlight kept) */
#discoveryStack #discFeatured .premium-card.disc-card {
  background: rgba(7, 10, 9, 0.86);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: var(--wte-glass-hi, none);
  border: 1px solid rgba(255, 194, 74, 0.34);
  display: flex;
  flex-direction: column;
}
#discoveryStack #discFeatured .premium-card.disc-card:hover,
#discoveryStack #discFeatured .premium-card.disc-card:focus-within { border-color: var(--gold, #ffc24a); }
#discoveryStack #discFeatured .disc-card-media { flex: 0 0 168px; height: 168px; }
#discoveryStack #discFeatured .disc-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* names: wrap, never ellipsised */
#discoveryStack #discFeatured .disc-card-body h3 { overflow-wrap: anywhere; white-space: normal; text-overflow: clip; }
/* description = fixed 2-line area, pinned with the location row + buttons to the card bottom */
#discoveryStack #discFeatured .disc-card-body > .disc-desc {
  margin-top: auto;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: calc(2 * 1.35em);
}
#discoveryStack #discFeatured .disc-card-body > .disc-meta { margin-top: auto; }
#discoveryStack #discFeatured .disc-card-body > .disc-desc + .disc-meta { margin-top: 0; }
#discoveryStack #discFeatured .disc-card-body > .disc-card-actions { margin-top: 0; }

/* ---------- 4. Arrows: outer edge, clear keyboard focus ---------- */
#discoveryStack #discFeatured .disc-arrow {
  position: relative;
  z-index: 5;
  /* over the video: tint-only (like the footer pills), no blur, no darkening drop shadow */
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  background: rgba(16, 13, 8, 0.78);
  box-shadow: var(--wte-glass-hi, none);
}
#discoveryStack #discFeatured .disc-arrow:hover { background: rgba(28, 23, 14, 0.85); }
#discoveryStack #discFeatured .disc-arrow:focus-visible,
#discoveryStack #discFeatured .disc-btn:focus-visible {
  outline: 2px solid var(--gold, #ffc24a);
  outline-offset: 2px;
}

/* ---------- 5. Mobile: slightly firmer card tint ---------- */
@media (max-width: 720px) {
  #discoveryStack #discFeatured .premium-card.disc-card { background: rgba(7, 10, 9, 0.9); }
}
@media (prefers-reduced-transparency: reduce) {
  #discoveryStack #discFeatured .premium-card.disc-card { background: rgba(7, 10, 9, 0.94); }
}

/* ---------- 6. Shared fire backdrop (pass 8, 2026-10-07, approved by Daniel) ----------
   js/footer-fire-8765.js now sets --wte-fire-reach from the top of #discFeatured, so the ONE footer fire layer
   (.wte-fire-layer, uniform object-fit: cover, object-position 50% 100%) sits behind Featured + Newest + footer.
   The shared page gradient (#discoveryStack::before) is kept above Featured only; it fades out over the first 100px
   of Featured (navy -> video cross-fade, so there is no start line), and paints nothing below that. */
#discoveryStack.wte-fire-ready::before {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 194, 74, 0.10), transparent 50%),
    linear-gradient(180deg, rgba(6, 24, 34, 0) 0%, rgba(6, 24, 34, 1) clamp(90px, 14vh, 160px), #0a2434 35%, #07141c 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 var(--wte-feat-top, calc(100% - var(--wte-fire-reach, 0px))), transparent calc(var(--wte-feat-top, calc(100% - var(--wte-fire-reach, 0px))) + 100px));
          mask-image: linear-gradient(180deg, #000 0, #000 var(--wte-feat-top, calc(100% - var(--wte-fire-reach, 0px))), transparent calc(var(--wte-feat-top, calc(100% - var(--wte-fire-reach, 0px))) + 100px));
}
@media (max-width: 768px) {
  #discoveryStack.wte-fire-ready::before {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(255, 194, 74, 0.08), transparent 50%),
      linear-gradient(180deg, rgba(6, 24, 34, 0) 0%, rgba(6, 24, 34, 1) clamp(56px, 10vh, 90px), #0a2434 35%, #07141c 100%);
  }
}

/* ---------- 6c. Fire video behind Exclusive too (pass 12, 2026-10-07, Daniel) ----------
   footer-fire-8765.js now anchors the ONE fire layer at the top of #discExclusive (same <video>, src, object-fit cover,
   object-position 50% 100%, uniform scale, no transform). Nothing paints over it any more:
   - the page gradient (#discoveryStack::before) ends ABOVE the video: it fades out over the last 80px of the section above
     and is fully transparent from Exclusive's top down (the old 40px fade and Featured's 100px navy cross-fade are gone);
   - the video's own top edge is softened by a mask on the video layer itself (no overlay): it fades in over the first
     120px (90px on phones) of Exclusive, where the page base shows through.
   Behind the faded strip: html/body #082030 + the fixed body glow (global, untouched). */
#discoveryStack.wte-fire-ready.wte-excl-clear::before {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--wte-excl-top) - 80px), transparent var(--wte-excl-top));
          mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--wte-excl-top) - 80px), transparent var(--wte-excl-top));
}
#siteFooter.wte-reach-excl .wte-fire-layer {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.35) 45px, #000 120px);
          mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.35) 45px, #000 120px);
}
@media (max-width: 720px) {
  #siteFooter.wte-reach-excl .wte-fire-layer {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.35) 34px, #000 90px);
            mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.35) 34px, #000 90px);
  }
}

/* ---------- 6d. Soft top edge of Exclusive (pass 11, 2026-10-07) ----------
   The line at Exclusive's top was the bottom edge of #discPromotedNear's ambient dim layer (rgba(14,12,9,.46) warm dark,
   ending hard at the section edge) meeting the page base. It now fades out over the section's last 90px. */
#discoveryStack.wte-excl-clear #discPromotedNear > .wte-ambient > .wte-ambient-dim {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 90px), transparent 100%);
}

/* ---------- 6b. Newest heading readability (pass 12: the feat12 radial scrim is removed - no gradient over the video;
   readability comes from text-shadow on the text only) ---------- */
#discoveryStack #discNewest > .disc-inner > .disc-head { background: none !important; }
#discoveryStack #discNewest .disc-head h2,
#discoveryStack #discNewest .disc-head h3,
#discoveryStack #discNewest .disc-head .premium-kicker,
#discoveryStack #discNewest .disc-head .premium-lede,
#discoveryStack #discNewest .disc-head p {
  text-shadow: 0 0 1px #000, 0 0 3px rgba(0, 0, 0, 0.98), 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.85), 0 0 18px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.55) !important;
}

/* ---------- 7. Exclusive (third section from the footer): no image / overlay of its own (pass 5; since pass 6 it
   sits on the page background, not the video) ----------
   Neutralises: app.css .premium-showcase navy gradient + gold top rule, uifix-8765 gold radial wash,
   discovery-seams ::after bottom wash, the ambient photo + .wte-ambient-dim (ambient-8765.js no longer creates
   them here; hidden too in case an old cached script does), card/arrow backdrop blur and darkening drop shadows. */
#discoveryStack #discExclusive,
#discoveryStack #discExclusive.disc-section.premium-showcase {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
#discoveryStack #discExclusive::before,
#discoveryStack #discExclusive::after {
  content: none !important;
  background: none !important;
}
#discoveryStack #discExclusive > .disc-inner,
#discoveryStack #discExclusive .disc-head,
#discoveryStack #discExclusive .disc-carousel,
#discoveryStack #discExclusive .disc-track {
  background: none !important;
  box-shadow: none !important;
}
#discoveryStack #discExclusive > .wte-ambient,
#discoveryStack #discExclusive > .promo-bg,
#discoveryStack #discExclusive > .promo-bg-scrim { display: none !important; }
#discoveryStack #discExclusive > .disc-inner { position: relative; z-index: 3; }
#discoveryStack #discExclusive .disc-head .premium-kicker,
#discoveryStack #discExclusive .disc-head h2,
#discoveryStack #discExclusive .disc-head .premium-lede {
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.75), 0 0 22px rgba(0, 0, 0, 0.5);
}
/* cards: same dark glass as Featured, tint-only (no backdrop blur of the video), inset highlight only */
#discoveryStack #discExclusive .premium-card.disc-card {
  background: rgba(7, 10, 9, 0.86);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: var(--wte-glass-hi, none);
}
#discoveryStack #discExclusive .disc-arrow {
  position: relative;
  z-index: 5;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  background: rgba(16, 13, 8, 0.78);
  box-shadow: var(--wte-glass-hi, none);
}
#discoveryStack #discExclusive .disc-arrow:hover { background: rgba(28, 23, 14, 0.85); }
#discoveryStack #discExclusive .disc-arrow:focus-visible,
#discoveryStack #discExclusive .disc-btn:focus-visible {
  outline: 2px solid var(--gold, #ffc24a);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  #discoveryStack #discExclusive .premium-card.disc-card { background: rgba(7, 10, 9, 0.9); }
}
@media (prefers-reduced-transparency: reduce) {
  #discoveryStack #discExclusive .premium-card.disc-card { background: rgba(7, 10, 9, 0.94); }
}
