/* =========================================================
   SportEdge Guide - Ultra Premium Design System v2
   ========================================================= */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === DESIGN TOKENS === */
:root {
  --bg:            #05080f;
  --bg-2:          #080d1a;
  --surface:       #0c1220;
  --surface-2:     #111827;
  --surface-3:     #172035;
  --surface-glass: rgba(12,18,32,0.7);
  --accent:        #00e676;
  --accent-2:      #00c4ff;
  --accent-dark:   #00b85e;
  --accent-glow:   rgba(0,230,118,0.15);
  --accent-glow-2: rgba(0,196,255,0.08);
  --text:          #eef2f8;
  --text-muted:    #6b7fa3;
  --text-dim:      #3a4a63;
  --border:        rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.12);
  --border-accent: rgba(0,230,118,0.3);
  --max-w:         1280px;
  --post-w:        820px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --font-display:  'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.4);
  --shadow-md:     0 8px 40px rgba(0,0,0,0.5);
  --shadow-lg:     0 24px 80px rgba(0,0,0,0.6);
  --glow-green:    0 0 60px rgba(0,230,118,0.18), 0 0 120px rgba(0,230,118,0.06);
  --glow-blue:     0 0 60px rgba(0,196,255,0.12);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #4dffa0; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.py-4 { padding: 3rem 0; }

/* === GRADIENT TEXT === */
.grad-text {
  background: linear-gradient(135deg, #fff 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(5,8,15,0.8);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.04em; display: flex; align-items: center; gap: 2px;
}
.logo-mark { width: 1.05em; height: 1.05em; flex: none; margin-right: 0.4em; }
.logo-sport { color: var(--text); }
.logo-edge { color: var(--accent); }
.logo:hover { text-decoration: none; opacity: 0.9; }

.nav-links { display: flex; gap: 0.15rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 0.45rem 0.85rem; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); background: var(--accent-glow); text-decoration: none;
}
.nav-links .nav-cta a {
  background: var(--accent); color: #000 !important; border-radius: 100px;
  padding: 0.45rem 1.1rem; font-weight: 700;
}
.nav-links .nav-cta a:hover { background: #4dffa0; color: #000 !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav-links {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(5,8,15,0.97); backdrop-filter: blur(24px);
    flex-direction: column; padding: 1.25rem 1.5rem; gap: 0;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); width: 100%; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 1rem 0; font-size: 0.95rem; border-radius: 0; }
  .nav-links .nav-cta a { border-radius: 0; background: none; color: var(--accent) !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 68px;
}

/* Background layers */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?w=1920&q=85&auto=format&fit=crop');
  background-size: cover; background-position: center 30%;
  filter: brightness(0.25) saturate(0.6);
}
/* Dot grid overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle, rgba(0,230,118,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* Gradient overlay */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(5,8,15,0.75) 0%,
    rgba(0,230,118,0.03) 40%,
    rgba(5,8,15,0.9) 100%);
}

/* Floating orbs */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 1;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,230,118,0.12) 0%, transparent 70%);
  top: -100px; right: -50px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,196,255,0.08) 0%, transparent 70%);
  bottom: 0; left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 55% 1fr; gap: 5rem; align-items: center;
}

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--border-accent);
  background: linear-gradient(90deg, rgba(0,230,118,0.1), rgba(0,230,118,0.04));
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.45rem 1.1rem; border-radius: 100px; margin-bottom: 1.75rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.04em;
  color: #fff; margin-bottom: 1.5rem;
}
.hero-title .line-grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-desc {
  font-size: 1.15rem; color: var(--text-muted); max-width: 500px;
  margin-bottom: 2.25rem; line-height: 1.75;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* Stats row */
.hero-stats { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.hero-stat {
  flex: 1; padding: 1.25rem 1rem; text-align: center;
  border-right: 1px solid var(--border); background: var(--surface-glass);
  backdrop-filter: blur(12px);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 800; color: var(--accent);
  line-height: 1; display: block; margin-bottom: 0.2rem;
}
.hero-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Hero right: featured card */
.hero-feature {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg), var(--glow-green);
  border: 1px solid var(--border-accent);
}
.hero-feature::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(5,8,15,0.95) 0%, transparent 55%);
}
.hero-feature-img { width: 100%; height: 440px; object-fit: cover; display: block; }
.hero-feature-body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; z-index: 3;
}
.hero-feature-cat {
  display: inline-block; background: var(--accent); color: #000;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.3rem 0.9rem; border-radius: 100px; margin-bottom: 0.85rem;
}
.hero-feature-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 0.6rem;
}
.hero-feature-meta { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.hero-feature a.cover-link {
  position: absolute; inset: 0; z-index: 4;
}

@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.5rem; }
  .hero-feature { display: none; }
  .hero-stats { max-width: 100%; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #000; font-weight: 700; font-size: 0.92rem;
  padding: 0.85rem 2rem; border-radius: 100px; transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(0,230,118,0.4), 0 1px 0 rgba(255,255,255,0.1) inset;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #4dffa0; color: #000; transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0,230,118,0.55); text-decoration: none;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--border-bright); color: var(--text);
  font-weight: 600; font-size: 0.92rem;
  padding: 0.85rem 2rem; border-radius: 100px; transition: all 0.25s;
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--accent-glow); border-color: var(--border-accent);
  color: var(--accent); transform: translateY(-2px); text-decoration: none;
}

/* =========================================================
   SECTION CHROME
   ========================================================= */
.home-section { padding: 6rem 0; }
.home-section-alt { padding: 6rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem;
}
.section-label::before, .section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border-accent);
  display: inline-block; width: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 800;
  letter-spacing: -0.035em; color: var(--text); line-height: 1.15;
}
.section-title .accent { color: var(--accent); }
.section-desc { font-size: 1.05rem; color: var(--text-muted); margin-top: 0.85rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* =========================================================
   SPORT CARDS
   ========================================================= */
.sports-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.sport-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer; text-decoration: none !important; display: block;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s;
  border: 1px solid var(--border);
}
.sport-card::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: 5;
  background: linear-gradient(135deg, rgba(0,230,118,0.25), transparent 50%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.sport-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-lg), var(--glow-green); }
.sport-card:hover::after { opacity: 1; }
.sport-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.sport-card:hover .sport-card-img { transform: scale(1.1); }
.sport-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,8,15,0.97) 0%, rgba(5,8,15,0.3) 50%, transparent 100%);
  transition: background 0.35s;
}
.sport-card:hover .sport-card-overlay {
  background: linear-gradient(to top, rgba(5,8,15,1) 0%, rgba(0,230,118,0.06) 60%, transparent 100%);
}
.sport-card-body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.75rem; z-index: 3;
}
.sport-card-icon { font-size: 1.75rem; margin-bottom: 0.6rem; display: block; }
.sport-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; color: #fff; display: block; margin-bottom: 0.3rem;
  transition: color 0.2s;
}
.sport-card:hover .sport-card-name { color: var(--accent); }
.sport-card-count { font-size: 0.75rem; color: rgba(255,255,255,0.45); display: block; }
.sport-card-arrow {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 4;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,230,118,0.12); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7) rotate(-45deg); transition: all 0.3s;
  color: var(--accent); font-size: 1rem;
}
.sport-card:hover .sport-card-arrow { opacity: 1; transform: scale(1) rotate(0deg); }

@media (max-width: 960px) {
  .sports-grid { grid-template-columns: repeat(2,1fr); gap: 0.75rem; }
  .sport-card { aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .sport-card { aspect-ratio: 16/9; }
}

/* =========================================================
   BLOG POST CARDS - PREMIUM
   ========================================================= */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.post-grid-2col { grid-template-columns: repeat(2, 1fr); }

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.post-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: linear-gradient(135deg, rgba(0,230,118,0.06), transparent 50%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), var(--glow-green); border-color: var(--border-accent); }
.post-card:hover::before { opacity: 1; }

.post-card-image-wrap {
  position: relative; overflow: hidden; height: 230px; flex-shrink: 0; z-index: 1;
}
.post-card-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image-wrap img { transform: scale(1.08); }
.post-card-image-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,8,15,0.85) 0%, transparent 55%);
  pointer-events: none;
}
.post-card-cat-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.post-card-read-badge {
  position: absolute; bottom: 1rem; right: 1rem; z-index: 2;
  background: rgba(5,8,15,0.7); backdrop-filter: blur(8px);
  color: var(--text-muted); font-size: 0.72rem; font-weight: 600;
  padding: 0.25rem 0.65rem; border-radius: 100px;
  border: 1px solid var(--border-bright);
}

.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; z-index: 1; position: relative; }
.post-card-meta { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.post-card-date { font-size: 0.76rem; color: var(--text-muted); }

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.75rem; color: var(--text);
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--accent); text-decoration: none; }

.post-card-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }

.post-card-footer { display: flex; align-items: center; justify-content: space-between; }
.post-card-readmore {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.83rem; font-weight: 700; color: var(--accent); transition: gap 0.2s;
}
.post-card-readmore:hover { gap: 0.85rem; text-decoration: none; }

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CATEGORY PILL
   ========================================================= */
.category-pill {
  display: inline-flex; align-items: center;
  background: rgba(0,230,118,0.12); border: 1px solid rgba(0,230,118,0.35);
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem; border-radius: 100px; transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.category-pill:hover {
  background: var(--accent); color: #000; text-decoration: none; border-color: var(--accent);
}

/* =========================================================
   PAGE HERO (blog index, category pages, about, contact)
   ========================================================= */
.page-hero {
  position: relative; padding: 7rem 0 4.5rem; margin-top: 68px; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle, rgba(0,230,118,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.2) saturate(0.5);
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,8,15,0.7) 0%, transparent 100%);
}
.page-hero-orb {
  position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, rgba(0,230,118,0.1) 0%, transparent 65%);
  filter: blur(60px); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.25rem); font-weight: 800;
  letter-spacing: -0.04em; margin: 0.75rem 0 1rem; line-height: 1.12;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text); }
.breadcrumb-sep { color: var(--text-dim); margin: 0 0.25rem; }

/* =========================================================
   CATEGORY HUB HERO
   ========================================================= */
.category-hero {
  position: relative; height: 440px; overflow: hidden; margin-top: 68px; display: flex; align-items: flex-end;
}
.category-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.35) saturate(0.7);
}
.category-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle, rgba(0,230,118,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.category-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(5,8,15,0.98) 0%, rgba(5,8,15,0.3) 60%, transparent 100%);
}
.category-hero-content {
  position: relative; z-index: 3; padding: 3rem 1.5rem;
  max-width: var(--max-w); width: 100%; margin: 0 auto;
}
.category-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem,4vw,3.25rem); font-weight: 800; letter-spacing:-0.04em; color:#fff;
  margin: 0.6rem 0 0.5rem;
}
.category-hero-content p { color: var(--text-muted); font-size: 1.05rem; }

/* =========================================================
   BLOG POST LAYOUT
   ========================================================= */
.post-wrapper { margin-top: 68px; }

.post-hero {
  position: relative; height: 500px; overflow: hidden;
}
.post-hero img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.45) saturate(0.75);
}
.post-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,8,15,0.2) 0%, rgba(5,8,15,0.9) 100%);
}

.post-header { padding: 3rem 0 2rem; }
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.7rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.18; color: var(--text); margin-top: 1rem;
}
.post-header-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.83rem; color: var(--text-muted); margin-top: 1.25rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}

.post-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 3.5rem;
  padding: 3rem 0 6rem; align-items: start;
}

/* Article body */
.post-content { min-width: 0; }
.post-intro {
  font-size: 1.15rem; color: var(--text-muted); line-height: 1.85;
  padding: 1.75rem 2rem; border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(0,230,118,0.06), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); margin: 3rem 0 1.1rem; line-height: 1.2;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 2.25rem 0 0.85rem;
}
.post-content p { margin-bottom: 1.35rem; color: var(--text); }
.post-content ul, .post-content ol { margin: 0 0 1.35rem 1.5rem; color: var(--text); }
.post-content li { margin-bottom: 0.55rem; }
.post-content strong { color: #fff; font-weight: 700; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Tables */
.post-content table {
  width: 100%; border-collapse: collapse;
  margin: 2.5rem 0; font-size: 0.9rem;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.post-content th {
  background: var(--surface-3); color: var(--accent);
  padding: 1rem 1.25rem; text-align: left; font-weight: 700; font-family: var(--font-display);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border-accent);
}
.post-content td { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.post-content tr:hover td { background: rgba(0,230,118,0.04); }

/* Sidebar */
.post-sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}
.sidebar-widget:hover { border-color: var(--border-bright); }
.sidebar-widget h4 {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.1rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.sidebar-post-list { list-style: none; }
.sidebar-post-list li { border-bottom: 1px solid var(--border); }
.sidebar-post-list li:last-child { border-bottom: none; }
.sidebar-post-list a {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.7rem 0; font-size: 0.87rem; color: var(--text-muted); transition: color 0.2s; line-height: 1.45;
}
.sidebar-post-list a:hover { color: var(--accent); text-decoration: none; }
.sidebar-post-list a::before { content: '→'; color: var(--text-dim); font-size: 0.75rem; flex-shrink: 0; margin-top: 0.1rem; }

@media (max-width: 1060px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .post-hero { height: 340px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-container { margin: 2.5rem 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.65rem; overflow: hidden; transition: border-color 0.25s;
}
.faq-item.open { border-color: var(--border-accent); box-shadow: 0 0 0 1px rgba(0,230,118,0.08); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; background: var(--surface-2);
  font-family: var(--font-display); font-size: 0.97rem; font-weight: 600; color: var(--text);
  cursor: pointer; border: none; text-align: left; gap: 1rem; transition: background 0.2s;
}
.faq-question:hover { background: var(--surface-3); }
.faq-item.open .faq-question { background: var(--surface-3); color: var(--accent); }
.faq-toggle {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,230,118,0.1); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.2rem; line-height: 1;
  transition: transform 0.3s, background 0.2s;
}
.faq-toggle::before { content: '+'; }
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #000; }
.faq-answer { display: none; padding: 0 1.5rem 1.4rem; background: var(--surface); }
.faq-answer p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }
.faq-item.open .faq-answer { display: block; }

@media (max-width: 600px) {
    }

/* =========================================================
   NEWSLETTER STRIP
   ========================================================= */
.newsletter-strip {
  position: relative; overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 4rem; text-align: center;
}
.newsletter-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,230,118,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.newsletter-strip::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,230,118,0.12) 0%, transparent 65%);
  filter: blur(60px); top: -100px; right: -100px; pointer-events: none;
}
.newsletter-strip .inner { position: relative; z-index: 2; }
.newsletter-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem;
}
.newsletter-strip p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 460px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 0.9rem 1.5rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 100px;
  color: var(--text); font-size: 0.95rem; outline: none; transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--border-accent); box-shadow: 0 0 0 3px rgba(0,230,118,0.08); }
.newsletter-form input::placeholder { color: var(--text-dim); }
@media (max-width: 520px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-strip { padding: 2.5rem 1.5rem; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand .logo { font-size: 1.4rem; margin-bottom: 1.25rem; display: inline-block; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 270px; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.35rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 2rem; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   SCROLL REVEAL - only apply hidden state after JS loads
   ========================================================= */
body.js-ready .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   CUSTOM SCROLLBAR
   ========================================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =========================================================
   UTILITY
   ========================================================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* =========================================================
   TABLE WRAPPER - mobile scrollable tables
   ========================================================= */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius); margin: 2rem 0;
  border: 1px solid var(--border);
}
.table-wrap table {
  margin: 0; border: none; border-radius: 0; min-width: 520px;
}

/* =========================================================
   POST META (author / date bar in post header)
   ========================================================= */
.post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.83rem; color: var(--text-muted);
  margin-top: 0.9rem; margin-bottom: 2rem;
}
.post-meta .sep { color: var(--text-dim); }

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */
.toc {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem;
}
.toc h2 {
  font-size: 0.72rem !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent) !important; margin: 0 0 0.9rem !important;
  padding: 0 !important; border: none !important;
}
.toc ol { margin: 0 0 0 1.25rem; padding: 0; }
.toc li { margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text-muted); }
.toc a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.toc a:hover { color: var(--accent); }

/* =========================================================
   STEP LIST
   ========================================================= */
.step-list { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: steps; }
.step-list > li {
  counter-increment: steps;
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.step-list > li:last-child { border-bottom: none; }
.step-list > li::before {
  content: counter(steps);
  flex-shrink: 0; width: 32px; height: 32px;
  background: var(--accent); color: #000; font-weight: 800;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; margin-top: 0.15rem;
}

/* =========================================================
   TIP / INFO BOX
   ========================================================= */
.tip-box {
  background: linear-gradient(90deg, rgba(0,230,118,0.08), rgba(0,230,118,0.02));
  border: 1px solid var(--border-accent); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; margin: 2rem 0;
  font-size: 0.93rem; color: var(--text-muted); line-height: 1.75;
}
.tip-box strong { color: var(--accent); }

/* =========================================================
   FORMULA / CODE BOX
   ========================================================= */
.formula-box {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.formula-box code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem; color: var(--accent-2); white-space: pre-wrap; word-break: break-word;
}

/* =========================================================
   RELATED ARTICLES
   ========================================================= */
.related-articles {
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.related-articles h2 {
  font-size: 1rem !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted) !important; margin-bottom: 1rem !important;
  padding: 0 !important; border: none !important;
}
.related-articles ul { list-style: none; margin: 0; padding: 0; }
.related-articles li { margin-bottom: 0.65rem; padding-left: 1.1rem; position: relative; }
.related-articles li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-size: 0.85rem;
}
.related-articles a { color: var(--text-muted); font-size: 0.93rem; transition: color 0.2s; }
.related-articles a:hover { color: var(--accent); text-decoration: none; }

/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-section { margin-top: 3.5rem; }
.faq-section h2 { margin-bottom: 1.5rem; }

/* =========================================================
   PERFORMANCE - reduce motion + mobile GPU
   ========================================================= */
@media (max-width: 768px) {
  .hero-orb { display: none; }
  .hero-orb-1, .hero-orb-2 { display: none; }
  .page-hero-orb { display: none; }
  .sport-card:hover { transform: none; }
  .post-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, body.js-ready .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   MOBILE GLOBAL FIXES
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .home-section { padding: 3.5rem 0; }
  .home-section-alt { padding: 3.5rem 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary, .hero-ctas .btn-outline { width: 100%; justify-content: center; }
  .newsletter-strip { padding: 2rem 1rem; }
  .post-intro { padding: 1.25rem 1rem; }
  .post-content h2 { font-size: 1.4rem; }
  .post-content h3 { font-size: 1.1rem; }
  .toc { padding: 1.1rem 1.25rem; }
}
