/* Eventos: aviso de portada, /eventos, /eventos/<id> y admin.
   Solo tokens de app.css (claro/oscuro automáticos). Mobile first. */

/* ---- estado ---------------------------------------------------------- */
.ev-badge {
  display: inline-block; padding: 2px 9px; border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
[data-phase="upcoming"] .ev-badge, .ev-badge[data-phase="upcoming"] { background: var(--sel-weak); color: var(--sel-ink); }
[data-phase="live"] .ev-badge, .ev-badge[data-phase="live"] { background: var(--accent-weak); color: var(--accent-ink); }
[data-phase="cancelled"] .ev-badge, .ev-badge[data-phase="cancelled"] { background: var(--danger-weak); color: var(--danger); }
[data-phase="finished"] .ev-badge, .ev-badge[data-phase="finished"],
[data-phase="draft"] .ev-badge, .ev-badge[data-phase="draft"] { background: var(--surface-2); color: var(--muted); }

.ev-count, .ev-strip-count { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ---- portada: una línea discreta bajo el hero ------------------------ */
.ev-strip { margin-top: var(--s-5, 20px); }
.ev-strip[hidden] { display: none; }
.ev-strip-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  color: var(--ink); text-decoration: none; transition: border-color var(--dur) var(--ease);
}
.ev-strip-link:hover { border-color: var(--line-2); }
.ev-strip-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ev-strip-kicker {
  flex: none; font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-ink);
}
.ev-strip-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ev-strip-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-strip-count { font-size: var(--t-sm); color: var(--ink-2); }
.ev-strip[data-phase="live"] .ev-strip-count { color: var(--accent-ink); font-weight: 600; }
.ev-strip-go { flex: none; font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 640px) {
  .ev-strip-main { flex-direction: row; align-items: baseline; gap: 14px; }
}

/* ---- /eventos -------------------------------------------------------- */
.ev-section { margin-top: clamp(20px, 3vw, 32px); max-width: 760px; }
.ev-h2 { margin: 0 0 12px; font-size: var(--t-lg); }
.ev-empty { color: var(--muted); }
.ev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev-row a {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 4px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.ev-row a:hover .ev-row-title { color: var(--accent-ink); }
.ev-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-row-title { font-weight: 600; }
.ev-row-when { font-size: var(--t-sm); color: var(--muted); }
.ev-row-end { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--ink-2); }
.ev-list-past .ev-row-title { color: var(--ink-2); }
@media (min-width: 640px) {
  .ev-row a { flex-direction: row; align-items: center; justify-content: space-between; }
  .ev-row-end { flex: none; }
}

/* ---- /eventos/<id> --------------------------------------------------- */
.ev-page { max-width: var(--w-text); margin: clamp(8px, 1.5vw, 16px) 0 40px; }
.ev-back { margin: 0 0 16px; font-size: var(--t-sm); }
.ev-back a { color: var(--ink-2); text-decoration: none; }
.ev-back a:hover { color: var(--ink); }
.ev-title { margin: 10px 0 6px; overflow-wrap: anywhere; }
.ev-when { margin: 0; color: var(--ink-2); }
.ev-when::first-letter { text-transform: uppercase; }
.ev-viewer { margin: 4px 0 0; font-size: var(--t-sm); color: var(--muted); }
.ev-count-big { margin: 22px 0; font-size: var(--t-lg); font-weight: 600; }
[data-phase="live"] .ev-count-big { color: var(--accent-ink); }
[data-phase="finished"] .ev-count-big, [data-phase="cancelled"] .ev-count-big { color: var(--muted); }
.ev-desc { margin: 0 0 22px; line-height: 1.55; white-space: pre-line; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- admin ----------------------------------------------------------- */
.ev-admin-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ev-admin-actions form { margin: 0; }
.ev-form { max-width: 720px; }
.ev-form input[type="date"], .ev-form input[type="time"], .ev-form input[type="number"] { width: 100%; }
.ev-form-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .ev-form-row { grid-template-columns: 1.3fr 1fr 1fr; } }
.ev-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
