/* SQWADSY App — prototype v3.0 · flow layer (Home actions, a venue's games, organiser booking actions,
 * conditions + history, join confirmation). MOD DEMONSTRATIV. Tokens: ../shared/theme.css (Light/Dark).
 * Loaded after hub-v3-fit.css; hub-v3.css stays unchanged. */

/* ---------------- Home: two entries */
.v30-home-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; max-width: 520px; }
.v30-home-acts > .exp-button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; flex: none; }
.v30-home-acts svg { width: 18px; height: 18px; }
.v30-home-hint { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--quiet); text-align: right; }

/* ---------------- venue detail + a venue's games */
.v30-vacts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.v30-page .vd-back { display: inline-block; margin: 6px 0 10px; color: var(--sub); text-decoration: none; font-weight: 500; }
.v30-h1 { font: italic 800 clamp(26px, 2.6vw, 36px)/1.15 'Rubik',Inter,sans-serif; margin: 0 0 6px; color: var(--ink); font-style: italic; font-weight: 800; }
.v30-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 18px; }
.v30-game { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius:6px; background: var(--surface); color: var(--ink); text-decoration: none; }
.v30-game:hover, .v30-game:focus-visible { border-color: var(--mint-line); }
.v30-game-top { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.v30-game span { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.v30-game svg { width: 18px; height: 18px; flex: none; }
.v30-game .v30-meta { color: var(--quiet); font-size: 13px; }
.v30-empty { margin-top: 18px; display: grid; gap: 12px; justify-items: start; }

/* ---------------- Game Hub · organiser actions */
main.hv3 .v30-bk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
main.hv3 .v30-bk-acts .hv3-btn { flex: 1 1 160px; }
main.hv3 .v30-danger, .hv3-overlay .v30-danger { color: var(--bad); border-color: var(--bad-dot); background: var(--surface); }
.hv3-overlay .v30-danger-fill { background: var(--bad-dot); border-color: var(--bad-dot); color: #F2EEE8; }
main.hv3 .hv3-info.v30-closed { background: var(--neu-bg, var(--surface-2)); color: var(--ink-2); }
main.hv3 .hv3-info.v30-closed b { color: var(--ink); }

/* conditions + history */
main.hv3 .v30-terms { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
main.hv3 .v30-terms h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: italic 800 16px 'Rubik',Inter,sans-serif; color: var(--ink); font-style: italic; font-weight: 800; }
main.hv3 .v30-terms h3 svg { width: 18px; height: 18px; color: var(--quiet); }
main.hv3 .v30-rows { display: grid; gap: 6px; }
main.hv3 .v30-rows > div { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); gap: 10px; align-items: center; background: var(--surface-2); border-radius:6px; padding: 8px 12px; font-size: 13px; }
main.hv3 .v30-rows svg { width: 16px; height: 16px; color: var(--quiet); }
main.hv3 .v30-rows span { color: var(--ink-2); white-space: nowrap; }
main.hv3 .v30-rows b { font-weight: 500; color: var(--ink); text-align: right; }
main.hv3 .v30-history { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
main.hv3 .v30-history li { display: grid; gap: 2px; font-size: 13px; position: relative; }
main.hv3 .v30-history li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
main.hv3 .v30-history time { font-size: 12px; color: var(--quiet); }
main.hv3 .v30-history span { color: var(--ink); }

/* mobile placement: card right after the hero */
main.hv3 .hv3-booking.v30-under-hero { margin: 16px 0 !important; }

/* ---------------- join confirmation */
main.hv3 .v30-join { margin: 16px 0 !important; padding: 18px 20px !important; border: 1px solid var(--mint-line) !important; background: var(--mint-soft) !important; display: grid; gap: 12px; }
main.hv3 .v30-join-in { display: flex; gap: 14px; align-items: flex-start; }
main.hv3 .v30-join-ico { width: 40px; height: 40px; border-radius:6px; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); flex: none; }
main.hv3 .v30-join h2 { margin: 0 0 4px; font: italic 800 22px 'Rubik',Inter,sans-serif; color: var(--ink); font-style: italic; font-weight: 800; }
main.hv3 .v30-join p { margin: 0; color: var(--ink-2); font-size: 14px; }
main.hv3 .v30-join .v30-sub { margin-top: 4px; font-size: 13px; color: var(--quiet); }
main.hv3 .v30-join-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- confirmation dialog */
.v30-dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 32px)); background: var(--surface); color: var(--ink); border-radius:6px; padding: 22px 22px 18px; box-shadow: 0 18px 48px rgba(11,35,32,.28); font-family: 'Inter',system-ui,sans-serif; display: grid; gap: 10px; }
.v30-dialog h2 { margin: 0; font: italic 800 23px/1.15 'Rubik',Inter,sans-serif; font-style: italic; font-weight: 800; }
.v30-dialog p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.v30-dlg-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.v30-err { margin: 0; color: var(--bad); font-size: 13px; font-weight: 500; }
.v30-err:empty { display: none; }

/* ---------------- dark theme: only what tokens do not cover */
:root[data-theme="dark"] .v30-dialog { box-shadow: 0 18px 48px rgba(0,0,0,.5); }

/* ---------------- mobile */
@media (max-width: 800px) {
  .v30-home-acts { max-width: none; justify-content: stretch; }
  .v30-home-acts > .exp-button { flex: 1 1 160px; justify-content: center; }
  .v30-home-hint { text-align: left; }
  main.hv3 .v30-rows > div { grid-template-columns: 16px minmax(0, 1fr); }
  main.hv3 .v30-rows b { grid-column: 2; text-align: left; }
  .v30-dlg-acts .hv3-btn, main.hv3 .v30-join-acts .hv3-btn { flex: 1 1 140px; }
}

/* Home header: the vendor home feed styles every <p>/button in the header; keep the hint small and the buttons apart */
.home-feed-v2.player-experience #home .exp-home-header .v30-home-acts { display: flex !important; gap: 10px !important; flex-wrap: wrap; justify-content: flex-end; }
.home-feed-v2.player-experience #home .exp-home-header .v30-home-acts > .exp-button { min-height: 46px; padding: 12px 20px; border-radius:3px; }
.home-feed-v2.player-experience #home .exp-home-header .v30-home-hint { font: 400 12.5px/1.4 'Inter',system-ui,sans-serif !important; color: var(--quiet) !important; max-width: 420px; margin: 0 0 0 auto !important; }
@media (max-width: 800px) {
  .home-feed-v2.player-experience #home .exp-home-header .v30-home-acts { justify-content: stretch; }
  .home-feed-v2.player-experience #home .exp-home-header .v30-home-hint { margin: 0 !important; text-align: left; }
}

/* Rezervări v1 over v3.0: the hv3 CTA now opens the App page „Rezervări” — a secondary link under the Game Hub actions */
main.hv3 .hv3-booking .hv3-btn.hv3-wide.v30-tobk { min-height: 36px; margin-top: 8px; font-size: 14.5px; background: transparent; border-color: transparent; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
