/* Vibe finder phase 2C (2026-11-28): Star Sign Picks, Movie Night, Soundtrack, Weekend Plan, Weather Pick, Staff Picks.
   Brand tokens come from finder-core.css ([data-vf-mode] custom properties). Mobile first (390 px). */

/* Staff Picks tile: hidden until themed.js confirms the chosen store has an in-stock pick. */
html:not(.vft-staff-ok) .vf-tiles-i:has(> [data-vf-tile="staff-picks"]) { display: none; }

.vft[hidden], .vft [hidden] { display: none !important; }
.vft {
  position: relative; margin: 16px 0 6px; padding: 18px 16px 20px;
  border: 2px solid var(--vf-ink); border-radius: 22px; background: var(--vf-cream);
  box-shadow: 0 4px 0 var(--vf-ink); font-family: var(--vf-body); color: var(--vf-text); scroll-margin-top: 150px;
}
.vft-top { padding-right: 84px; }
.vft-eye { margin: 0 0 4px; font: 800 11px/1.3 var(--vf-head); letter-spacing: 1.4px; text-transform: uppercase; color: var(--vf-link); }
.vft .vft-h { margin: 0; font: 800 24px/1.12 var(--vf-head); letter-spacing: -0.4px; color: var(--vf-night); }
.vft .vft-h:focus { outline: none; }
.vft .vft-h:focus-visible { outline: 3px solid var(--vf-orange); outline-offset: 4px; border-radius: 6px; }
.vft-sub { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--vf-muted); max-width: 34em; }
.vft .vft-x {
  position: absolute; top: 14px; right: 14px; min-height: 40px; padding: 8px 14px; border: 2px solid var(--vf-ink);
  border-radius: 999px; background: #fff; color: var(--vf-ink); font: 800 14px/1 var(--vf-head); cursor: pointer; box-shadow: none; text-shadow: none;
}
.vft .vft-x:hover { background: var(--vf-ink); color: #fff; }
.vft button:focus-visible, .vft a:focus-visible, .vft select:focus-visible { outline: 3px solid var(--vf-orange); outline-offset: 2px; }

.vft-fun {
  margin: 14px 0 0; padding: 9px 12px; border-left: 4px solid var(--vf-orange); border-radius: 0 10px 10px 0;
  background: #fff; font-size: 13.5px; line-height: 1.4; color: var(--vf-ink);
}
.vft-legal { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--vf-muted); }
.vft-legal::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--vf-orange); vertical-align: 1px; }

.vft-store { margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.vft-store-l { font: 800 14px/1.2 var(--vf-head); color: var(--vf-ink); }
.vft .vft-store-sel { min-height: 46px; max-width: 320px; padding: 8px 12px; border: 2px solid var(--vf-ink); border-radius: 12px; background: #fff; font: 600 16px/1.2 var(--vf-body); color: var(--vf-ink); }

/* Choices: shared button reset */
.vft-opts { margin: 16px 0 0; display: grid; gap: 8px; }
.vft .vft-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; margin: 0; padding: 10px 8px; border: 2px solid var(--vf-ink); border-radius: 14px; background: #fff;
  color: var(--vf-ink); font: inherit; text-align: center; cursor: pointer; box-shadow: 0 2px 0 var(--vf-ink); text-shadow: none;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}
.vft .vft-opt:hover { background: #fff8ee; color: var(--vf-ink); transform: translateY(-1px); box-shadow: 0 3px 0 var(--vf-ink); }
.vft .vft-opt:active { transform: translateY(2px); box-shadow: 0 0 0 var(--vf-ink); }
.vft .vft-opt[aria-pressed="true"] { background: var(--vf-ink); color: #fff; }
.vft .vft-opt[aria-pressed="true"] .vft-opt-d { color: #e9e4dc; }
.vft .vft-opt[aria-pressed="true"] .vft-ico { color: var(--vf-orange); }
.vft-opt-t { font: 800 14px/1.15 var(--vf-head); }
.vft-opt-d { font-size: 11.5px; line-height: 1.25; color: var(--vf-muted); }
.vft-ico { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vft-opt-badge {
  position: absolute; top: -9px; right: -4px; padding: 2px 7px; border: 1.5px solid var(--vf-ink); border-radius: 999px;
  background: var(--vf-orange); color: var(--vf-night); font: 800 9.5px/1.3 var(--vf-head); letter-spacing: 0.5px; text-transform: uppercase;
}

/* Star signs: line-art grid */
.vft-star-sign .vft-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vft-star-sign .vft-opt { padding: 12px 4px 10px; }

/* Movie Night: poster strip (type only, no film imagery) */
.vft-posters { grid-auto-flow: column; grid-auto-columns: 132px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.vft .vft-posters .vft-opt {
  aspect-ratio: 2 / 3; min-height: 0; justify-content: flex-end; align-items: flex-start; padding: 14px 12px; text-align: left;
  background: var(--vf-night); color: var(--vf-cream); scroll-snap-align: start;
  background-image: linear-gradient(160deg, rgba(248, 137, 0, 0.32), rgba(20, 18, 16, 0) 55%);
}
.vft .vft-posters .vft-opt::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid rgba(248, 137, 0, 0.75); border-radius: 9px; pointer-events: none; }
.vft .vft-posters .vft-opt:hover { background-color: #2a2522; color: #fff; }
.vft .vft-posters .vft-opt-t { font-size: 19px; letter-spacing: 0.6px; text-transform: uppercase; }
.vft .vft-posters .vft-opt-d { color: #d9d3ca; }
.vft .vft-posters .vft-opt[aria-pressed="true"] { background-color: var(--vf-orange); background-image: none; color: var(--vf-night); }
.vft .vft-posters .vft-opt[aria-pressed="true"] .vft-opt-d { color: var(--vf-ink); }
.vft .vft-posters .vft-opt[aria-pressed="true"]::before { border-color: var(--vf-night); }

/* Soundtrack: chips over a static equalizer */
.vft-bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 4px; height: 46px; margin: 0 0 4px; }
.vft-bars-b { flex: 1 1 0; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--vf-ink) 0 55%, var(--vf-orange) 55%); }
.vft-soundtrack .vft-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vft .vft-bars ~ .vft-opt { border-radius: 999px; min-height: 46px; }

/* Weekend Plan + Weather: icon tiles */
.vft-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vft .vft-tiles .vft-opt { min-height: 96px; }

/* Types */
.vft-types { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vft .vft-type {
  min-height: 40px; padding: 8px 14px; border: 2px solid var(--vf-ink); border-radius: 999px; background: transparent;
  color: var(--vf-ink); font: 700 14px/1 var(--vf-head); cursor: pointer; box-shadow: none; text-shadow: none;
}
.vft .vft-type:hover { background: #fff; color: var(--vf-ink); }
.vft .vft-type[aria-pressed="true"] { background: var(--vf-orange); color: var(--vf-night); }

/* Weather banner */
.vft-banner {
  margin: 16px 0 0; padding: 14px 16px; border: 2px solid var(--vf-ink); border-radius: 16px; background: var(--vf-orange);
  color: var(--vf-night); display: flex; flex-direction: column; gap: 2px;
}
.vft-banner.is-off { background: #fff; }
.vft-banner-t { font: 800 22px/1.15 var(--vf-head); letter-spacing: -0.3px; }
.vft-banner.is-off .vft-banner-t { font-size: 16px; }
.vft-banner-d { font-size: 13.5px; line-height: 1.35; }

/* Results */
.vft-res { margin: 18px 0 0; }
.vft-res:empty { display: none; }
.vft .vft-res-h { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font: 800 19px/1.2 var(--vf-head); color: var(--vf-night); }
.vft-note { margin: 0 0 10px; font-size: 14px; color: var(--vf-muted); }
.vft-cards { display: grid; gap: 10px; margin-top: 8px; }
.vft-cards .vf-pcard-why { color: var(--vf-ink); }
.vft-wait, .vft-empty { margin: 0; font-size: 15px; color: var(--vf-ink); }
.vft-empty { margin-bottom: 8px; }
.vft .vft-more {
  margin: 12px 8px 0 0; min-height: 44px; padding: 10px 16px; border: 2px solid var(--vf-ink); border-radius: 12px;
  background: #fff; color: var(--vf-ink); font: 800 15px/1 var(--vf-head); cursor: pointer; box-shadow: 0 2px 0 var(--vf-ink); text-shadow: none;
}
.vft .vft-more:hover { background: var(--vf-ink); color: #fff; }
.vft .vft-menu { display: inline-block; margin-top: 12px; padding: 6px 2px; font: 700 14px/1.3 var(--vf-head); color: var(--vf-link); text-decoration: underline; text-underline-offset: 3px; }
.vft .vft-menu:hover { color: var(--vf-ink); }
.vft-avatar {
  flex: 0 0 38px; width: 38px; height: 38px; border: 2px solid var(--vf-ink); border-radius: 50%; background: var(--vf-orange);
  display: inline-flex; align-items: center; justify-content: center; font: 800 17px/1 var(--vf-head); color: var(--vf-night);
}
.vft-staff-picks .vf-pcard-why { font-style: italic; }

@media (min-width: 700px) {
  .vft { padding: 24px 26px 26px; }
  .vft .vft-h { font-size: 28px; }
  .vft-star-sign .vft-opts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vft-posters { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  .vft .vft-posters .vft-opt { aspect-ratio: auto; min-height: 150px; }
  .vft-soundtrack .vft-opts { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .vft-weekend-plan .vft-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vft-weather-pick .vft-tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .vft-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vft-cards .vf-pcard { flex-direction: column; }
  .vft-cards .vf-pcard-pic { width: 100%; flex-basis: auto; height: 140px; }
  .vft-cards .vf-pcard-pic img { width: 140px; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .vft .vft-opt, .vft .vft-opt:hover, .vft .vft-opt:active { transition: none; transform: none; }
}

/* Phase 3 (Fable P2): an odd last weather tile ("Cloudy") spans the row on phones instead of sitting alone. */
@media (max-width: 699px) {
  .vft-weather-pick .vft-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
