@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #07080a;
  --bg-panel: #101216;
  --bg-panel-2: #16181e;
  --border: #26282f;
  --text: #f4f5f7;
  --text-dim: #9a9da5;
  --accent: #ffcf6b;
  --accent-2: #ffe6ad;
  --danger: #ff5c5c;
  --success: #6bffb0;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% -10%, #1a1d24 0%, var(--bg) 45%) fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Header ---------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7,8,10,0.85);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Anton'; font-size: 22px; letter-spacing: 1px; }
.brand .bracket { color: var(--accent); }
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.pill-btn {
  border: 1px solid var(--accent); color: var(--accent) !important; padding: 6px 14px; border-radius: 999px;
  font-weight: 600; font-size: 13px;
}
.pill-btn:hover { background: var(--accent); color: #101216 !important; text-decoration: none; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 56px 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(255,207,107,0.12), transparent 60%);
}
.hero h1 { font-size: clamp(34px, 6vw, 64px); margin: 0 0 6px; }
.hero p { color: var(--text-dim); font-size: 17px; max-width: 560px; margin: 0 auto; }
.corner-frame { display: inline-block; position: relative; padding: 4px 26px; }
.corner-frame::before, .corner-frame::after,
.corner-frame b::before, .corner-frame b::after { content: ""; position: absolute; width: 18px; height: 18px; border: 3px solid var(--accent); }
.corner-frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-frame::after { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner-frame b::before { bottom: 0; left: 0; border-right: none; border-top: none; position:absolute; }
.corner-frame b::after { bottom: 0; right: 0; border-left: none; border-top: none; position:absolute; }

/* ---------------- Cards / grid ---------------- */
.section { padding: 40px 0; }
.section-title { font-size: 26px; margin-bottom: 22px; display:flex; align-items:center; gap:10px;}
.section-title .accent-bar { width: 6px; height: 26px; background: var(--accent); display:inline-block; border-radius: 3px;}

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.event-card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.matchup { display: flex; align-items: center; background: #000; }
.matchup img { width: 50%; height: 92px; object-fit: cover; display:block; }
.matchup .vs { position: absolute; }
.matchup-wrap { position: relative; }
.vs-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--accent); color: #101216; font-family: 'Anton'; font-size: 13px;
  width: 34px; height: 34px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 0 0 4px var(--bg-panel);
}
.event-card .body { padding: 16px 18px; flex: 1; display:flex; flex-direction:column; gap: 8px;}
.event-card .teams { font-family:'Anton'; font-size: 18px; line-height:1.25; }
.event-card .meta { color: var(--text-dim); font-size: 13px; }
.badge { display:inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 3px 9px; border-radius: 999px; text-transform: uppercase;}
.badge.live { background: rgba(107,255,176,0.15); color: var(--success); }
.badge.soon { background: rgba(255,207,107,0.15); color: var(--accent); }
.card-cta { margin-top: auto; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; text-align:center;
}
.btn-primary { background: var(--accent); color: #101216; }
.btn-primary:hover { background: var(--accent-2); text-decoration:none; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration:none; }
.btn-danger { background: var(--danger); color: #17090a; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { display:block; width:100%; }

/* ---------------- Forms ---------------- */
label { display:block; font-size: 13px; color: var(--text-dim); margin-bottom: 4px; font-weight:600; }
input, select, textarea {
  width: 100%; background: #0c0d10; border: 1px solid var(--border); color: var(--text);
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.field { margin-bottom: 16px; }
.checkbox-row { display:flex; align-items:center; gap:8px; }
.checkbox-row input { width: auto; }
.form-card { background: var(--bg-panel); border:1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 640px; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------------- Flash ---------------- */
.flash { padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash.success { background: rgba(107,255,176,0.12); color: var(--success); border: 1px solid rgba(107,255,176,.3); }
.flash.error { background: rgba(255,92,92,0.12); color: var(--danger); border: 1px solid rgba(255,92,92,.3); }

/* ---------------- Tables ---------------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing:.5px; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------------- Admin shell ---------------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.admin-sidebar { border-right: 1px solid var(--border); padding: 24px 14px; background: #0b0c0f; }
.admin-sidebar a { display:block; padding: 9px 12px; border-radius: 8px; color: var(--text-dim); font-size: 14px; margin-bottom: 2px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--bg-panel-2); color: var(--text); text-decoration:none; }
.admin-main { padding: 28px 32px; }
.stat-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap:16px; margin-bottom: 28px;}
.stat-card { background: var(--bg-panel); border:1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-card .num { font-family:'Anton'; font-size: 30px; color: var(--accent); }
.stat-card .label { color: var(--text-dim); font-size: 13px; }

/* ---------------- Photo grid (workspace + public gallery) ---------------- */
.photo-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.photo-tile { background: var(--bg-panel); border:1px solid var(--border); border-radius: 10px; overflow:hidden; position:relative;}
.photo-tile img { width:100%; height: 160px; object-fit: cover; display:block; }
.photo-tile .tile-body { padding: 8px 10px; font-size:12px; color: var(--text-dim); }
.photo-tile .tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px;}
.tag-chip { background: rgba(255,207,107,0.12); color: var(--accent); border-radius: 999px; padding: 2px 8px; font-size:11px; }
.photo-tile .select-box { position:absolute; top:8px; left:8px; width:20px; height:20px; }
.photo-tile .pub-badge { position:absolute; top:8px; right:8px; font-size:10px; padding:2px 6px; border-radius:6px; font-weight:700;}
.pub-badge.on { background: var(--success); color:#08150e;}
.pub-badge.off { background:#3a3c44; color: var(--text-dim);}

.workspace-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:16px; padding:14px; background:var(--bg-panel); border:1px solid var(--border); border-radius: var(--radius);}
.workspace-toolbar input[type=text] { width:auto; min-width:220px; }

.empty-state { text-align:center; padding: 60px 20px; color: var(--text-dim); }
.empty-state h3 { color: var(--text); margin-bottom:8px; }

.footer { border-top:1px solid var(--border); padding: 30px 0; text-align:center; color: var(--text-dim); font-size:13px; margin-top: 60px;}

.school-banner { width:100%; height:110px; object-fit:cover; border-radius: 8px; }
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display:flex; overflow-x:auto; gap:4px; padding: 10px; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Bundle pricing ---------- */
.bundle-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255,207,107,0.12) 0%, rgba(255,207,107,0.04) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.bundle-banner strong { color: var(--text); font-size: 15px; }
.bundle-price { color: var(--accent); font-weight: 700; font-size: 16px; margin-left: 8px; }

.tag-buy-link {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  margin-left: -4px;
  transition: background 0.15s, color 0.15s;
}
.tag-buy-link:hover {
  background: var(--accent);
  color: var(--bg);
}

.bundle-upsell {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
}
.bundle-upsell-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}
.bundle-upsell-option:hover {
  border-color: var(--accent);
}

.bundle-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 6px;
  margin: 16px 0;
}
.bundle-preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.tag-prices-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}
.tag-prices-panel h3 { color: var(--text); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.data-table input[type="number"] { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
