/* ============================================================
   Atlas Ballers — MPBL Dashboard
   Unified design system. Change a variable here and it
   propagates to every page. (Ported from atlasballers.com,
   consolidated out of the site's 18 separate embed blocks.)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Surfaces */
  --bg:        #0d0d0d;
  --bg-2:      #010101;
  --panel:     #111111;
  --panel-2:   #161616;

  /* Text */
  --text:      #f5f5f5;
  --text-mid:  rgba(245,245,245,0.55);
  --text-dim:  rgba(245,245,245,0.35);

  /* Brand */
  --red:        #9B1B1B;
  --red-bright: #D72C2C;
  --red-dark:   #7D1515;
  --girls:      #C0395A;

  /* Lines */
  --line:      rgba(255,255,255,0.07);
  --line-soft: rgba(255,255,255,0.045);
  --line-hard: rgba(255,255,255,0.12);

  /* Status */
  --live:      #D72C2C;
  --final:     rgba(245,245,245,0.45);
  --scheduled: #C89A1F;

  /* Type */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Shape */
  --pill: 999px;
  --shadow-cta: 0 12px 34px -10px rgba(155,27,27,0.7);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout shell ── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
main { flex: 1 0 auto; padding: 48px 0 80px; }

/* ── Page header ── */
.page-head { margin-bottom: 40px; }
.eyebrow {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red); flex-shrink: 0; }
.page-title {
  font-family: var(--font-display); font-size: clamp(44px, 6vw, 76px);
  line-height: 0.92; letter-spacing: 1.5px; color: #fff;
}
.page-title em { color: var(--red); font-style: normal; }
.page-lead { color: var(--text-mid); font-weight: 300; max-width: 560px; margin-top: 14px; line-height: 1.7; }

/* ── Nav (injected by nav.js) ── */
.ab-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 32px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,0.97); backdrop-filter: blur(10px);
}
.ab-nav img.ab-logo { height: 46px; width: auto; }
.ab-nav-links { display: flex; gap: 26px; align-items: center; }
.ab-nav-links > a {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.2s;
}
.ab-nav-links > a:hover, .ab-nav-links > a.active { color: var(--text); }
.ab-nav-links > a.active { position: relative; }
.ab-nav-links > a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: var(--red);
}
.ab-nav-cta {
  background: var(--red); color: #fff !important; padding: 9px 22px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  transition: background 0.2s; display: inline-block;
}
.ab-nav-cta:hover { background: var(--red-dark) !important; }
.ab-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.ab-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }
.ab-mobile-menu { display: none; flex-direction: column; background: rgba(13,13,13,0.99); padding: 8px 20px 20px; border-bottom: 1px solid var(--line); }
.ab-mobile-menu.open { display: flex; }
.ab-mobile-menu > a {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-mid);
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.ab-mobile-menu > a.active { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase; border: none;
  padding: 12px 26px; transition: background 0.2s, transform 0.1s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-hard); }
.btn-ghost:hover { border-color: var(--red); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Filter chips ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--line-hard); color: var(--text-mid);
  background: transparent; cursor: pointer; transition: all 0.15s; font-family: var(--font-body);
}
.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Panels / cards ── */
.panel { background: var(--panel); border: 1px solid var(--line); }
.card { background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.15s; }
.card:hover { border-color: var(--line-hard); }

/* ── Forms ── */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: 8px;
}
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-hard); color: var(--text);
  font-family: var(--font-body); font-size: 14px; padding: 13px 15px; transition: border-color 0.2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); }
.input::placeholder { color: var(--text-dim); }
.textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--panel-2); border: 1px solid var(--line-hard); border-left: 3px solid var(--red);
  color: var(--text); padding: 14px 22px; font-size: 13px; z-index: 500;
  transition: transform 0.3s ease; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { border-left-color: #2f9e44; }
.toast.err { border-left-color: var(--red-bright); }

/* ── States ── */
.state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.spinner {
  width: 28px; height: 28px; border: 2px solid var(--line-hard); border-top-color: var(--red);
  border-radius: 50%; margin: 0 auto 16px; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Status pills ── */
.pill {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  padding: 4px 10px; display: inline-block;
}
.pill.live { background: rgba(215,44,44,0.15); color: var(--live); }
.pill.live::before { content: '● '; }
.pill.final { background: rgba(245,245,245,0.06); color: var(--final); }
.pill.scheduled { background: rgba(200,154,31,0.12); color: var(--scheduled); }

/* ── Footer ── */
.ab-footer {
  flex-shrink: 0; border-top: 1px solid var(--line); padding: 32px 0;
  color: var(--text-dim); font-size: 12px;
}
.ab-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ab-footer a { color: var(--text-mid); }
.ab-footer a:hover { color: var(--text); }

/* ── Section title ── */
.sec-title {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 1px;
  color: #fff; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .ab-nav { padding: 10px 20px; }
  .ab-nav-links { display: none; }
  .ab-hamburger { display: flex; }
  .field-row { grid-template-columns: 1fr; }
}
