/*
Theme Name: Dunkademics
Theme URI: https://dunkademics.com
Author: Billy Doran
Author URI: https://dunkademics.com
Description: Official theme for Dunkademics — the world's premier freestyle slam dunk platform.
Version: 2.0
License: Proprietary
Text Domain: dunkademics
*/

/* ── CSS Variables ─────────────────────────────── */
:root {
  --bg: #0a0a0b;
  --surface: #161618;
  --surface-2: #1f1f22;
  --red: #d6202a;
  --white: #f5f4f1;
  --muted: #8d8d92;
  --line: #2a2a2d;
  --display: 'Anton', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'Space Mono', monospace;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ─────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 70px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }

/* ── Navigation ──────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px; max-width: 1180px; margin: 0 auto; gap: 8px;
}
.nav-logo img { height: 62px; width: auto; flex-shrink: 0; }
.navlinks {
  display: flex; gap: 0; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1; justify-content: center;
}
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a {
  color: var(--muted); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 10px; white-space: nowrap; flex-shrink: 0; transition: color .2s;
}
.navlinks a:hover, .navlinks a.current-menu-item,
.navlinks a.current-page-ancestor { color: var(--white); }
.nav-cta {
  background: var(--red); color: var(--white); padding: 9px 18px;
  border-radius: 3px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; flex-shrink: 0;
}

/* ── Hero / Page Title ───────────────────────────── */
.page-hero { padding: 60px 0 48px; text-align: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 800px 300px at 50% 0%, rgba(214,32,42,0.13), transparent 70%); }
.page-hero h1 {
  font-family: var(--display); font-size: clamp(40px,8vw,80px);
  text-transform: uppercase; line-height: 0.95;
}
.page-hero h1 span { color: var(--red); }
.page-hero p { color: var(--muted); max-width: 540px; margin: 14px auto 0; font-size: 16px; }
.section-tag {
  font-family: var(--mono); font-size: 11px; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 10px;
}
.section-title {
  font-family: var(--display); font-size: clamp(28px,5vw,48px);
  text-transform: uppercase; line-height: 1; margin-bottom: 16px;
}

/* ── Buttons ─────────────────────────────────────── */
.btn { display: inline-block; padding: 12px 24px; border-radius: 4px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; transition: opacity .2s; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-ghost { border: 1px solid var(--line); color: var(--muted); }
.btn-ghost:hover { border-color: var(--red); color: var(--white); }

/* ── Cards ───────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}

/* ── Menu Grid (Homepage) ────────────────────────── */
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-top: 28px;
}
.menu-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px 20px; font-family: var(--display); font-size: 20px;
  text-transform: uppercase; transition: border-color .2s, transform .2s; display: block;
}
.menu-item:hover { border-color: var(--red); transform: translateY(-2px); }
.menu-item .sub { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 400; text-transform: none; margin-top: 6px; }

/* ── Dunker Archive Grid ─────────────────────────── */
.dunker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.dunker-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 20px; transition: border-color .2s, transform .2s; display: block; position: relative; overflow: hidden;
}
.dunker-card:hover { border-color: var(--red); transform: translateY(-3px); }
.dunker-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .25s;
}
.dunker-card:hover::before { transform: scaleY(1); }
.card-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 20px; color: var(--white); margin-bottom: 12px;
}
.card-index { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.card-name { font-family: var(--display); font-size: 22px; text-transform: uppercase; margin-top: 4px; }
.card-nick { color: var(--red); font-size: 12px; font-weight: 600; margin-top: 2px; }
.card-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Archive Controls ────────────────────────────── */
.archive-controls { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.archive-controls input, .archive-controls select {
  background: var(--surface); border: 1px solid var(--line); color: var(--white);
  padding: 10px 16px; border-radius: 6px; font-size: 14px; font-family: var(--body);
}
.archive-controls input { flex: 1; min-width: 200px; }
.archive-controls input:focus, .archive-controls select:focus { outline: none; border-color: var(--red); }

/* ── Dunker Profile ───────────────────────────────── */
.d-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.d-hero-inner { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; }
.d-hero-text { flex: 1; min-width: 260px; }
.back-link { font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-block; margin-bottom: 20px; transition: color .2s; }
.back-link:hover { color: var(--red); }
.d-name { font-family: var(--display); font-size: clamp(44px,8vw,80px); text-transform: uppercase; line-height: 0.92; }
.d-nick { color: var(--red); font-size: 15px; font-weight: 700; margin-top: 8px; }
.d-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { background: var(--surface-2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--muted); }
.d-ig a { color: var(--red); font-size: 13px; font-weight: 600; display: inline-block; margin-top: 10px; }
.d-desc { color: var(--muted); font-size: 15px; line-height: 1.75; margin-top: 14px; max-width: 620px; }

/* ── Video Grid ───────────────────────────────────── */
.video-section { padding: 50px 0; border-bottom: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.video-block { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.video-embed { position: relative; padding-bottom: 56.25%; }
.video-embed.short-embed { padding-bottom: 177.78%; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 14px 16px; }
.video-title { font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.4; }
.video-year { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.video-type { display: inline-block; background: var(--red); color: var(--white); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 6px; text-transform: uppercase; }

/* ── Stat boxes ───────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-top: 24px; }
.stat-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.stat-box .num { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--white); }
.stat-box .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ── Instagram card ───────────────────────────────── */
.ig-card { display: flex; align-items: center; gap: 20px; padding: 28px; background: linear-gradient(135deg,rgba(214,32,42,0.08),rgba(131,58,180,0.08)); border-top: 3px solid; border-image: linear-gradient(90deg,#d6202a,#833ab4,#fd1d1d) 1; }
.ig-icon { color: var(--muted); flex-shrink: 0; }
.ig-info { flex: 1; }
.ig-title { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.ig-meta { font-size: 12px; color: var(--muted); font-family: var(--mono); margin-bottom: 14px; }
.ig-btn { display: inline-block; padding: 10px 20px; background: linear-gradient(90deg,#d6202a,#833ab4); color: var(--white); border-radius: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Footer ───────────────────────────────────────── */
footer { padding: 40px 24px; border-top: 1px solid var(--line); display: flex; justify-content: center; align-items: center; gap: 12px; }
footer img { height: 32px; }
footer span { color: var(--muted); font-size: 13px; font-family: var(--mono); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 760px) {
  .section { padding: 48px 0; }
  .d-hero-inner { flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; }
}
