/* ALL IN TRAINING — dark sports-poster theme
   Black / red / gold, bold condensed type, high energy. */
:root {
  --black: #0c0c0e;
  --panel: #151518;
  --panel2: #1c1c21;
  --red: #e01e26;
  --red-dark: #a3121a;
  --gold: #f7b500;
  --gold-soft: #ffd34d;
  --text: #f2f2f4;
  --muted: #9a9aa3;
  --line: #2a2a30;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -80px, rgba(224,30,38,0.22), transparent 60%),
    radial-gradient(900px 420px at 50% 110%, rgba(247,181,0,0.07), transparent 60%),
    var(--black);
  min-height: 100vh;
}
h1, h2 {
  font-family: "Arial Black", "Helvetica Neue", Impact, sans-serif;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.05;
}
h1 { color: #fff; font-size: 2rem; margin: 0.6rem 0;
     text-shadow: 0 3px 0 rgba(224,30,38,0.55); }
h1 .accent { color: var(--gold); text-shadow: 0 3px 0 rgba(0,0,0,0.6); }
h2 { color: var(--gold); font-size: 1.25rem; margin-top: 0;
     border-bottom: 3px solid var(--red); display: inline-block;
     padding-bottom: 0.25rem; }

/* ---------- nav ---------- */
nav {
  background: #000; padding: 0.7rem 1.2rem;
  display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap;
  border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 10;
}
nav a { color: #e8e8ea; text-decoration: none; font-weight: 700;
        text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.06em; }
nav a:hover { color: var(--gold); }
nav .brand { font-family: "Arial Black", sans-serif; font-size: 1.05rem;
  color: var(--gold); display: flex; align-items: center; gap: 0.55rem; }
.brand-logo { height: 40px; width: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); }
nav .admin-link { margin-left: auto; color: var(--muted); }

/* ---------- layout ---------- */
main { max-width: 980px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.hero { text-align: center; margin: 1rem 0 0.5rem; }
.hero-logo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--gold); box-shadow: 0 0 40px rgba(224,30,38,0.45); }
.tagline { text-align: center; color: var(--gold); font-weight: 800;
  letter-spacing: 0.35em; font-size: 0.85rem; margin: 0.4rem 0 1.2rem;
  text-transform: uppercase; }
.card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: 10px; padding: 1.4rem; margin: 1.2rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
.card.narrow { max-width: 440px; margin: 2rem auto; border-left-color: var(--gold); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- forms ---------- */
label { display: block; margin: 0.7rem 0; font-weight: 700; font-size: 0.9rem;
        text-transform: uppercase; letter-spacing: 0.05em; color: #d7d7dc; }
input, select, textarea {
  display: block; width: 100%; margin-top: 0.35rem;
  padding: 0.6rem 0.75rem; border: 1px solid #3a3a42; border-radius: 8px;
  font-size: 1rem; background: #0f0f12; color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(247,181,0,0.25); }
select option { background: #151518; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.row label { flex: 1; min-width: 180px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff; border: none;
  padding: 0.7rem 1.5rem; border-radius: 8px; font-size: 1rem; cursor: pointer;
  text-decoration: none; margin: 0.4rem 0.3rem 0.4rem 0;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(224,30,38,0.4); transition: transform 0.08s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold);
  border: 2px solid var(--gold); box-shadow: none; }
.btn.ghost:hover { background: rgba(247,181,0,0.12); }
.btn.danger { background: #5c1013; box-shadow: none; }
.small-btn { padding: 0.35rem 0.75rem; font-size: 0.82rem; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; font-size: 0.95rem; }
th, td { padding: 0.6rem 0.65rem; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #000; color: var(--gold); text-transform: uppercase;
     font-size: 0.8rem; letter-spacing: 0.08em; }
tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.score { font-weight: 800; font-size: 1.05rem; color: var(--gold); }

/* ---------- badges / filters / flashes ---------- */
.badge { display: inline-block; padding: 0.18rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; background: #2c2c33; color: #cfcfd6; }
.badge.played { background: var(--gold); color: #000; }
.badge.scheduled { background: var(--red); color: #fff; }
.badge.cancelled { background: #444; color: #bbb; }
.filters { margin: 1rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filters a { padding: 0.4rem 1rem; border-radius: 999px; background: var(--panel2);
  color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 700;
  border: 1px solid var(--line); }
.filters a.active, .filters a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.flash { padding: 0.75rem 1rem; border-radius: 8px; margin: 0.8rem 0; font-weight: 600; }
.flash.ok { background: rgba(247,181,0,0.14); color: var(--gold-soft); border: 1px solid var(--gold); }
.flash.error { background: rgba(224,30,38,0.14); color: #ff8f96; border: 1px solid var(--red); }

/* ---------- tournament showcase cards ---------- */
.tournament-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem; margin: 1.5rem 0; }
.tournament-card { display: flex; gap: 1.1rem; align-items: flex-start;
  background: linear-gradient(135deg, #1b1b21, #101014);
  border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: 14px; padding: 1.3rem; text-decoration: none; color: var(--text);
  position: relative; overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s; }
.tournament-card:hover { transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(224,30,38,0.35); }
.tournament-card::after { content: ""; position: absolute; right: -40px; top: -40px;
  width: 150px; height: 150px; pointer-events: none;
  background: radial-gradient(circle, rgba(247,181,0,0.16), transparent 70%); }
.date-badge { background: #000; border: 2px solid var(--gold); border-radius: 12px;
  min-width: 92px; text-align: center; padding: 0.7rem 0.4rem; flex-shrink: 0; }
.date-badge .month { display: block; color: var(--gold); font-weight: 800;
  font-size: 0.85rem; letter-spacing: 0.15em; }
.date-badge .day { display: block; font-family: "Arial Black", sans-serif;
  font-size: 2.4rem; color: #fff; line-height: 1.05; }
.date-badge .year { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.2rem; }
.tournament-info h2 { border: none; padding: 0; margin: 0 0 0.3rem; font-size: 1.4rem; color: #fff; }
.t-date { color: var(--gold-soft); font-weight: 700; margin: 0.25rem 0; }
.t-loc { margin: 0.25rem 0; color: #d7d7dc; }
.tournament-info .btn { margin-top: 0.8rem; }

/* ---------- admin extras ---------- */
form.inline { display: inline; }
form.inline input { display: inline-block; width: auto; }
.match-form { border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 0.9rem; margin: 0.8rem 0;
  background: rgba(255,255,255,0.015); }
.match-form .row { margin: 0.3rem 0; }
ol li { margin: 0.4rem 0; }
a { color: var(--gold-soft); }
footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 1.5rem;
  border-top: 1px solid var(--line); margin-top: 2rem; }
footer .motto { color: var(--gold); font-weight: 800; letter-spacing: 0.3em;
  font-size: 0.78rem; text-transform: uppercase; display: block; margin-bottom: 0.4rem; }

/* ---------- payment ---------- */
.pay-choices { display: flex; gap: 1.2rem; margin-top: 0.4rem; }
.pay-choice { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-weight: 600; }
.pay-choice input { width: auto; accent-color: var(--gold); }
.pay-to { font-size: 1.5rem; font-weight: 800; color: var(--gold); margin: 0.4rem 0; }
.paid { color: #4ade80; font-weight: 700; }
.danger-text { color: #f87171; font-weight: 700; }
