/*
Theme Name: GOAT James
Theme URI: https://goatjames.com
Author: GOAT James
Author URI: https://goatjames.com
Description: A fan-site theme for LeBron James coverage — Sixers-era colors, a live stats center, a memorabilia vault (custom post type), aggregated news, and a community hub with real AJAX-backed polls and a daily trivia challenge. Built for goatjames.com.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: goatjames
*/

/* ===================================================================
   GOATJAMES.COM — "DECISION 4.0" THEME
   Rebrand for LeBron James' move to the Philadelphia 76ers (2026)
   Design tokens below — change these 6 values to re-skin the whole site
   =================================================================== */

:root{
  /* ---- Color: pulled from official Sixers brand marks ---- */
  --navy:        #002B5C;   /* deep background / jumbotron */
  --royal:       #006BB6;   /* primary brand blue */
  --crimson:     #ED174C;   /* action / alert / CTA red */
  --steel:       #C4CED4;   /* silver — muted text, hairlines on dark */
  --ink:         #0A1420;   /* near-black, for max-contrast text on white */
  --paper:       #F5F7FA;   /* off-white page background */
  --white:       #FFFFFF;

  /* semantic aliases */
  --bg:          var(--paper);
  --bg-dark:     var(--navy);
  --text:        var(--ink);
  --text-dim:    #5A6B7A;
  --text-on-dark:#E7EEF5;
  --accent:      var(--crimson);
  --accent-2:    var(--royal);
  --line:        #DCE3E9;
  --line-dark:   rgba(196,206,212,0.25);

  /* ---- Type ---- */
  --f-display: "Anton", "Arial Narrow", sans-serif;      /* jumbotron headlines */
  --f-body:    "Work Sans", "Segoe UI", sans-serif;       /* body copy */
  --f-mono:    "JetBrains Mono", "Consolas", monospace;   /* stat numerals */

  /* ---- Scale ---- */
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 10px 30px -12px rgba(0,10,30,0.35);
  --maxw: 1200px;
}

/* ---------------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }

h1,h2,h3,.stat-num{
  font-family:var(--f-display);
  font-weight:400;
  letter-spacing:0.3px;
  text-transform:uppercase;
  line-height:1.02;
  margin:0 0 .4em;
}
h1{ font-size:clamp(2.6rem, 6vw, 5.4rem); }
h2{ font-size:clamp(1.8rem, 3.6vw, 2.8rem); }
h3{ font-size:1.15rem; letter-spacing:0.4px; }
p{ margin:0 0 1em; color:var(--text-dim); }
.eyebrow{
  font-family:var(--f-mono);
  font-size:.72rem;
  letter-spacing:2.5px;
  text-transform:uppercase;
  color:var(--accent);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:8px; height:8px;
  background:var(--accent);
  display:inline-block;
  transform:rotate(45deg);
}

/* Focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline:3px solid var(--royal);
  outline-offset:2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------------------------------------------------------------- */
/* SCORE-BUG TOP TICKER (signature motif reused across all pages)   */
.ticker{
  background:var(--navy);
  color:var(--steel);
  overflow:hidden;
  white-space:nowrap;
  border-bottom:1px solid var(--line-dark);
  font-family:var(--f-mono);
  font-size:.78rem;
  letter-spacing:.5px;
}
.ticker__track{
  display:inline-block;
  padding:9px 0;
  animation:ticker-scroll 38s linear infinite;
}
.ticker__track span{ margin:0 2.2em; }
.ticker__track span b{ color:var(--white); }
@keyframes ticker-scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* ---------------------------------------------------------------- */
/* NAV */
.nav{
  background:var(--white);
  border-bottom:3px solid var(--navy);
  position:sticky; top:0; z-index:50;
}
.nav__row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px;
}
.nav__brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--f-display);
  font-size:1.35rem;
  letter-spacing:.5px;
}
.nav__brand .dot{ width:14px; height:14px; background:var(--crimson); transform:rotate(45deg); }
.nav__links{ display:flex; gap:28px; font-size:.92rem; font-weight:600; }
.nav__links a{ position:relative; padding:4px 0; color:var(--text); }
.nav__links a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:3px; width:0;
  background:var(--crimson); transition:width .2s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after{ width:100%; }
.nav__cta{
  background:var(--crimson); color:var(--white); padding:10px 18px;
  border-radius:var(--radius); font-weight:700; font-size:.85rem;
  letter-spacing:.4px; text-transform:uppercase;
}
.nav__toggle{ display:none; }
@media (max-width:860px){
  .nav__links{ display:none; }
  .nav__toggle{ display:block; background:none; border:none; font-size:1.4rem; cursor:pointer; }
}

/* ---------------------------------------------------------------- */
/* BUTTONS */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:var(--radius);
  font-weight:700; font-size:.9rem; letter-spacing:.4px; text-transform:uppercase;
  border:2px solid transparent; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn--primary{ background:var(--crimson); color:var(--white); box-shadow:0 8px 20px -8px rgba(237,23,76,.55); }
.btn--ghost{ background:transparent; border-color:var(--white); color:var(--white); }
.btn--ghost-dark{ background:transparent; border-color:var(--navy); color:var(--navy); }
.btn--royal{ background:var(--royal); color:var(--white); box-shadow:0 8px 20px -8px rgba(0,107,182,.5); }

/* ---------------------------------------------------------------- */
/* HERO */
.hero{
  background:
    radial-gradient(circle at 15% 20%, rgba(0,107,182,.35), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(237,23,76,.28), transparent 50%),
    var(--navy);
  color:var(--white);
  padding:96px 0 64px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"23";
  position:absolute; right:-40px; top:-60px;
  font-family:var(--f-display);
  font-size:min(46vw,560px);
  color:rgba(255,255,255,.04);
  line-height:1;
}
.hero__grid{
  display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center;
  position:relative; z-index:1;
}
.hero__sub{ color:var(--steel); max-width:46ch; font-size:1.05rem; }
.hero__actions{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }
.hero__badges{ display:flex; gap:22px; margin-top:40px; flex-wrap:wrap; }
.hero__badge b{ font-family:var(--f-mono); font-size:1.5rem; color:var(--white); display:block; }
.hero__badge span{ font-size:.72rem; color:var(--steel); text-transform:uppercase; letter-spacing:1px; }

/* Court panel — signature illustration, pure CSS/SVG, no external images */
.court{
  aspect-ratio:1/1.05; background:var(--royal);
  border-radius:var(--radius-lg); position:relative; overflow:hidden;
  border:4px solid rgba(255,255,255,.15);
}
.court__line{ position:absolute; border:3px solid rgba(255,255,255,.55); }
.court__circle{ position:absolute; border-radius:50%; border:3px solid rgba(255,255,255,.55); }
.court__num{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--f-display); color:rgba(255,255,255,.9); font-size:9rem; line-height:1;
}
@media (max-width:960px){
  .hero__grid{ grid-template-columns:1fr; }
}

/* ---------------------------------------------------------------- */
/* SECTIONS */
section{ padding:80px 0; }
.section--dark{ background:var(--navy); color:var(--white); }
.section--dark p{ color:var(--steel); }
.section--tight{ padding:56px 0; }
.section-head{ max-width:640px; margin-bottom:44px; }

/* Card grid */
.grid{ display:grid; gap:22px; }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--4{ grid-template-columns:repeat(4,1fr); }
.grid--2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:960px){ .grid--3,.grid--4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid--3,.grid--4,.grid--2{ grid-template-columns:1fr; } }

.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:26px; transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.card--dark{ background:#0F3560; border-color:var(--line-dark); }
.card--dark p{ color:var(--steel); }

/* Stat tile */
.stat-tile{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px 20px; text-align:left;
}
.stat-num{
  font-family:var(--f-mono); font-weight:700; font-size:2.1rem;
  color:var(--navy); text-transform:none;
}
.stat-label{ font-size:.78rem; color:var(--text-dim); text-transform:uppercase; letter-spacing:1px; }

/* Timeline (signature: real chronological career route, not decorative numbering) */
.route{ position:relative; padding:40px 0 10px; }
.route__line{
  position:absolute; left:0; right:0; top:66px; height:4px;
  background:linear-gradient(90deg,var(--royal),var(--crimson));
  z-index:0;
}
.route__stops{ display:flex; justify-content:space-between; position:relative; z-index:1; gap:8px; }
.route__stop{ text-align:center; flex:1; min-width:110px; }
.route__dot{
  width:22px; height:22px; border-radius:50%; background:var(--white);
  border:4px solid var(--crimson); margin:0 auto 14px;
}
.route__stop:nth-child(even) .route__dot{ border-color:var(--royal); }
.route__year{ font-family:var(--f-mono); font-size:.78rem; color:var(--accent); }
.route__team{ font-weight:700; margin-top:4px; }
.route__note{ font-size:.8rem; color:var(--text-dim); }
@media (max-width:800px){
  .route__stops{ flex-direction:column; }
  .route__line{ left:26px; top:0; bottom:0; width:4px; height:auto; right:auto; }
  .route__stop{ display:flex; align-items:flex-start; gap:16px; text-align:left; margin-bottom:26px; }
  .route__dot{ margin:0; flex-shrink:0; }
}

/* Table (stats pages) */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius-lg); }
table{ width:100%; border-collapse:collapse; font-size:.9rem; min-width:720px; }
thead th{
  background:var(--navy); color:var(--white); text-align:left; padding:12px 14px;
  font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:1px;
  position:sticky; top:0;
}
tbody td{ padding:11px 14px; border-top:1px solid var(--line); font-family:var(--f-mono); }
tbody td:first-child, thead th:first-child{ font-family:var(--f-body); font-weight:600; }
tbody tr:hover{ background:var(--paper); }
tbody tr.is-highlight{ background:#FFF3F6; }

/* Filter pills */
.pills{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:24px; }
.pill{
  padding:9px 16px; border-radius:999px; border:1px solid var(--line); background:var(--white);
  font-size:.82rem; font-weight:600; cursor:pointer;
}
.pill.is-active{ background:var(--navy); color:var(--white); border-color:var(--navy); }

/* Memorabilia grid item */
.mem-item{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; }
.mem-item__frame{
  aspect-ratio:4/3; background:linear-gradient(135deg,var(--navy),var(--royal));
  display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.85);
  font-family:var(--f-mono); font-size:.75rem; letter-spacing:1px; text-align:center; padding:14px;
}
.mem-item__body{ padding:18px; }
.mem-item__tag{
  display:inline-block; font-family:var(--f-mono); font-size:.68rem; letter-spacing:1px;
  text-transform:uppercase; color:var(--accent); border:1px solid var(--accent);
  padding:3px 8px; border-radius:4px; margin-bottom:10px;
}
.mem-item__price{ font-family:var(--f-mono); font-weight:700; color:var(--navy); }

/* Footer */
footer{ background:var(--ink); color:var(--steel); padding:56px 0 28px; font-size:.88rem; }
.footer__grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; margin-bottom:36px; }
.footer__grid h4{ color:var(--white); font-size:.85rem; letter-spacing:1px; text-transform:uppercase; margin-bottom:14px; }
.footer__grid a{ display:block; padding:4px 0; opacity:.85; }
.footer__grid a:hover{ opacity:1; text-decoration:underline; }
.footer__bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.78rem; }
@media (max-width:800px){ .footer__grid{ grid-template-columns:1fr 1fr; } }

/* Social share row */
.share-row{ display:flex; gap:10px; flex-wrap:wrap; }
.share-btn{
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--navy); color:var(--white); font-size:.85rem; font-weight:700;
}
.share-btn:hover{ background:var(--crimson); }

/* Utility */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.flex{ display:flex; }
.gap-12{ gap:12px; }
.small{ font-size:.82rem; }
.badge-live{
  display:inline-flex; align-items:center; gap:6px; font-family:var(--f-mono); font-size:.72rem;
  color:var(--crimson); text-transform:uppercase; letter-spacing:1px;
}
.badge-live .pulse{ width:8px; height:8px; border-radius:50%; background:var(--crimson); animation:pulse 1.4s infinite; }

/* Live data panel (populated by js/theme.js via balldontlie.io) */
.live-panel{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:20px; font-family:var(--f-mono); font-size:.86rem; color:var(--text-dim);
}
.live-panel table{ min-width:0; font-size:.85rem; }
.live-panel thead th{ position:static; }
.live-panel[data-state="error"]{ color:var(--crimson); }

/* Poll bars (community.html) */
.poll-option{
  width:100%; text-align:left; background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius); padding:14px 16px; margin-bottom:10px; cursor:pointer;
  position:relative; overflow:hidden;
}
.poll-option:disabled{ cursor:default; }
.poll-bar__fill{
  position:absolute; left:0; top:0; bottom:0; width:0%; background:rgba(0,107,182,.14);
  transition:width .5s ease; z-index:0;
}
.poll-option span{ position:relative; z-index:1; display:flex; justify-content:space-between; font-weight:600; }
.poll-bar__pct{ font-family:var(--f-mono); color:var(--text-dim); font-weight:400; }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }

/* ---------------------------------------------------------------- */
/* Entry content (the_content() output on single posts/pages) —
   readable body typography, distinct from the display-font UI chrome. */
.entry-content{ font-size:1.05rem; color:var(--text); max-width:70ch; }
.entry-content p{ color:var(--text); }
.entry-content h2,.entry-content h3,.entry-content h4{
  font-family:var(--f-body); text-transform:none; letter-spacing:0; font-weight:700;
  margin-top:1.6em;
}
.entry-content img{ border-radius:var(--radius-lg); margin:1.2em 0; }
.entry-content a{ text-decoration:underline; color:var(--royal); }
.entry-content ul,.entry-content ol{ padding-left:1.4em; color:var(--text); }
.entry-content blockquote{
  border-left:4px solid var(--crimson); margin:1.4em 0; padding:.4em 0 .4em 1.2em; color:var(--text-dim); font-style:italic;
}

/* Comments (comments.php) */
.comments-area{ margin-top:20px; }
.comment-form p{ margin-bottom:14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"]{
  width:100%; padding:12px 14px; border-radius:6px; border:1px solid var(--line); font-family:var(--f-body);
}
