/* Top 10 Pickleball Eye Protection Glasses - stylesheet
   Palette: navy (base) + pickleball-ball green/yellow (accent) */

:root {
  --navy: #10233d;
  --navy-light: #16345c;
  --accent: #c6e94a;   /* pickleball-yellow-green */
  --accent-dark: #9fc72b;
  --ink: #1b2430;
  --muted: #5b6b7d;
  --card-bg: #ffffff;
  --page-bg: #f4f7f5;
  --border: #e2e8e4;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(16, 35, 61, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.5;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 48px 0 40px;
  text-align: center;
}

.site-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 10px;
}

.site-header h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.site-header .subtitle {
  margin: 0 auto;
  max-width: 620px;
  color: #cfd9e6;
  font-size: 1.05rem;
}

/* Intro */
.intro {
  padding: 32px 0 8px;
}

.intro p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Ad slots */
.ad-slot {
  margin: 28px 0;
  padding: 14px;
  border: 1px dashed #b9c4cf;
  border-radius: var(--radius);
  background: #eef2f4;
  text-align: center;
  list-style: none;
}

.ad-slot--inline {
  margin: 0;
}

.ad-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Product list */
.product-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.product-card > img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 140px;
  max-height: 140px;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  background: #f7f9f7;
  border-radius: 10px;
}

.product-body {
  min-width: 0;
}

.rank {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-body h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.price {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--navy-light);
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 4px;
}

.product-body p {
  margin: 0 0 10px;
  color: var(--ink);
}

.product-body .why {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--navy-light);
  font-weight: 700;
  text-decoration: none;
}

.product-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.guide-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.guide-link:hover {
  color: var(--navy-light);
  text-decoration: underline;
}

/* Buying guide */
.buying-guide {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.buying-guide h2 {
  margin-top: 0;
}

.buying-guide ul {
  margin: 0;
  padding-left: 20px;
}

.buying-guide li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #b7c3d1;
  padding: 28px 0;
  margin-top: 40px;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.footer-nav {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Simple content pages (About / Contact / Privacy) */
.page-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin: 32px 0;
}

.page-content h2 {
  margin-top: 28px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--ink);
}

.page-content a {
  color: var(--navy-light);
  font-weight: 600;
}

/* Site nav (guide hub) */
.site-nav {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav .wrap {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}

.site-nav a {
  display: block;
  padding: 14px 14px;
  color: #b7c3d1;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Page intro / eyebrow heading used on topic pages */
.topic-intro {
  padding: 36px 0 4px;
}

.topic-intro .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--navy-light);
  font-weight: 800;
  margin: 0 0 8px;
}

.topic-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  color: var(--navy);
}

.topic-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 700px;
}

/* Feature card: single-product spotlight on each topic page
   Matches product-card image sizing from list.html exactly */
.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 28px 0 36px;
}

.feature-card > img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 140px;
  max-height: 140px;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  background: #f7f9f7;
  border-radius: 10px;
}

.feature-card .product-body {
  min-width: 0;
}

.feature-card .eyewear-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 6px;
}

.feature-card .tie-in {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.95rem;
}

.feature-card .tie-in strong {
  color: var(--navy-light);
}

/* Long-form content sections */
.content-section {
  margin: 36px 0;
}

.content-section h2 {
  font-size: 1.5rem;
  margin: 0 0 12px;
  color: var(--navy);
}

.content-section h3 {
  font-size: 1.12rem;
  margin: 22px 0 8px;
  color: var(--navy-light);
}

.content-section p {
  margin: 0 0 14px;
}

.content-section ul,
.content-section ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.content-section li {
  margin-bottom: 8px;
}

.callout {
  background: #eef7de;
  border-left: 4px solid var(--accent-dark);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.callout strong {
  color: var(--navy);
}

/* "More guides" cross-link grid */
.guide-grid-section {
  margin: 44px 0 12px;
}

.guide-grid-section h2 {
  font-size: 1.3rem;
  margin: 0 0 4px;
  color: var(--navy);
}

.guide-grid-section > p {
  color: var(--muted);
  margin: 0 0 18px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.guide-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dark);
}

.guide-card .eyebrow-small {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 6px;
}

.guide-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--navy-light);
}

.guide-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 560px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card > img {
    width: 100%;
    height: 180px;
    max-height: 180px;
  }

  .rank {
    top: 10px;
    left: 10px;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card > img {
    width: 100%;
    height: 200px;
    max-height: 200px;
  }
}
