/* Baseball Parents University — dark neon theme, phone-first */
:root {
  --bg: #070b14;
  --bg2: #0b1120;
  --panel: #0e1526;
  --panel2: #111a30;
  --line: #1e2a47;
  --cyan: #00e5ff;
  --mag: #ff2ec4;
  --text: #e9efff;
  --muted: #93a0c4;
  --good: #3dff8f;
  --danger: #ff5470;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 500px at 50% -80px, #12203c 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* ---------- Header & tabs ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.logo { width: 46px; height: 46px; flex: 0 0 auto; filter: drop-shadow(0 0 6px rgba(0,229,255,.55)); }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--mag));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.6rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tab:hover { color: var(--text); border-color: var(--cyan); }
.tab.is-active {
  color: #04121a;
  background: linear-gradient(90deg, var(--cyan), #7df9ff);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(0,229,255,.45);
}

/* ---------- Panels ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.panel { display: none; }
.panel.is-active { display: block; animation: fadein 0.2s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.25rem 0 0.75rem; }
h2 { font-size: 1.45rem; margin: 1.75rem 0 0.5rem; color: var(--cyan); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1rem; margin: 0 0 0.4rem; }
.lede { font-size: 1.05rem; color: #cdd8f5; max-width: 42rem; }
p { margin: 0.6rem 0; }

/* ---------- Overview widgets ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.stat {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--mag);
  text-shadow: 0 0 12px rgba(255,46,196,.5);
}
.stat-label { font-size: 0.8rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 0.75rem 0; }
table.clock {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}
table.clock th, table.clock td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line); }
table.clock th { color: var(--cyan); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
table.clock tr:last-child td { border-bottom: none; }
table.clock td:first-child { color: var(--mag); font-weight: 700; white-space: nowrap; }

.check-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.check-list li { padding: 0.4rem 0 0.4rem 1.8rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--good); font-weight: 800; }

.callout {
  background: rgba(0,229,255,.07);
  border: 1px solid rgba(0,229,255,.35);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.coach-principle {
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--mag);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  padding: 0.65rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s ease;
}
.btn:hover { box-shadow: 0 0 12px rgba(0,229,255,.4); }
.btn-primary {
  background: linear-gradient(90deg, var(--cyan), #6ff5ff);
  color: #04121a;
  border: none;
  box-shadow: 0 0 16px rgba(0,229,255,.35);
}
.btn-primary:hover { box-shadow: 0 0 22px rgba(0,229,255,.6); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.paypal { width: 100%; margin-top: 0.5rem; }

/* ---------- Program ---------- */
.phase-grid { display: grid; gap: 0.75rem; margin: 1rem 0; }
.phase-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.phase-range {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04121a;
  background: var(--mag);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.4rem;
}
.phase-card h3 { margin: 0.2rem 0 0.3rem; color: var(--text); }
.phase-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.selector-label { margin-top: 1.75rem; }
.practice-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.practice-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
}
.practice-btn small { display: block; font-weight: 400; color: var(--muted); font-size: 0.68rem; }
.practice-btn.is-active {
  border-color: var(--mag);
  box-shadow: 0 0 12px rgba(255,46,196,.4);
  background: var(--panel2);
}
.practice-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.practice-detail h3 { margin-top: 0; color: var(--mag); }
.practice-detail .goal { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.75rem; }
table.blocks { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.blocks th, table.blocks td { padding: 0.55rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.blocks th { color: var(--cyan); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
table.blocks tr:last-child td { border-bottom: none; }
table.blocks td:first-child { color: var(--mag); font-weight: 700; white-space: nowrap; }
table.blocks td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.cue { color: var(--cyan); }

/* ---------- Drills ---------- */
.drill-controls { margin: 1rem 0 0.5rem; }
#drill-search {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 1rem;
}
#drill-search:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,229,255,.3); }
.chip-row { display: flex; gap: 0.4rem; overflow-x: auto; margin-top: 0.6rem; padding-bottom: 0.2rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.chip.is-active { background: var(--mag); border-color: transparent; color: #1a0412; box-shadow: 0 0 10px rgba(255,46,196,.4); }
.result-count { color: var(--muted); font-size: 0.85rem; }
.drill-grid { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.drill-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.drill-card h4 { color: var(--text); font-size: 1.02rem; }
.drill-card h4 .num { color: var(--mag); margin-right: 0.4rem; }
.cat-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,.4);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-bottom: 0.4rem;
}
.drill-card dl { margin: 0.4rem 0 0; font-size: 0.9rem; }
.drill-card dt { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.5rem; }
.drill-card dd { margin: 0.15rem 0 0; }
.drill-card .vars { color: var(--muted); }
.no-results { color: var(--muted); text-align: center; padding: 2rem 0; }

/* ---------- Lineup ---------- */
.lineup-builder {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.lineup-form { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.lineup-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.lineup-form input, .lineup-form select,
.lineup-actions input, .saved-row select {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  width: 100%;
}
.lineup-form input:focus, .lineup-actions input:focus { outline: none; border-color: var(--cyan); }
.lineup-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; counter-reset: batting; }
.lineup-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.4rem;
  counter-increment: batting;
}
.lineup-list li::before {
  content: counter(batting);
  flex: 0 0 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(0,229,255,.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lineup-list .pname { flex: 1; font-weight: 600; }
.lineup-list .ppos {
  color: var(--mag);
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid rgba(255,46,196,.5);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
}
.lineup-list .mini {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.lineup-list .mini:hover { color: var(--text); border-color: var(--cyan); }
.lineup-list .mini.del:hover { color: var(--danger); border-color: var(--danger); }
.empty-note { color: var(--muted); font-size: 0.9rem; }
.muted { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.lineup-actions { display: grid; gap: 0.6rem; margin: 1rem 0; }
.save-lineup { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.saved-row { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; align-items: end; }

/* ---------- Store ---------- */
.guarantee-badge {
  display: inline-block;
  background: rgba(61,255,143,.1);
  border: 1px solid var(--good);
  color: var(--good);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin: 0.5rem 0 0.25rem;
  box-shadow: 0 0 12px rgba(61,255,143,.25);
}
.store-group { margin-top: 2rem; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }
.store-grid { display: grid; gap: 0.9rem; margin-top: 0.9rem; }
.product-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
}
.product-card h4 { font-size: 1.05rem; }
.product-card.featured { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0,229,255,.25); }
.product-card.mega { border-color: var(--mag); box-shadow: 0 0 18px rgba(255,46,196,.25); }
.product-card.bundle { border-style: dashed; }
.price { margin: 0.3rem 0; }
.old-price { color: var(--muted); text-decoration: line-through; margin-right: 0.5rem; }
.new-price { font-size: 1.6rem; font-weight: 800; color: var(--cyan); text-shadow: 0 0 12px rgba(0,229,255,.5); }
.value-line { color: var(--good); font-weight: 700; font-size: 0.9rem; margin: 0; }
.blurb { color: #cdd8f5; font-size: 0.93rem; flex: 1; }
.note { font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .brand-name { font-size: 1rem; }
.disclaimer { font-size: 0.78rem; }
.copyright { font-size: 0.78rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .phase-grid { grid-template-columns: repeat(3, 1fr); }
  .practice-selector { grid-template-columns: repeat(6, 1fr); }
  .drill-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .lineup-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .lineup-actions { grid-template-columns: 1fr auto auto auto; align-items: end; }
  h1 { font-size: 2.4rem; }
}
@media (min-width: 960px) {
  .drill-grid { grid-template-columns: repeat(3, 1fr); }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}
