/* ====================================================
   Youth Basketball — Shared Styles
   ==================================================== */

:root {
  --court: #c85a2a;
  --navy: #1c2b4a;
  --gold: #f5a020;
  --chalk: #fdf8f0;
  --grass: #2d6a2d;
  --red: #c0392b;
  --white: #fafaf8;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --card: #ffffff;
  --border: #e0ddd8;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--chalk);
  color: var(--ink);
  line-height: 1.6;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

/* HEADER */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200,90,42,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245,160,32,0.2) 0%, transparent 50%);
  color: white;
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🏀';
  position: absolute;
  font-size: 200px;
  opacity: 0.04;
  top: -30px;
  right: -20px;
  transform: rotate(-15deg);
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 10vw, 72px);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 12px;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 15px;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto 24px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* NAV BACK BUTTON */
.nav-back-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  border-right: 1.5px solid var(--border);
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  margin-right: 4px;
}
.nav-back-btn:hover { color: var(--navy); }

/* PHILOSOPHY STRIP */
.philosophy {
  background: var(--court);
  color: white;
  padding: 20px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.philosophy strong { color: var(--gold); }

/* NAV */
.week-nav {
  background: white;
  border-bottom: 2px solid var(--border);
  padding: 0 16px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.week-nav::-webkit-scrollbar { display: none; }

.nav-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-btn:hover { color: var(--navy); }
.nav-btn.active { color: var(--navy); border-bottom-color: var(--court); }

/* CONTAINER */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* FOOTER */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.site-footer-inner { margin: 0; }

/* SECTION */
.section { display: none; padding-top: 32px; }
.section.active { display: block; }

.section-header { margin-bottom: 24px; }

.week-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 1px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

/* GOAL BAR */
.goal-bar {
  background: var(--gold);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.goal-bar .icon { font-size: 22px; }
.goal-bar strong { font-size: 13px; display: block; }
.goal-bar span { font-size: 13px; color: #444; }

/* LEARNING STYLES */
.styles-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.style-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.style-chip.visual { background: #e8f4fd; color: #1a6fa8; }
.style-chip.auditory { background: #fef3e2; color: #b86c0a; }
.style-chip.kinesthetic { background: #e8f9ee; color: #1a7a3c; }
.style-chip.logical { background: #f3e8fd; color: #7a1ab8; }

/* DRILL CARD */
.drill-card {
  background: white;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.drill-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.drill-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.drill-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.drill-subtitle {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.drill-badge {
  flex-shrink: 0;
  background: var(--court);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.drill-body { padding: 16px 18px; }

.drill-body p { font-size: 14px; margin-bottom: 12px; color: #333; line-height: 1.6; }

.cue-box {
  background: #f9f7f3;
  border-left: 4px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 12px 0;
  font-size: 13px;
  font-style: italic;
  color: #555;
}

.cue-box strong { color: var(--ink); font-style: normal; }

.style-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.style-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
}

.style-tag.v { background: #e8f4fd; color: #1a6fa8; }
.style-tag.a { background: #fef3e2; color: #b86c0a; }
.style-tag.k { background: #e8f9ee; color: #1a7a3c; }
.style-tag.l { background: #f3e8fd; color: #7a1ab8; }

.win-tip {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.win-tip .tip-icon { flex-shrink: 0; font-size: 18px; }
.win-tip strong { display: block; font-size: 12px; color: #16a34a; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }

/* DIAGRAM */
.diagram-card {
  background: white;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}

.diagram-header {
  background: var(--navy);
  color: white;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diagram-body { padding: 20px 18px; }

svg { display: block; width: 100%; }

/* ARCHETYPE TABLE */
.archetype-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.archetype-card {
  background: white;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.archetype-emoji { font-size: 28px; }

.archetype-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.archetype-desc { font-size: 13px; color: var(--muted); }

.archetype-move {
  background: var(--navy);
  color: white;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  min-width: 120px;
  line-height: 1.4;
}

/* GEAR LIST */
.gear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.gear-item {
  background: white;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 16px;
  text-align: center;
}

.gear-item .gear-icon { font-size: 32px; margin-bottom: 8px; }
.gear-item .gear-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.gear-item .gear-price { color: var(--court); font-size: 13px; font-weight: 600; }
.gear-item .gear-why { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* MANTRA */
.mantra {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: white;
  margin-bottom: 24px;
}

.mantra h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 2px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.mantra p { font-size: 14px; opacity: 0.75; max-width: 380px; margin: 0 auto; font-weight: 300; }

/* CUES OVERVIEW */
.cues-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.cue-card {
  background: white;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.cue-number {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--ink);
  flex-shrink: 0;
}

.cue-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.cue-text span { font-size: 13px; color: var(--muted); }

/* STEPS LIST */
.steps {
  counter-reset: step;
  list-style: none;
  margin-bottom: 16px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.steps li::before {
  content: counter(step);
  width: 26px; height: 26px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 24px 0;
}

/* PHASE TRACKER */
.phase-track {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: white;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.phase-step {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  border-right: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.phase-step:last-child { border-right: none; }

.phase-step.active-phase {
  background: var(--navy);
  color: white;
}

.phase-step .phase-icon { font-size: 16px; display: block; margin-bottom: 4px; }

/* ====================================================
   LANDING PAGE — Portal Cards
   ==================================================== */

.landing-hero-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.9;
}

.portal-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px 40px;
}

.portal-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.portal-section-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.portal-card {
  background: white;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  padding: 22px 18px 18px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.portal-card.shooting::before    { background: var(--navy); }
.portal-card.dribbling::before   { background: var(--court); }
.portal-card.passing::before     { background: #2d6a2d; }
.portal-card.defense::before     { background: #7c3aed; }
.portal-card.rebounding::before  { background: var(--red); }

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.11);
}

.portal-icon { font-size: 36px; line-height: 1; }

.portal-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--navy);
  line-height: 1;
}

.portal-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.portal-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 6px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.18s;
  text-decoration: none;
  align-self: flex-start;
}

.portal-card:hover .portal-cta { background: #0f1a2e; }

.landing-info-strip {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 0;
}

.landing-info-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.landing-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
}

.landing-info-item strong { font-weight: 700; color: var(--navy); }

/* RESPONSIVE */
@media (max-width: 480px) {
  .gear-grid { grid-template-columns: 1fr 1fr; }
  .archetype-card { grid-template-columns: auto 1fr; }
  .archetype-move { display: none; }
  .phase-step { font-size: 9px; padding: 10px 2px; }
  .portal-grid { grid-template-columns: 1fr; }
}
