/* ── CUE PLAY Event Pages — Shared Styles ──
   Extracted from pattaya.html for reuse across hub + bracket pages.
   Loaded via <link rel="stylesheet" href="/event/shared.css">
*/

/* ── CSS Reset + Body Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0A0B1E; color: #F4F4F5;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { text-decoration: none; color: inherit; }

/* ── Hub Container ── */
.hub {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 32px 20px;
  max-width: 520px; margin: 0 auto; width: 100%;
}

/* ── Header ── */
.logo-full { width: 120px; margin-bottom: 24px; }
.event-name {
  font-size: 26px; font-weight: 800; letter-spacing: -0.3px;
  text-align: center; margin-bottom: 4px; line-height: 1.2;
}
.event-sub {
  font-size: 13px; font-weight: 500; color: #A7B0C0;
  text-align: center; margin-bottom: 4px;
}
.event-format {
  font-size: 11px; font-weight: 600; color: #6B7A99;
  text-align: center; margin-bottom: 4px; letter-spacing: 0.5px;
}
.event-desc {
  font-size: 13px; font-style: italic; color: #8A94A8;
  text-align: center; margin-bottom: 16px;
}

/* ── Flag Images ── */
.flag-img { width: 20px; height: 15px; border-radius: 2px; flex-shrink: 0; }

/* ── Live Badge + Pulse Animation ── */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 16px; font-size: 12px;
  font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  margin-bottom: 6px;
}
.live-badge--on {
  background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22C55E;
}
.live-badge--off {
  background: rgba(107, 122, 153, 0.12); border: 1px solid rgba(107, 122, 153, 0.3);
  color: #6B7A99;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ── Status Bar ── */
.status-bar {
  font-size: 12px; font-weight: 500; color: #6B7A99;
  text-align: center; margin-bottom: 20px;
}
.status-bar span { color: #A7B0C0; font-weight: 600; }
.status-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 20px;
}
.status-row .status-bar { margin-bottom: 0; }
.status-refresh {
  border: 1px solid #2A3B63; background: #131E3A; color: #A7B0C0;
  border-radius: 999px; width: 28px; height: 28px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.status-refresh:hover { border-color: #12A4FF; color: #12A4FF; }

/* ── Score Flash Animation ── */
@keyframes score-flash {
  0%   { border-color: rgba(255, 214, 0, 0.8); box-shadow: 0 0 14px rgba(255, 214, 0, 0.25); }
  100% { border-color: rgba(34, 197, 94, 0.25); box-shadow: none; }
}

/* ── Match Row / Card Styles ── */
.match-grid {
  width: 100%; display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 24px;
}
.match-row {
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: center; gap: 8px;
  background: #131E3A; border: 1px solid #1E2E50; border-radius: 10px;
  padding: 10px 12px; font-size: 13px;
}
.match-row--live { border-color: rgba(34, 197, 94, 0.25); }
.match-row--flash { animation: score-flash 1.5s ease-out; }
.match-meta {
  font-size: 11px; font-weight: 500; color: #6B7A99; margin-top: 4px;
}
.match-meta b { color: #A7B0C0; }
.match-table {
  font-weight: 800; color: #12A4FF; font-size: 14px; text-align: center;
}
.match-players { font-weight: 500; }
.match-player-line {
  display: flex; align-items: center; gap: 6px; min-height: 22px;
}
.match-player-line .flag-img { width: 20px; height: 15px; border-radius: 2px; flex-shrink: 0; }
.match-player-line .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-vs { font-size: 10px; font-weight: 600; color: #4A5A7A; padding: 0 0 0 26px; line-height: 1; }
.match-score {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #F4F4F5;
  font-variant-numeric: tabular-nums; white-space: nowrap; gap: 2px;
}
.match-score-vs { font-size: 9px; font-weight: 600; color: #4A5A7A; }
.match-time {
  font-weight: 600; font-size: 11px; color: #6B7A99;
  text-align: right; white-space: nowrap;
}

/* ── Empty / Loading Messages ── */
.empty-msg {
  width: 100%; text-align: center; padding: 20px;
  font-size: 13px; color: #4A5A7A; margin-bottom: 24px;
}

/* ── Section Headers ── */
.section-header {
  width: 100%; display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.section-title {
  font-size: 14px; font-weight: 700; color: #A7B0C0;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.section-count {
  font-size: 12px; font-weight: 600; color: #6B7A99;
}

/* ── Buttons ── */
.buttons { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.btn-row { display: flex; gap: 12px; }
.btn-row .btn { flex: 1; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px; border-radius: 14px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-icon { font-size: 18px; flex-shrink: 0; }

.btn--bracket {
  background: linear-gradient(135deg, rgba(18,164,255,0.15), rgba(255,92,204,0.10));
  border: 1px solid rgba(18,164,255,0.3);
}
.btn--bracket:hover { box-shadow: 0 4px 20px rgba(18,164,255,0.2); }

.btn--results {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(18,164,255,0.08));
  border: 1px solid rgba(34,197,94,0.3);
}
.btn--results:hover { box-shadow: 0 4px 20px rgba(34,197,94,0.15); }

.btn--secondary {
  background: #131E3A; border: 1px solid #2A3B63; font-size: 13px;
  padding: 12px 16px; color: #A7B0C0;
}
.btn--secondary:hover { border-color: rgba(18,164,255,0.3); }

.btn--players {
  background: linear-gradient(135deg, rgba(255,213,79,0.14), rgba(255,152,0,0.08));
  border: 1px solid rgba(255,213,79,0.3);
  color: #F4F4F5;
}
.btn--players:hover { box-shadow: 0 4px 20px rgba(255,213,79,0.15); }

.divider {
  width: 100%; height: 1px; background: #1E2E50; margin: 4px 0;
}

/* ── Badge Styles ── */
.badge-live { background: rgba(34,197,94,0.15); color: #22C55E; border: 1px solid rgba(34,197,94,0.3); }
.badge-on-table { background: rgba(18,164,255,0.12); color: #12A4FF; border: 1px solid rgba(18,164,255,0.3); }
.badge-up-next { background: rgba(107,122,153,0.15); color: #A7B0C0; border: 1px solid rgba(107,122,153,0.3); }
.badge-completed { background: rgba(74,90,122,0.15); color: #6B7A99; border: 1px solid rgba(74,90,122,0.2); }

/* ── Footer ── */
.footer {
  border-top: 1px solid #1E2E50; padding: 32px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.footer-brand { font-size: 16px; font-weight: 700; color: #F4F4F5; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 13px; font-weight: 500; color: #A7B0C0;
  transition: color 0.2s;
}
.footer-links a:hover { color: #F4F4F5; text-decoration: underline; }
.footer-email a { color: #12A4FF; font-weight: 600; font-size: 13px; }
.footer-email a:hover { text-decoration: underline; }
.footer-copy { font-size: 12px; color: #4A5A7A; font-weight: 700; }

/* ── Schedule Match Cards ── */
.sch-match-card {
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: center; gap: 8px;
  background: #0D1528; border: 1px solid #1A2744; border-radius: 8px;
  padding: 8px 10px; margin: 4px 0; font-size: 13px;
}
.sch-match-card--live {
  border-color: rgba(34,197,94,0.25); background: rgba(34,197,94,0.04);
}
.sch-match-card--on-table { border-color: rgba(18,164,255,0.25); }
.sch-match-card--completed { opacity: 0.7; }
.sch-match-card--flash { animation: score-flash 1.5s ease-out; }
.sch-match-card--highlight {
  border-color: rgba(255,214,0,0.5);
  box-shadow: 0 0 12px rgba(255,214,0,0.15);
}
.sch-match-left { text-align: center; }
.sch-match-table { font-weight: 800; color: #12A4FF; font-size: 13px; }
.sch-match-id { font-size: 10px; font-weight: 600; color: #4A5A7A; }
.sch-match-body { min-width: 0; }
.sch-match-players { font-size: 13px; font-weight: 500; color: #F4F4F5; }
.sch-match-players .match-player-line { min-height: 20px; }
.sch-match-players .match-vs { padding-left: 26px; }
.sch-match-meta {
  font-size: 11px; font-weight: 500; color: #4A5A7A; margin-top: 1px;
  display: flex; align-items: center; gap: 6px;
}
.sch-match-route {
  font-size: 10px; color: #3D4F70; margin-top: 2px;
}
.sch-match-route .win { color: #22C55E; }
.sch-match-route .loss { color: #F59E0B; }
.sch-match-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.sch-match-badge {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.sch-match-score {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #F4F4F5;
  font-variant-numeric: tabular-nums; white-space: nowrap; gap: 2px;
}
.sch-match-score .match-score-vs { font-size: 9px; font-weight: 600; color: #4A5A7A; }
.sch-match-score--muted { color: #6B7A99; font-weight: 700; }

/* ── Pre-Event Items ── */
.pre-event-item {
  display: flex; align-items: center; gap: 14px;
  background: #0D1528; border: 1px solid #1A2744; border-radius: 10px;
  padding: 14px 16px; margin: 6px 0; font-size: 14px;
}
.pre-event-time {
  font-weight: 800; font-size: 14px; color: #12A4FF;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pre-event-label {
  font-weight: 600; font-size: 14px; color: #F4F4F5;
}
