/* ============================================
   ECLIPSE PICKLEBALL — DESIGN SYSTEM
   Theme: night / glow / blacklight pickleball

   Palette:
     --bg:        #0B0E1A  (near-black navy court-at-night)
     --bg-raised: #131831  (card surfaces)
     --accent:    #C6FF3D  (glow-ball lime)
     --accent-2:  #FF3DCC  (blacklight magenta)
     --text:      #E8E6F0  (soft lavender white)
     --text-dim:  #8B8FA3  (muted slate)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0B0E1A;
  --bg-raised: #131831;
  --bg-raised-2: #1B2142;
  --accent: #C6FF3D;
  --accent-2: #FF3DCC;
  --text: #E8E6F0;
  --text-dim: #8B8FA3;
  --border: rgba(232, 230, 240, 0.1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow background, fixed, behind all content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 15% -5%, rgba(198,255,61,0.10), transparent 60%),
    radial-gradient(ellipse 600px 500px at 105% 15%, rgba(255,61,204,0.09), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.4em; }
h3 { font-size: 1.25rem; margin-top: 1.8em; }

p { margin: 0 0 1.2em; color: var(--text); }
.lede { font-size: 1.15rem; color: var(--text-dim); }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo-mark { color: var(--accent); display: flex; flex-shrink: 0; }
.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1px;
}

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-raised);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ============ HERO ============ */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 48ch; margin-top: 16px; }

/* Glow trail signature element */
.glow-trail {
  position: absolute;
  top: 30px;
  right: -60px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

@media (max-width: 760px) {
  .glow-trail { display: none; }
}

/* ============ ARTICLE LAYOUT ============ */
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

article {
  max-width: 700px;
}

article .container { max-width: 700px; }

.toc {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}
.toc h2 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }

/* ============ PRODUCT CARDS ============ */
.product-slot { margin: 36px 0; }

.product-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.product-card.featured {
  border-color: rgba(198, 255, 61, 0.35);
  background: linear-gradient(135deg, var(--bg-raised), var(--bg-raised-2));
  box-shadow: 0 0 0 1px rgba(198,255,61,0.06), 0 20px 40px -20px rgba(198,255,61,0.15);
}

.product-card .pc-image {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .pc-image img { width: 100%; height: 100%; object-fit: cover; }

.pc-body { flex: 1; min-width: 0; }

.pc-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}

.pc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text);
}

.pc-blurb {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.pc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pc-cta {
  display: inline-block;
  background: var(--accent);
  color: #0B0E1A;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
}
.pc-cta:hover { text-decoration: none; background: #d9ff7a; }

/* Comparison list at end of article */
.compare-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
.compare-list .product-card { padding: 18px; }
.compare-list .pc-image { width: 72px; height: 72px; }

@media (max-width: 600px) {
  .product-card { flex-direction: column; align-items: flex-start; }
  .pc-row { width: 100%; }
}

/* ============ CALLOUT BOXES ============ */
.callout {
  border-left: 3px solid var(--accent-2);
  background: rgba(255, 61, 204, 0.06);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent-2); }

/* ============ CARD GRID (homepage) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.guide-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.guide-card:hover { border-color: rgba(198,255,61,0.3); transform: translateY(-2px); }
.guide-card a.card-link { color: var(--text); text-decoration: none; }
.guide-card h3 { margin-top: 0; font-size: 1.1rem; }
.guide-card p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 0; }
.guide-card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.footer-brand .logo-mark { color: var(--accent); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.footer-nav a { color: var(--text-dim); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-bottom p { margin: 0; }
.footer-disclosure { font-style: italic; }

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; }
}
