/*
    Write-a-review panel — trendslive/partials/review_form.blade.php.

    ONE copy of these rules for both surfaces that draw the panel: the public
    event page (which loads event-detail.css) and the customer dashboard (which
    does not). Neither loads the other's stylesheet, so the partial links this
    file itself, @once.

    Colours are literal where the brand yellow is concerned. The token
    `--tl-yellow-ink` is declared as `var(--tl-yellow)`, and a custom property
    whose own value fails to resolve is invalid at computed-value time — `color`
    then falls back to `inherit`, i.e. the card's near-white text, which is
    exactly how the rating came out white under a rule that read yellow. The
    light theme keeps the dark ink that token intends, stated directly.
*/

.tlrv { display: flex; flex-direction: column; gap: 0; }
.tlrv-h {
  font-family: var(--tl-font-app, "Plus Jakarta Sans", system-ui, sans-serif);
  font-weight: 800; font-size: 16px; color: var(--tl-fg, #fff); margin: 0 0 6px;
}
.tlrv-sub { font-size: 12.5px; color: var(--tl-fg-3, #888); margin-bottom: 14px; line-height: 1.55; }

.tlrv-flash {
  margin: 0 0 12px; padding: 10px 13px; border-radius: var(--tl-r-md, 10px);
  font-size: 13px; line-height: 1.5;
  background: rgba(249, 235, 6, .10); border: 1px solid rgba(249, 235, 6, .35);
  color: var(--tl-fg-2, #ccc);
}
.tlrv-flash.err {
  background: var(--tl-danger-bg, rgba(239,68,68,.12));
  border-color: var(--tl-danger, #ef4444); color: var(--tl-danger, #ef4444);
}

/* ── the rating picker ─────────────────────────────────────────────
   row-reverse so `~` can light every star BEFORE the hovered one. The
   input is hidden but focusable, so the control still works from a
   keyboard. */
.tlrv-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; margin-bottom: 14px; }
.tlrv-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.tlrv-pick label { display: inline-flex; color: var(--tl-fg-4, #5a5a5a); cursor: pointer; transition: color .1s; line-height: 1; }
.tlrv-pick label svg { width: 28px; height: 28px; display: block; }
.tlrv-pick label:hover,
.tlrv-pick label:hover ~ label,
.tlrv-pick input:checked ~ label { color: #f9eb06; }
.tlrv-pick input:focus-visible + label { outline: 2px solid rgba(249,235,6,.35); outline-offset: 2px; border-radius: 3px; }

.tlrv-input {
  width: 100%; min-height: 104px; resize: vertical;
  background: var(--tl-surface-2, #131316); border: 1px solid var(--tl-border, rgba(255,255,255,.08));
  border-radius: var(--tl-r-md, 10px); padding: 12px 14px;
  color: var(--tl-fg, #fff); font-family: var(--tl-font-body, Inter, system-ui, sans-serif);
  font-size: 13.5px; line-height: 1.6; outline: none;
}
.tlrv-input:focus { border-color: rgba(249, 235, 6, .35); }
.tlrv-input::placeholder { color: var(--tl-fg-4, #5a5a5a); }

.tlrv-actions { display: flex; margin-top: 12px; }
.tlrv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border: 1px solid #f9eb06; border-radius: var(--tl-r-pill, 9999px);
  background: #f9eb06; color: #161920; cursor: pointer;
  font-family: var(--tl-font-mono, ui-monospace, Menlo, monospace);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
/* every state named, so a vendor `.btn`-style rule cannot take the label */
.tlrv-btn:hover, .tlrv-btn:focus, .tlrv-btn:active { background: #fff685; border-color: #fff685; color: #161920; }

/* ── the review shown back ───────────────────────────────────────── */
.tlrv-stars { display: inline-flex; align-items: center; gap: 4px; font-size: 19px; line-height: 1; }
.tlrv-stars svg { width: 1em; height: 1em; display: block; flex: none; }
.tlrv-stars svg.on { color: #f9eb06; }
.tlrv-stars svg.off { color: var(--tl-fg-4, #5a5a5a); }
.tlrv-body { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--tl-fg-2, #ccc); }

:root[data-theme="light"] .tlrv-stars svg.on,
:root[data-theme="light"] .tlrv-pick input:checked ~ label,
:root[data-theme="light"] .tlrv-pick label:hover,
:root[data-theme="light"] .tlrv-pick label:hover ~ label { color: #15161a; }
