/* Sports Card Maker — Blog Styles */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #0a0a0a;
  color: #e5e5e5;
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid #262626;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  font-style: italic;
  text-transform: uppercase;
}

.logo-icon-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-icon-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #3b82f6;
  border-radius: 8px;
  transform: rotate(6deg);
}

.logo-icon-wrap img {
  position: relative;
  width: 36px;
  height: 36px;
  z-index: 1;
}

.logo .yellow { color: #facc15; }
.logo .blue   { color: #3b82f6; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #a3a3a3;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: #fff; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: #f97316;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 900;
  text-decoration: none;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Space Grotesk', sans-serif;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #ea6c0a; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid #1a1a1a;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #e5e5e5;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  color: #737373;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #a3a3a3; }

.footer-copy {
  color: #404040;
  font-size: 0.75rem;
  margin: 0;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs {
  margin: 1.5rem 0 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: #525252;
}

.breadcrumbs li a {
  color: #525252;
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumbs li a:hover { color: #a3a3a3; }
.breadcrumbs li[aria-current="page"] { color: #a3a3a3; }
.breadcrumbs .sep { color: #2a2a2a; padding: 0 0.1rem; }

/* ── Article page ────────────────────────────────────────── */
.article-page {
  padding-bottom: 4rem;
}

.article {
  max-width: 720px;
  margin: 2rem auto 0;
}

/* Pillar pages get a bit more breathing room */
.pillar-page .article {
  max-width: 800px;
}

.article-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 1rem 0 0.75rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #525252;
  margin-bottom: 1.75rem;
}

.reading-time::before { content: '· '; }

.hero-wrap {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── Article body typography ─────────────────────────────── */
.article-body {
  font-size: 1.0625rem;
  color: #d4d4d4;
}

.article-body h1 {
  display: none; /* H1 already rendered in article-header */
}

.article-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 2.5rem 0 0.875rem;
  letter-spacing: -0.02em;
  padding-top: 1.5rem;
  border-top: 1px solid #1a1a1a;
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #e5e5e5;
  margin: 1.75rem 0 0.5rem;
}

.article-body p { margin: 0 0 1.25rem; }
.article-body p:last-child { margin-bottom: 0; }

.article-body a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(96, 165, 250, 0.4);
  transition: color 0.15s, text-decoration-color 0.15s;
}
.article-body a:hover {
  color: #93c5fd;
  text-decoration-color: rgba(147, 197, 253, 0.6);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.article-body li { margin-bottom: 0.4rem; }
.article-body li > ul,
.article-body li > ol { margin-bottom: 0; }

.article-body strong { color: #fff; font-weight: 700; }
.article-body em { color: #d4d4d4; font-style: italic; }

.article-body hr {
  border: none;
  border-top: 1px solid #1a1a1a;
  margin: 2.5rem 0;
}

/* Blockquote = CTA / callout box */
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(59, 130, 246, 0.04));
  border-left: 3px solid #f97316;
  border-radius: 0 10px 10px 0;
}

.article-body blockquote p {
  margin: 0;
  color: #e5e5e5;
}

.article-body blockquote strong { color: #fb923c; }

/* ── Related articles ────────────────────────────────────── */
.related-articles {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #1a1a1a;
}

.related-articles h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.related-card:hover { border-color: #333; }

.related-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.related-img-placeholder {
  height: 130px;
  background: #1a1a1a;
}

.related-body { padding: 0.875rem; }

.related-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e5e5;
  margin-bottom: 0.375rem;
  line-height: 1.35;
}

.related-excerpt {
  font-size: 0.8rem;
  color: #737373;
  line-height: 1.5;
}

.back-to-blog {
  max-width: 720px;
  margin: 2rem auto 0;
}

.back-to-blog a {
  color: #525252;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.back-to-blog a:hover { color: #a3a3a3; }

/* ── Blog index ──────────────────────────────────────────── */
.blog-index {
  padding: 3rem 0 4rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.75rem;
}

.blog-tagline {
  color: #737373;
  font-size: 1.0625rem;
  margin: 0;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f97316;
  margin: 0 0 1rem;
}

.pillars-section { margin-bottom: 3rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.pillar-card {
  display: block;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(249, 115, 22, 0.04));
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.pillar-card:hover {
  border-color: #2563a8;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.11), rgba(249, 115, 22, 0.07));
}

.pillar-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.pillar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #e5e5e5;
  line-height: 1.35;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: #333; }

.card-img-link { display: block; overflow: hidden; }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.card-img-link:hover .card-img { transform: scale(1.03); }

.card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #141414, #1a1a1a);
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #e5e5e5;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.card-title a:hover { color: #fff; }

.card-excerpt {
  font-size: 0.875rem;
  color: #737373;
  line-height: 1.5;
  margin: 0 0 1rem;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #404040;
  margin-top: auto;
}

.card-meta .reading-time::before { content: '· '; }

.empty-state {
  color: #404040;
  font-size: 1rem;
  text-align: center;
  padding: 4rem 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .logo-text { font-size: 1rem; }
  .article { margin-top: 1.25rem; }
  .article-header h1 { font-size: 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .logo-text { display: none; }
}
