/* ==========================================================================
   Gainz Pro Blog Styles
   Premium, cinematic knowledge hub experience
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties for Blog
   ========================================================================== */
:root {
  --blog-hero-height: min(75vh, 700px);
  --category-nav-height: 64px;
  --reading-progress-height: 3px;
  --toc-width: 260px;
  --article-max-width: 720px;

  /* Category Colors */
  --cat-hypertrophy: oklch(72% 0.19 145);
  --cat-training: oklch(70% 0.18 200);
  --cat-programming: oklch(68% 0.16 280);
  --cat-technique: oklch(72% 0.17 45);
  --cat-recovery: oklch(70% 0.15 180);
  --cat-nutrition: oklch(72% 0.18 100);
  --cat-science: oklch(68% 0.14 260);
  --cat-cutting: oklch(70% 0.2 25);
  --cat-mindset: oklch(72% 0.16 320);
  --cat-tracking: oklch(70% 0.17 160);

  /* Animation Timings */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 180ms;
  --duration-normal: 260ms;
  --duration-slow: 400ms;
  --stagger-delay: 60ms;
}

/* ==========================================================================
   Base Styles - Ensure Dark Background on All Devices
   ========================================================================== */
html {
  background-color: #050505;
}

body {
  background-color: #050505;
  color: #f5f5f5;
  min-height: 100vh;
}

main {
  background-color: #050505;
  min-height: 100vh;
}

/* Ensure all sections have dark background */
section {
  background-color: #050505;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: oklch(72% 0.19 145);
  color: oklch(10% 0 0);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid oklch(100% 0 0);
  outline-offset: 2px;
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid oklch(72% 0.19 145);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid oklch(72% 0.19 145);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* High contrast focus for cards */
.article-card:focus-within {
  outline: 2px solid oklch(72% 0.19 145);
  outline-offset: 4px;
  border-radius: 16px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header & Navigation (Blog Pages)
   ========================================================================== */

/* Nav header - using element selector for blog posts without .header class */
header:not(.article-hero):not(.article-header) {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height, 60px);
  z-index: 1000;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s, border-color 0.3s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #f5f5f5;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f5f5f5;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f5f5f5;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  header:not(.article-hero):not(.article-header) {
    padding: 0 20px;
  }
  .nav-links {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex !important;
  }
  .nav-links {
    display: none !important;
  }
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  transition: color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #4ade80;
}

/* ==========================================================================
   Blog Hero Section - Enhanced
   ========================================================================== */
.blog-hero {
  position: relative;
  min-height: var(--blog-hero-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 100px;
  overflow: visible;
  z-index: 100;
}

/* Mobile responsive - reduce hero padding and height */
@media (max-width: 768px) {
  .blog-hero {
    min-height: auto;
    padding: 100px 20px 60px;
  }

  .blog-hero__content {
    max-width: 100%;
  }

  .blog-hero__badge {
    padding: 8px 16px;
    font-size: 11px;
    margin-bottom: 20px;
  }

  .blog-hero__title {
    font-size: clamp(32px, 8vw, 48px);
    margin-bottom: 16px;
  }

  .blog-hero__subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .blog-hero__search {
    margin: 0 auto 32px;
  }

  .blog-search {
    padding: 12px 20px;
  }

  .blog-search__input {
    font-size: 15px;
  }

  .blog-hero__topics {
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog-hero__topic {
    padding: 6px 12px;
    font-size: 12px;
  }

  .blog-hero__topics-label {
    font-size: 12px;
  }

  /* Reduce orb sizes on mobile */
  .blog-hero__orb--1 {
    width: 250px;
    height: 250px;
  }

  .blog-hero__orb--2 {
    width: 200px;
    height: 200px;
  }

  .blog-hero__orb--3 {
    width: 175px;
    height: 175px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 90px 16px 48px;
  }

  .blog-hero__title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .blog-hero__subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .blog-search {
    padding: 10px 16px;
    gap: 10px;
  }

  .blog-search__icon {
    width: 18px;
    height: 18px;
  }

  .blog-search__input {
    font-size: 14px;
  }

  .blog-hero__topics-label {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
  }

  .blog-hero__topics {
    justify-content: center;
  }
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated Gradient Orbs */
.blog-hero__orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blog-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orb-float 20s ease-in-out infinite;
}

.blog-hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, oklch(72% 0.19 145 / 40%) 0%, transparent 70%);
  top: -10%;
  left: 20%;
  animation-delay: 0s;
}

.blog-hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, oklch(70% 0.18 45 / 30%) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation-delay: -7s;
}

.blog-hero__orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, oklch(68% 0.16 280 / 25%) 0%, transparent 70%);
  top: 40%;
  left: -5%;
  animation-delay: -14s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 30px) scale(0.95);
  }
  75% {
    transform: translate(20px, 20px) scale(1.02);
  }
}

.blog-hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 60% at 50% 40%,
      oklch(72% 0.19 145 / 10%) 0%,
      transparent 60%
    ),
    radial-gradient(ellipse 60% 50% at 20% 80%, oklch(70% 0.18 45 / 6%) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 20%, oklch(68% 0.16 280 / 5%) 0%, transparent 50%);
}

.blog-hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(oklch(100% 0 0 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 2.5%) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, transparent 70%);
  opacity: 0.6;
}

/* Floating Particles */
.blog-hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.blog-hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: oklch(72% 0.19 145 / 50%);
  border-radius: 50%;
  animation: particle-float 18s linear infinite;
}

.blog-hero__particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.blog-hero__particle:nth-child(2) {
  left: 25%;
  animation-delay: -3s;
}
.blog-hero__particle:nth-child(3) {
  left: 40%;
  animation-delay: -6s;
}
.blog-hero__particle:nth-child(4) {
  left: 55%;
  animation-delay: -9s;
}
.blog-hero__particle:nth-child(5) {
  left: 70%;
  animation-delay: -12s;
}
.blog-hero__particle:nth-child(6) {
  left: 85%;
  animation-delay: -15s;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
    transform: translateY(80vh) translateX(10px) scale(1);
  }
  90% {
    opacity: 0.3;
    transform: translateY(10vh) translateX(-20px) scale(0.8);
  }
  100% {
    transform: translateY(-10vh) translateX(0) scale(0);
    opacity: 0;
  }
}

.blog-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.blog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: oklch(72% 0.19 145 / 10%);
  border: 1px solid oklch(72% 0.19 145 / 25%);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(80% 0.17 145);
  margin-bottom: 28px;
  animation: badge-pulse 3s ease-in-out infinite;
}

.blog-hero__badge svg {
  width: 16px;
  height: 16px;
}

@keyframes badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 oklch(72% 0.19 145 / 20%);
  }
  50% {
    box-shadow: 0 0 20px 5px oklch(72% 0.19 145 / 10%);
  }
}

.blog-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    #f5f5f5 0%,
    oklch(72% 0.19 145) 45%,
    oklch(82% 0.16 145) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-shimmer 8s ease-in-out infinite;
}

@keyframes title-shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 200% center;
  }
}

.blog-hero__subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  color: oklch(65% 0 0);
  margin-bottom: 48px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Enhanced Search Bar */
.blog-hero__search {
  position: relative;
  max-width: 540px;
  margin: 0 auto 48px;
  z-index: 9999;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: oklch(8% 0.005 145);
  border: 1px solid oklch(72% 0.19 145 / 20%);
  border-radius: 20px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px oklch(0% 0 0 / 20%), 0 24px 60px oklch(0% 0 0 / 50%),
    0 0 0 1px oklch(72% 0.19 145 / 8%), inset 0 1px 0 oklch(100% 0 0 / 4%);
  z-index: 9999;
}

/* Custom scrollbar for search results */
.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}

.search-results::-webkit-scrollbar-thumb {
  background: oklch(25% 0 0);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: oklch(35% 0 0);
  background-clip: content-box;
}

.search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.search-results__hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid oklch(100% 0 0 / 6%);
  font-size: 12px;
  color: oklch(55% 0 0);
  background: oklch(6% 0 0 / 80%);
  position: sticky;
  top: 0;
  z-index: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-results__hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  background: linear-gradient(180deg, oklch(18% 0 0) 0%, oklch(12% 0 0) 100%);
  border: 1px solid oklch(100% 0 0 / 12%);
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: oklch(70% 0 0);
  margin: 0 4px;
  box-shadow: 0 2px 4px oklch(0% 0 0 / 40%), inset 0 1px 0 oklch(100% 0 0 / 8%);
}

.search-results__list {
  padding: 8px;
}

.search-results__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 14px;
  margin: 4px 0;
  position: relative;
  overflow: hidden;
}

.search-results__item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, oklch(72% 0.19 145 / 0%) 0%, oklch(72% 0.19 145 / 0%) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.search-results__item:hover::before,
.search-results__item.active::before {
  background: linear-gradient(135deg, oklch(72% 0.19 145 / 15%) 0%, oklch(72% 0.19 145 / 5%) 100%);
  opacity: 1;
}

.search-results__item:hover,
.search-results__item.active {
  background: oklch(12% 0.01 145);
  transform: translateX(4px);
}

.search-results__item:hover .search-results__title,
.search-results__item.active .search-results__title {
  color: oklch(98% 0 0);
}

.search-results__icon {
  width: 22px;
  height: 22px;
  color: oklch(45% 0 0);
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
}

.search-results__item:hover .search-results__icon,
.search-results__item.active .search-results__icon {
  color: oklch(72% 0.19 145);
  transform: scale(1.15);
}

.search-results__content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.search-results__title {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: oklch(82% 0 0);
  transition: color 0.2s ease;
  text-align: left;
  line-height: 1.45;
}

.search-results__title mark {
  background: oklch(72% 0.19 145 / 30%);
  color: oklch(85% 0.15 145);
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  margin: 0 -1px;
}

.search-results__category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(55% 0 0);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: oklch(15% 0 0);
  padding: 6px 12px;
  border-radius: 8px;
  margin-top: 2px;
  transition: all 0.2s ease;
  border: 1px solid oklch(100% 0 0 / 5%);
}

.search-results__item:hover .search-results__category,
.search-results__item.active .search-results__category {
  background: oklch(72% 0.19 145 / 18%);
  color: oklch(75% 0.17 145);
  border-color: oklch(72% 0.19 145 / 25%);
}

.search-results__empty {
  padding: 40px 24px;
  text-align: center;
  color: oklch(55% 0 0);
  font-size: 15px;
}

.search-results__empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: oklch(25% 0 0);
}

.search-results__empty-hint {
  margin-top: 10px;
  font-size: 13px;
  color: oklch(42% 0 0);
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: oklch(6% 0 0);
  border: 1px solid oklch(100% 0 0 / 8%);
  border-radius: 100px;
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.blog-search:focus-within {
  border-color: oklch(72% 0.19 145 / 50%);
  box-shadow: 0 0 0 4px oklch(72% 0.19 145 / 8%), 0 12px 40px oklch(0% 0 0 / 50%);
  background: oklch(8% 0 0);
}

.blog-search__icon {
  width: 22px;
  height: 22px;
  color: oklch(50% 0 0);
  flex-shrink: 0;
  transition: color var(--duration-fast);
}

.blog-search:focus-within .blog-search__icon {
  color: oklch(72% 0.19 145);
}

.blog-search__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 17px;
  color: oklch(90% 0 0);
}

.blog-search__input::placeholder {
  color: oklch(40% 0 0);
}

.blog-search__loader {
  width: 20px;
  height: 20px;
  border: 2px solid oklch(72% 0.19 145 / 20%);
  border-top-color: oklch(72% 0.19 145);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.blog-search--loading .blog-search__loader {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Stats Row */
.blog-hero__stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.blog-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.blog-stat__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: oklch(92% 0 0);
  line-height: 1;
  letter-spacing: -0.02em;
}

.blog-stat__label {
  font-size: 13px;
  color: oklch(50% 0 0);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ==========================================================================
   Category Navigation - Enhanced
   ========================================================================== */
.category-nav {
  position: sticky;
  top: 60px;
  z-index: 50;
  background: oklch(4% 0 0 / 95%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(100% 0 0 / 5%);
  padding: 12px 24px;
}

.category-nav__container {
  max-width: 1200px;
  margin: 0 auto;
}

.category-nav__track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
  position: relative;
}

.category-nav__track::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: oklch(60% 0 0);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-normal) var(--ease-out-quart);
  position: relative;
}

.category-chip svg {
  display: none;
}

.category-chip:hover {
  background: oklch(100% 0 0 / 5%);
  color: oklch(85% 0 0);
}

.category-chip.active {
  background: oklch(72% 0.19 145);
  color: oklch(10% 0 0);
  font-weight: 600;
}

.category-chip.active:hover {
  background: oklch(75% 0.19 145);
}

/* Hide indicator - using solid background instead */
.category-nav__indicator {
  display: none;
}

/* ==========================================================================
   Featured Articles Section
   ========================================================================== */
.featured-section {
  padding: 60px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-section__header {
  margin-bottom: 36px;
}

.featured-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: oklch(94% 0 0);
  margin-bottom: 8px;
}

.featured-section__subtitle {
  font-size: 16px;
  color: oklch(55% 0 0);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(72% 0.19 145);
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, oklch(72% 0.19 145), oklch(72% 0.19 145 / 30%));
  border-radius: 2px;
}

.section-label svg {
  width: 16px;
  height: 16px;
}

.articles-count {
  font-size: 13px;
  color: oklch(50% 0 0);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Editor's Picks Section
   ========================================================================== */
.editors-picks {
  padding: 40px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.editors-picks__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.editors-picks__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: oklch(92% 0 0);
}

.editors-picks__nav {
  display: flex;
  gap: 10px;
}

.editors-picks__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(8% 0 0);
  border: 1px solid oklch(100% 0 0 / 10%);
  border-radius: 12px;
  color: oklch(60% 0 0);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.editors-picks__btn:hover {
  background: oklch(12% 0 0);
  border-color: oklch(72% 0.19 145 / 30%);
  color: oklch(82% 0.16 145);
}

.editors-picks__btn svg {
  width: 20px;
  height: 20px;
}

.editors-picks__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.editors-picks__track::-webkit-scrollbar {
  display: none;
}

.editors-picks__track .article-card--mini {
  min-width: 300px;
  max-width: 340px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.picks-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
  scroll-snap-type: x mandatory;
}

.picks-track::-webkit-scrollbar {
  display: none;
}

.picks-track .article-card {
  min-width: 320px;
  max-width: 360px;
  scroll-snap-align: start;
}

/* ==========================================================================
   Article Cards - Base Styles
   ========================================================================== */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: oklch(6% 0 0);
  border: 1px solid oklch(100% 0 0 / 8%);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-slow) var(--ease-out-expo);
  transform-style: preserve-3d;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    oklch(72% 0.19 145 / 6%) 0%,
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--duration-slow);
  pointer-events: none;
  z-index: 1;
}

.article-card:hover {
  border-color: oklch(72% 0.19 145 / 35%);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -20px oklch(72% 0.19 145 / 12%), 0 0 0 1px oklch(72% 0.19 145 / 8%);
}

.article-card:hover::before {
  opacity: 1;
}

/* Card Pattern Background */
.article-card__pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  opacity: 0.025;
  pointer-events: none;
  transition: opacity var(--duration-slow);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.article-card:hover .article-card__pattern {
  opacity: 0.05;
}

/* Pattern variations by category */
.article-card__pattern[data-pattern='hypertrophy'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 80 Q 50 10, 80 80' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Cpath d='M30 80 Q 50 25, 70 80' stroke='%2322c55e' stroke-width='1.5' fill='none'/%3E%3Cpath d='M40 80 Q 50 40, 60 80' stroke='%2322c55e' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

.article-card__pattern[data-pattern='training'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='25' y='42' width='50' height='16' rx='3' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Crect x='15' y='38' width='8' height='24' rx='2' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Crect x='77' y='38' width='8' height='24' rx='2' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

.article-card__pattern[data-pattern='programming'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='20' y='20' width='60' height='60' rx='4' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Cline x1='20' y1='40' x2='80' y2='40' stroke='%2322c55e' stroke-width='1'/%3E%3Cline x1='20' y1='60' x2='80' y2='60' stroke='%2322c55e' stroke-width='1'/%3E%3Cline x1='40' y1='20' x2='40' y2='80' stroke='%2322c55e' stroke-width='1'/%3E%3Cline x1='60' y1='20' x2='60' y2='80' stroke='%2322c55e' stroke-width='1'/%3E%3C/svg%3E");
}

.article-card__pattern[data-pattern='technique'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='35' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Ccircle cx='50' cy='50' r='22' stroke='%2322c55e' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='50' cy='50' r='8' stroke='%2322c55e' stroke-width='1' fill='none'/%3E%3Ccircle cx='50' cy='50' r='3' fill='%2322c55e'/%3E%3C/svg%3E");
}

.article-card__pattern[data-pattern='recovery'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 15 A 35 35 0 1 1 49.99 15' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Cpath d='M50 30 A 20 20 0 1 0 51 30' stroke='%2322c55e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

.article-card__pattern[data-pattern='nutrition'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='55' rx='28' ry='32' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Cpath d='M50 23 Q 56 12, 50 5' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Cpath d='M42 26 Q 38 18, 42 12' stroke='%2322c55e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

.article-card__pattern[data-pattern='science'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M35 85 L 50 25 L 65 85 Z' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Cline x1='40' y1='65' x2='60' y2='65' stroke='%2322c55e' stroke-width='2'/%3E%3Cline x1='35' y1='25' x2='65' y2='25' stroke='%2322c55e' stroke-width='2'/%3E%3C/svg%3E");
}

.article-card__pattern[data-pattern='cutting'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 70 L 50 30 L 80 70' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Cpath d='M25 60 L 50 35 L 75 60' stroke='%2322c55e' stroke-width='1.5' fill='none'/%3E%3Cpath d='M30 50 L 50 40 L 70 50' stroke='%2322c55e' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

.article-card__pattern[data-pattern='mindset'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 25 C 70 25, 80 45, 80 55 C 80 75, 50 90, 50 90 C 50 90, 20 75, 20 55 C 20 45, 30 25, 50 25' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

.article-card__pattern[data-pattern='tracking'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolyline points='20,70 35,50 50,60 65,35 80,45' stroke='%2322c55e' stroke-width='2' fill='none'/%3E%3Ccircle cx='20' cy='70' r='3' fill='%2322c55e'/%3E%3Ccircle cx='35' cy='50' r='3' fill='%2322c55e'/%3E%3Ccircle cx='50' cy='60' r='3' fill='%2322c55e'/%3E%3Ccircle cx='65' cy='35' r='3' fill='%2322c55e'/%3E%3Ccircle cx='80' cy='45' r='3' fill='%2322c55e'/%3E%3C/svg%3E");
}

/* Card Content */
.article-card__content {
  position: relative;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.article-card__date,
.article-card__reading-time {
  font-size: 12px;
  color: oklch(48% 0 0);
}

.article-card__reading-time::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: oklch(40% 0 0);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
}

.article-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: oklch(92% 0 0);
  margin-bottom: 12px;
  transition: color var(--duration-normal);
}

.article-card:hover .article-card__title {
  color: oklch(82% 0.16 145);
}

.article-card__hook {
  font-size: 14px;
  line-height: 1.65;
  color: oklch(58% 0 0);
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Card - Link wrapper */
.article-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Fallback: constrain any stray SVGs in article-card__link */
.article-card__link > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Article Card - Image Area */
.article-card__image {
  position: relative;
  width: 100%;
  min-width: 100%; /* Prevent flex shrinkage */
  flex-shrink: 0;
  align-self: stretch; /* Override parent center alignment */
  height: 180px;
  background: oklch(5% 0 0);
  overflow: hidden;
}

/* Article card hero image */
.article-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

.article-card--featured .article-card__image {
  height: 220px;
  background: linear-gradient(145deg, oklch(18% 0.04 145) 0%, oklch(8% 0.02 145) 100%);
}

/* Featured card placeholder enhancement - previously had overlay, removed for visibility */

.article-card--featured .article-card__image::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  border: 3px solid oklch(72% 0.19 145 / 25%);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

/* Second decorative circle for featured cards */
.article-card--featured .article-card__pattern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid oklch(72% 0.19 145 / 20%);
  border-radius: 50%;
  z-index: 2;
}

.article-card--featured .article-card__pattern::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border: 2px solid oklch(72% 0.19 145 / 15%);
  border-radius: 50%;
}

.article-card__image .article-card__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: opacity var(--duration-slow);
}

.article-card:hover .article-card__image .article-card__pattern {
  opacity: 0.25;
}

/* Featured card patterns are more prominent */
.article-card--featured .article-card__image .article-card__pattern {
  opacity: 0.3;
}

.article-card--featured:hover .article-card__image .article-card__pattern {
  opacity: 0.45;
}

/* Category-specific pattern backgrounds */
.article-card__pattern[data-category='training'] {
  background: linear-gradient(135deg, var(--cat-training) 0%, transparent 60%);
}

.article-card__pattern[data-category='hypertrophy'] {
  background: linear-gradient(135deg, var(--cat-hypertrophy) 0%, transparent 60%);
}

.article-card__pattern[data-category='recovery'] {
  background: linear-gradient(135deg, var(--cat-recovery) 0%, transparent 60%);
}

.article-card__pattern[data-category='programming'] {
  background: linear-gradient(135deg, var(--cat-programming) 0%, transparent 60%);
}

.article-card__pattern[data-category='technique'] {
  background: linear-gradient(135deg, var(--cat-technique) 0%, transparent 60%);
}

.article-card__pattern[data-category='nutrition'] {
  background: linear-gradient(135deg, var(--cat-nutrition) 0%, transparent 60%);
}

.article-card__pattern[data-category='science'] {
  background: linear-gradient(135deg, var(--cat-science) 0%, transparent 60%);
}

/* Article Card - Badge */
.article-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: oklch(0% 0 0 / 60%);
  backdrop-filter: blur(10px);
  border: 1px solid oklch(100% 0 0 / 15%);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(90% 0 0);
}

/* Article Card - Category inline */
.article-card__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(72% 0.19 145);
}

/* Article Card - Read Time */
.article-card__read-time {
  font-size: 12px;
  color: oklch(48% 0 0);
}

.article-card__meta .article-card__read-time::before {
  content: '•';
  margin-right: 12px;
  color: oklch(40% 0 0);
}

/* Article Card - Excerpt */
.article-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: oklch(58% 0 0);
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card--featured .article-card__excerpt {
  -webkit-line-clamp: 3;
}

/* Article Card - CTA */
.article-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: oklch(72% 0.19 145);
  transition: gap var(--duration-normal) var(--ease-out-quart);
}

.article-card__arrow {
  transition: transform var(--duration-normal) var(--ease-out-quart);
}

.article-card:hover .article-card__cta {
  gap: 12px;
}

.article-card:hover .article-card__arrow {
  transform: translateX(4px);
}

/* Article Card - Icon (for mini cards) */
.article-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(10% 0 0);
  border: 1px solid oklch(100% 0 0 / 10%);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all var(--duration-normal);
}

.article-card__icon svg {
  width: 22px;
  height: 22px;
  color: oklch(60% 0 0);
  transition: color var(--duration-normal);
}

.article-card:hover .article-card__icon {
  border-color: oklch(72% 0.19 145 / 30%);
  background: oklch(72% 0.19 145 / 10%);
}

.article-card:hover .article-card__icon svg {
  color: oklch(82% 0.16 145);
}

/* Category-specific icon colors */
.article-card__icon[data-category='training'] svg {
  color: var(--cat-training);
}
.article-card__icon[data-category='hypertrophy'] svg {
  color: var(--cat-hypertrophy);
}
.article-card__icon[data-category='recovery'] svg {
  color: var(--cat-recovery);
}
.article-card__icon[data-category='programming'] svg {
  color: var(--cat-programming);
}
.article-card__icon[data-category='technique'] svg {
  color: var(--cat-technique);
}
.article-card__icon[data-category='nutrition'] svg {
  color: var(--cat-nutrition);
}
.article-card__icon[data-category='science'] svg {
  color: var(--cat-science);
}

/* ==========================================================================
   All Articles Section
   ========================================================================== */
.all-articles {
  padding: 40px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.all-articles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid oklch(100% 0 0 / 8%);
}

.all-articles__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: oklch(92% 0 0);
}

.all-articles__count {
  font-size: 14px;
  color: oklch(50% 0 0);
  background: oklch(8% 0 0);
  padding: 6px 14px;
  border-radius: 100px;
}

/* ==========================================================================
   Article Card Variants
   ========================================================================== */

/* Featured Card - Larger with accent */
.article-card--featured {
  background: linear-gradient(145deg, oklch(8% 0 0) 0%, oklch(6% 0.01 145 / 30%) 100%);
  border-color: oklch(72% 0.19 145 / 15%);
}

.article-card--featured .article-card__content {
  padding: 36px;
}

.article-card--featured .article-card__title {
  font-size: 24px;
}

.article-card--featured .article-card__hook {
  -webkit-line-clamp: 3;
}

/* Featured badge is handled by .article-card__badge in HTML */

/* Minimal Card - Typography focused */
.article-card--minimal {
  background: transparent;
  border-color: oklch(100% 0 0 / 5%);
}

.article-card--minimal:hover {
  background: oklch(7% 0 0);
  border-color: oklch(100% 0 0 / 12%);
}

.article-card--minimal .article-card__content {
  padding: 20px;
}

.article-card--minimal .article-card__hook {
  display: none;
}

/* Mini Card - For related articles and editor's picks */
.article-card--mini {
  border-radius: 16px;
  flex-direction: row;
  background: oklch(7% 0 0);
}

.article-card--mini .article-card__link {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.article-card--mini .article-card__content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-card--mini .article-card__category {
  font-size: 10px;
  color: oklch(60% 0 0);
}

.article-card--mini .article-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.35;
}

.article-card--mini .article-card__read-time {
  font-size: 12px;
  color: oklch(45% 0 0);
}

.article-card--mini .article-card__read-time::before {
  display: none;
}

.article-card--mini .article-card__hook,
.article-card--mini .article-card__excerpt {
  display: none;
}

/* ==========================================================================
   Category Pills
   ========================================================================== */
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--duration-fast);
}

.category-pill svg {
  width: 12px;
  height: 12px;
}

/* Category-specific colors */
.category-pill--hypertrophy {
  background: oklch(72% 0.19 145 / 12%);
  color: oklch(80% 0.17 145);
  border: 1px solid oklch(72% 0.19 145 / 25%);
}

.category-pill--training {
  background: oklch(70% 0.18 200 / 12%);
  color: oklch(78% 0.16 200);
  border: 1px solid oklch(70% 0.18 200 / 25%);
}

.category-pill--programming {
  background: oklch(68% 0.16 280 / 12%);
  color: oklch(76% 0.14 280);
  border: 1px solid oklch(68% 0.16 280 / 25%);
}

.category-pill--technique {
  background: oklch(72% 0.17 45 / 12%);
  color: oklch(80% 0.15 45);
  border: 1px solid oklch(72% 0.17 45 / 25%);
}

.category-pill--recovery {
  background: oklch(70% 0.15 180 / 12%);
  color: oklch(78% 0.13 180);
  border: 1px solid oklch(70% 0.15 180 / 25%);
}

.category-pill--nutrition {
  background: oklch(72% 0.18 100 / 12%);
  color: oklch(80% 0.16 100);
  border: 1px solid oklch(72% 0.18 100 / 25%);
}

.category-pill--science {
  background: oklch(68% 0.14 260 / 12%);
  color: oklch(76% 0.12 260);
  border: 1px solid oklch(68% 0.14 260 / 25%);
}

.category-pill--cutting {
  background: oklch(70% 0.2 25 / 12%);
  color: oklch(78% 0.18 25);
  border: 1px solid oklch(70% 0.2 25 / 25%);
}

.category-pill--mindset {
  background: oklch(72% 0.16 320 / 12%);
  color: oklch(80% 0.14 320);
  border: 1px solid oklch(72% 0.16 320 / 25%);
}

.category-pill--tracking {
  background: oklch(70% 0.17 160 / 12%);
  color: oklch(78% 0.15 160);
  border: 1px solid oklch(70% 0.17 160 / 25%);
}

/* ==========================================================================
   Articles Grid
   ========================================================================== */
.articles-section {
  padding: 20px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding: 130px 20px 70px;
  }

  .blog-hero__stats {
    gap: 32px;
  }

  .category-nav {
    padding: 12px 16px;
  }

  .featured-section,
  .articles-section,
  .editors-picks {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   Blog CTA Section
   ========================================================================== */
.blog-cta {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 56px 48px;
  background: linear-gradient(145deg, oklch(10% 0 0), oklch(8% 0.02 45 / 50%));
  border: 1px solid oklch(70% 0.18 45 / 20%);
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    oklch(70% 0.18 45 / 10%) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.blog-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: oklch(70% 0.18 45 / 12%);
  border: 1px solid oklch(70% 0.18 45 / 30%);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(78% 0.16 45);
  margin-bottom: 24px;
  position: relative;
}

.blog-cta__badge svg {
  width: 16px;
  height: 16px;
  color: oklch(78% 0.16 45);
}

.blog-cta__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: oklch(94% 0 0);
  margin-bottom: 12px;
  position: relative;
}

.blog-cta__subtitle {
  font-size: 17px;
  color: oklch(60% 0 0);
  margin-bottom: 32px;
  position: relative;
}

.blog-cta__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, oklch(70% 0.18 45 / 15%) 0%, transparent 70%);
  pointer-events: none;
}

.blog-cta__content {
  position: relative;
  z-index: 1;
}

.blog-cta__text {
  font-size: 17px;
  color: oklch(60% 0 0);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.blog-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 38px;
  background: linear-gradient(135deg, oklch(70% 0.18 45), oklch(62% 0.2 45));
  border: none;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 24px oklch(70% 0.18 45 / 35%);
  transition: all var(--duration-normal) var(--ease-out-quart);
}

.blog-cta__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px oklch(70% 0.18 45 / 45%);
}

.blog-cta__button svg {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-normal);
}

.blog-cta__button:hover svg {
  transform: translateX(4px);
}

.blog-cta__disclaimer {
  font-size: 13px;
  color: oklch(45% 0 0);
  margin-top: 20px;
}

.btn--cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 38px;
  background: linear-gradient(135deg, oklch(70% 0.18 45), oklch(62% 0.2 45));
  border: none;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 24px oklch(70% 0.18 45 / 35%);
  transition: all var(--duration-normal) var(--ease-out-quart);
  position: relative;
}

.btn--cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px oklch(70% 0.18 45 / 45%);
}

.btn--cta svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--reading-progress-height);
  background: oklch(10% 0 0);
  z-index: 1001;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, oklch(72% 0.19 145), oklch(82% 0.16 145));
  box-shadow: 0 0 12px oklch(72% 0.19 145 / 70%);
  transition: width 0.05s linear;
}

/* ==========================================================================
   Article Hero
   ========================================================================== */
.article-hero {
  position: relative;
  padding: 160px 24px 80px;
  overflow: hidden;
}

.article-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-size: 250px 250px;
  background-repeat: repeat;
}

/* Hero image for blog posts with actual images */
.article-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(5% 0 0 / 40%) 0%,
    oklch(5% 0 0 / 70%) 50%,
    oklch(5% 0 0 / 95%) 100%
  );
}

.article-hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 30%,
    oklch(72% 0.19 145 / 8%) 0%,
    transparent 60%
  );
}

.article-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--article-max-width);
  margin: 0 auto;
}

.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: oklch(75% 0 0);
  text-decoration: none;
  margin-bottom: 36px;
  transition: all var(--duration-fast);
}

.article-hero__back svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast);
}

.article-hero__back:hover {
  color: oklch(82% 0.16 145);
}

.article-hero__back:hover svg {
  transform: translateX(-5px);
}

.article-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.article-hero__date,
.article-hero__reading-time {
  font-size: 14px;
  color: oklch(80% 0 0);
}

.article-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: oklch(96% 0 0);
  margin-bottom: 24px;
}

.article-hero__description {
  font-size: 19px;
  line-height: 1.7;
  color: oklch(62% 0 0);
}

/* ==========================================================================
   Article Content Layout
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr var(--toc-width);
  gap: 60px;
  max-width: calc(var(--article-max-width) + var(--toc-width) + 60px);
  margin: 0 auto;
  padding: 0 24px 80px;
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
    max-width: var(--article-max-width);
  }
}

.article-content {
  max-width: var(--article-max-width);
}

/* Lead paragraph */
.article-content .lead {
  font-size: 20px;
  line-height: 1.7;
  color: oklch(75% 0 0);
  margin-bottom: 24px;
}

.article-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: oklch(94% 0 0);
  margin: 56px 0 20px;
  letter-spacing: -0.015em;
  scroll-margin-top: 120px;
}

.article-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: oklch(90% 0 0);
  margin: 40px 0 16px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.85;
  color: oklch(72% 0 0);
  margin-bottom: 24px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 28px 28px;
}

.article-content li {
  font-size: 17px;
  line-height: 1.8;
  color: oklch(72% 0 0);
  margin-bottom: 12px;
}

.article-content strong {
  color: oklch(88% 0 0);
  font-weight: 600;
}

.article-content a {
  color: oklch(72% 0.19 145);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast);
}

.article-content a:hover {
  color: oklch(82% 0.16 145);
}

/* Related Reading Block (inline in articles) */
.article-content .related-articles,
.related-articles {
  margin: 32px 0;
  padding: 24px 28px;
  background: oklch(8% 0 0);
  border: 1px solid oklch(100% 0 0 / 10%);
  border-radius: 16px;
}

.article-content .related-articles strong,
.related-articles strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: oklch(88% 0 0);
  margin-bottom: 14px;
}

.article-content .related-articles h3,
.related-articles h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: oklch(88% 0 0);
  margin: 0 0 14px;
}

.article-content .related-articles ul,
.related-articles ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-content .related-articles li,
.related-articles li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.article-content .related-articles li:last-child,
.related-articles li:last-child {
  margin-bottom: 0;
}

.article-content .related-articles li::before,
.related-articles li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: oklch(72% 0.19 145);
  font-size: 13px;
}

.article-content .related-articles a,
.related-articles a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: oklch(72% 0.19 145);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.article-content .related-articles a:hover,
.related-articles a:hover {
  color: oklch(82% 0.16 145);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Key Takeaways Block
   ========================================================================== */
.key-takeaways {
  background: linear-gradient(135deg, oklch(9% 0 0) 0%, oklch(7% 0.01 145 / 30%) 100%);
  border: 1px solid oklch(72% 0.19 145 / 20%);
  border-radius: 18px;
  padding: 30px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.key-takeaways::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, oklch(72% 0.19 145), oklch(82% 0.16 145));
  border-radius: 4px 0 0 4px;
}

.key-takeaways__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.key-takeaways__icon {
  width: 28px;
  height: 28px;
  color: oklch(82% 0.16 145);
}

.key-takeaways__header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: oklch(92% 0 0);
  margin: 0;
}

.key-takeaways__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.key-takeaways__list li {
  position: relative;
  padding-left: 36px;
  font-size: 15px;
  line-height: 1.65;
  color: oklch(75% 0 0);
  margin-bottom: 14px;
}

.key-takeaways__list li:last-child {
  margin-bottom: 0;
}

.key-takeaways__list li::before {
  content: '';
  width: 22px;
  height: 22px;
  display: block;
  background: oklch(72% 0.19 145 / 18%);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ensure strong tags in key takeaways flow inline with text */
.key-takeaways__list li strong {
  color: oklch(88% 0 0);
  font-weight: 600;
}

/* ==========================================================================
   Implementation Steps Block
   ========================================================================== */
.implementation-steps {
  margin: 56px 0;
}

.implementation-steps h3 {
  margin-bottom: 28px;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step-counter;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid oklch(100% 0 0 / 6%);
  position: relative;
  align-items: start;
}

.step:last-child {
  border-bottom: none;
}

.step__number {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(72% 0.19 145 / 12%);
  border: 1px solid oklch(72% 0.19 145 / 25%);
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: oklch(82% 0.16 145);
}

.step__content {
  min-width: 0; /* Prevent grid blowout */
}

.step__content h4 {
  font-size: 18px;
  font-weight: 600;
  color: oklch(92% 0 0);
  margin: 0 0 8px;
}

.step__content p {
  font-size: 15px;
  line-height: 1.65;
  color: oklch(62% 0 0);
  margin: 0;
}

/* ==========================================================================
   Step List Component (new articles)
   ========================================================================== */
.step-list {
  margin: 32px 0;
}

.step-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid oklch(100% 0 0 / 6%);
  align-items: start;
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(72% 0.19 145 / 12%);
  border: 1px solid oklch(72% 0.19 145 / 25%);
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: oklch(82% 0.16 145);
}

.step-content {
  min-width: 0; /* Prevent grid blowout */
}

.step-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: oklch(92% 0 0);
  margin: 0 0 8px;
}

.step-content p {
  font-size: 15px;
  line-height: 1.65;
  color: oklch(68% 0 0);
  margin: 0;
}

/* ==========================================================================
   Callout Components (new articles)
   ========================================================================== */
.callout {
  padding: 24px 28px;
  border-radius: 14px;
  margin: 32px 0;
  border-left: 4px solid;
}

.callout-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.callout p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.callout-evidence {
  background: linear-gradient(135deg, oklch(8% 0.01 145 / 40%) 0%, oklch(6% 0 0) 100%);
  border-color: oklch(72% 0.19 145 / 40%);
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.callout-evidence::before {
  content: '';
  width: 48px;
  height: 48px;
  background: oklch(72% 0.19 145 / 15%);
  border: 1px solid oklch(72% 0.19 145 / 30%);
  border-radius: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V5a2 2 0 00-2-2h-2' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round'/%3E%3Crect x='9' y='2' width='6' height='4' rx='1' stroke='%2322c55e' stroke-width='1.5'/%3E%3Cpath d='M9 12h6M9 16h4' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='16' r='4' fill='%23030303' stroke='%2322c55e' stroke-width='1.5'/%3E%3Cpath d='M15 15.5l1 1 2-2' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 26px;
  background-position: center;
  background-repeat: no-repeat;
}

.callout-evidence .callout-title {
  color: oklch(80% 0.17 145);
  grid-column: 2;
  margin-bottom: 8px;
}

.callout-evidence p {
  color: oklch(72% 0 0);
  grid-column: 2;
}

.callout-evidence .citation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid oklch(100% 0 0 / 8%);
  grid-column: 2;
}

.callout-evidence .citation-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: oklch(72% 0.19 145);
  text-decoration: none;
  transition: color 150ms ease;
}

.callout-evidence .citation-link:hover {
  color: oklch(82% 0.16 145);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callout-evidence .citation-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.callout-evidence .citation-meta {
  font-size: 12px;
  color: oklch(50% 0 0);
}

.callout-tip {
  background: oklch(72% 0.19 145 / 8%);
  border-color: oklch(72% 0.19 145);
}

.callout-tip .callout-title {
  color: oklch(80% 0.17 145);
}

.callout-tip p {
  color: oklch(72% 0 0);
}

/* ==========================================================================
   Data Tables (new articles)
   ========================================================================== */
.data-table-wrapper {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid oklch(100% 0 0 / 10%);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: oklch(6% 0 0);
}

.data-table thead {
  background: oklch(10% 0 0);
  border-bottom: 1px solid oklch(100% 0 0 / 10%);
}

.data-table th {
  padding: 14px 18px;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: oklch(80% 0 0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  color: oklch(72% 0 0);
  border-bottom: 1px solid oklch(100% 0 0 / 6%);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: oklch(8% 0 0);
}

.data-table td strong {
  color: oklch(88% 0 0);
  font-weight: 600;
}

/* Responsive: ensure tables don't break layout */
@media (max-width: 640px) {
  .data-table th,
  .data-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* ==========================================================================
   TL;DR / Summary Component
   ========================================================================== */
.tldr {
  background: oklch(8% 0 0);
  border: 1px solid oklch(100% 0 0 / 10%);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0;
}

.tldr-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(72% 0.19 145);
  margin-bottom: 12px;
}

.tldr p {
  font-size: 15px;
  line-height: 1.7;
  color: oklch(75% 0 0);
  margin: 0;
}

.tldr p strong {
  color: oklch(90% 0 0);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  margin: 48px 0;
}

.faq-section > h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: oklch(94% 0 0);
  margin-bottom: 28px;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid oklch(100% 0 0 / 8%);
}

.faq-item:first-of-type {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: oklch(90% 0 0);
  margin: 0 0 12px;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.7;
  color: oklch(68% 0 0);
  margin: 0;
}

/* ==========================================================================
   Inline Table of Contents (new articles)
   ========================================================================== */
.toc {
  background: oklch(8% 0 0);
  border: 1px solid oklch(100% 0 0 / 10%);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0;
}

.toc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(72% 0.19 145);
  margin-bottom: 16px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc li a {
  font-size: 14px;
  color: oklch(65% 0 0);
  text-decoration: none;
  transition: color 150ms ease;
}

.toc li a:hover {
  color: oklch(82% 0.16 145);
}

/* ==========================================================================
   CTA Section (new articles)
   ========================================================================== */
.cta-section {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px;
}

.cta-content {
  background: linear-gradient(145deg, oklch(10% 0 0), oklch(8% 0.02 45 / 60%));
  border: 1px solid oklch(70% 0.18 45 / 20%);
  border-radius: 20px;
  padding: 44px 40px;
  text-align: center;
}

.cta-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: oklch(94% 0 0);
  margin: 0 0 12px;
}

.cta-content p {
  font-size: 16px;
  line-height: 1.6;
  color: oklch(60% 0 0);
  margin: 0 0 28px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, oklch(70% 0.18 45), oklch(62% 0.2 45));
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 24px oklch(70% 0.18 45 / 35%);
  transition: all 200ms ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px oklch(70% 0.18 45 / 45%);
}

/* ==========================================================================
   Back Link Container
   ========================================================================== */
.back-link-container {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: oklch(60% 0 0);
  text-decoration: none;
  transition: color 150ms ease;
}

.back-link:hover {
  color: oklch(82% 0.16 145);
}

/* ==========================================================================
   Blog Article Layout (new articles)
   ========================================================================== */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Article Container */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-header {
  padding: 120px 0 48px;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: oklch(60% 0 0);
  text-decoration: none;
  transition: color 150ms ease;
}

.breadcrumb a:hover {
  color: oklch(82% 0.16 145);
}

.breadcrumb .separator {
  color: oklch(40% 0 0);
}

.breadcrumb .current {
  color: oklch(50% 0 0);
}

.category-badge {
  display: inline-block;
  padding: 8px 16px;
  background: oklch(72% 0.19 145 / 12%);
  border: 1px solid oklch(72% 0.19 145 / 25%);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(80% 0.17 145);
  margin-bottom: 24px;
}

.article-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: oklch(96% 0 0);
  margin: 0 0 16px;
}

.subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: oklch(60% 0 0);
  margin: 0 0 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: oklch(50% 0 0);
}

.article-meta .separator {
  color: oklch(35% 0 0);
}

.article-meta .date,
.article-meta .read-time,
.article-meta .updated,
.article-meta .reading-time,
.article-meta time {
  color: oklch(50% 0 0);
}

/* Article Category Badge (alias for category-badge) */
.article-category {
  display: inline-block;
  padding: 8px 16px;
  background: oklch(72% 0.19 145 / 12%);
  border: 1px solid oklch(72% 0.19 145 / 25%);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(80% 0.17 145);
  margin-bottom: 24px;
}

/* Article Subtitle (alias for subtitle) */
.article-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: oklch(60% 0 0);
  margin: 0 0 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Evidence Callout (legacy - redirects to new design)
   ========================================================================== */
.evidence-callout {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, oklch(8% 0.01 145 / 40%) 0%, oklch(6% 0 0) 100%);
  border: 1px solid oklch(72% 0.19 145 / 40%);
  border-left: 4px solid oklch(72% 0.19 145);
  border-radius: 14px;
  margin: 36px 0;
  align-items: start;
}

.evidence-callout__icon {
  width: 48px;
  height: 48px;
  background: oklch(72% 0.19 145 / 15%);
  border: 1px solid oklch(72% 0.19 145 / 30%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0; /* Hide emoji text */
}

/* Research icon for 📊 */
.evidence-callout__icon::before {
  content: '';
  width: 26px;
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V5a2 2 0 00-2-2h-2' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round'/%3E%3Crect x='9' y='2' width='6' height='4' rx='1' stroke='%2322c55e' stroke-width='1.5'/%3E%3Cpath d='M9 12h6M9 16h4' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='16' r='4' fill='%23030303' stroke='%2322c55e' stroke-width='1.5'/%3E%3Cpath d='M15 15.5l1 1 2-2' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.evidence-callout__content {
  font-size: 15px;
  line-height: 1.7;
  color: oklch(72% 0 0);
}

.evidence-callout__content strong {
  color: oklch(80% 0.17 145);
  font-weight: 600;
}

/* Citation styling for evidence callouts */
.evidence-callout .citation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid oklch(100% 0 0 / 8%);
}

.evidence-callout .citation-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: oklch(72% 0.19 145);
  text-decoration: none;
  transition: color 150ms ease;
}

.evidence-callout .citation-link:hover {
  color: oklch(82% 0.16 145);
  text-decoration: underline;
}

.evidence-callout .citation-link svg {
  width: 14px;
  height: 14px;
}

.evidence-callout .citation-meta {
  font-size: 12px;
  color: oklch(50% 0 0);
}

/* ==========================================================================
   Inline Citations (for SEO-rich content)
   ========================================================================== */
.cite {
  font-size: inherit;
  color: oklch(72% 0.19 145);
  text-decoration: none;
  border-bottom: 1px dotted oklch(72% 0.19 145 / 50%);
  transition: all 150ms ease;
}

.cite:hover {
  color: oklch(82% 0.16 145);
  border-bottom-color: oklch(82% 0.16 145);
}

/* References section at bottom of articles */
.references {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid oklch(100% 0 0 / 10%);
}

.references h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: oklch(88% 0 0);
  margin: 0 0 20px;
}

.references ol {
  margin: 0;
  padding: 0 0 0 24px;
}

.references li {
  font-size: 14px;
  line-height: 1.6;
  color: oklch(60% 0 0);
  margin-bottom: 12px;
  padding-left: 4px;
}

.references li a {
  color: oklch(72% 0.19 145);
  text-decoration: none;
}

.references li a:hover {
  text-decoration: underline;
}

/* Tip variant for evidence callout */
.evidence-callout--tip {
  background: linear-gradient(135deg, oklch(8% 0.01 45 / 40%) 0%, oklch(6% 0 0) 100%);
  border-color: oklch(70% 0.18 45 / 40%);
  border-left-color: oklch(70% 0.18 45);
}

.evidence-callout--tip .evidence-callout__icon {
  background: oklch(70% 0.18 45 / 15%);
  border-color: oklch(70% 0.18 45 / 30%);
}

.evidence-callout--tip .evidence-callout__icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 2a7 7 0 017 7c0 2.38-1.19 4.47-3 5.74V17a2 2 0 01-2 2H10a2 2 0 01-2-2v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 017-7z' stroke='%23eab308' stroke-width='1.5'/%3E%3Cpath d='M9 21h6M12 17v-3' stroke='%23eab308' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='9' r='2' stroke='%23eab308' stroke-width='1.5'/%3E%3C/svg%3E");
}

.evidence-callout--tip .evidence-callout__content strong {
  color: oklch(78% 0.16 45);
}

/* ==========================================================================
   Article Charts
   ========================================================================== */
.article-chart {
  margin: 40px 0;
  padding: 24px;
  background: oklch(7% 0 0);
  border: 1px solid oklch(100% 0 0 / 8%);
  border-radius: 16px;
}

.chart-container {
  width: 100%;
  aspect-ratio: 2 / 1;
}

.chart-container svg {
  width: 100%;
  height: 100%;
}

.article-chart figcaption {
  font-size: 13px;
  color: oklch(50% 0 0);
  text-align: center;
  margin-top: 16px;
}

/* ==========================================================================
   Table of Contents Sidebar
   ========================================================================== */
.toc-sidebar {
  position: sticky;
  top: 140px;
  align-self: start;
}

.toc-sidebar__inner {
  padding: 26px;
  background: oklch(7% 0 0);
  border: 1px solid oklch(100% 0 0 / 8%);
  border-radius: 18px;
}

.toc-sidebar h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(50% 0 0);
  margin-bottom: 18px;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  font-size: 14px;
  color: oklch(58% 0 0);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all var(--duration-fast);
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.toc-link:hover {
  color: oklch(85% 0 0);
  background: oklch(12% 0 0);
}

.toc-link.active {
  color: oklch(82% 0.16 145);
  background: oklch(72% 0.19 145 / 8%);
  border-left-color: oklch(72% 0.19 145);
}

.toc-quick-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid oklch(100% 0 0 / 8%);
}

.toc-quick-link {
  display: block;
  font-size: 13px;
  color: oklch(55% 0 0);
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--duration-fast);
}

.toc-quick-link:hover {
  color: oklch(72% 0.19 145);
}

@media (max-width: 1100px) {
  .toc-sidebar {
    display: none;
  }
}

/* ==========================================================================
   Article CTA Section
   ========================================================================== */
.article-cta {
  max-width: var(--article-max-width);
  margin: 80px auto;
  padding: 60px 48px;
  background: linear-gradient(145deg, oklch(5% 0 0), oklch(3% 0 0));
  border: 1px solid oklch(70% 0.18 45 / 15%);
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px oklch(0% 0 0 / 50%);
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, oklch(70% 0.18 45 / 12%) 0%, transparent 60%);
  z-index: 1;
}

/* Subtle accent glow at bottom */
.article-cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 30%;
  right: 30%;
  height: 200px;
  background: oklch(70% 0.18 45 / 15%);
  filter: blur(80px);
  z-index: 1;
  border-radius: 50%;
}

.article-cta__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-cta h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: oklch(98% 0 0);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-cta p {
  font-size: 17px;
  line-height: 1.6;
  color: oklch(75% 0 0);
  margin-bottom: 32px;
  max-width: 500px;
}

.article-cta .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, oklch(70% 0.18 45), oklch(65% 0.2 35));
  color: oklch(10% 0 0);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px oklch(70% 0.18 45 / 30%), inset 0 1px 0 oklch(100% 0 0 / 20%);
}

.article-cta .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px oklch(70% 0.18 45 / 40%), inset 0 1px 0 oklch(100% 0 0 / 30%);
}

/* ==========================================================================
   Related Articles Section
   ========================================================================== */
.related-articles {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.related-articles > h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: oklch(92% 0 0);
  margin-bottom: 36px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-hero {
    padding: 130px 20px 60px;
  }

  .article-layout {
    padding: 0 20px 60px;
  }
}

/* ==========================================================================
   Animation Utilities
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s var(--ease-out-expo);
}

.stagger-item {
  opacity: 0;
  transform: translateY(35px);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.55s var(--ease-out-expo);
}

/* Stagger delays */
.stagger-item:nth-child(1) {
  transition-delay: 0ms;
}
.stagger-item:nth-child(2) {
  transition-delay: 60ms;
}
.stagger-item:nth-child(3) {
  transition-delay: 120ms;
}
.stagger-item:nth-child(4) {
  transition-delay: 180ms;
}
.stagger-item:nth-child(5) {
  transition-delay: 240ms;
}
.stagger-item:nth-child(6) {
  transition-delay: 300ms;
}
.stagger-item:nth-child(7) {
  transition-delay: 360ms;
}
.stagger-item:nth-child(8) {
  transition-delay: 420ms;
}
.stagger-item:nth-child(9) {
  transition-delay: 480ms;
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .blog-hero__gradient,
  .blog-hero__particle,
  .blog-hero__orb,
  .blog-hero__title,
  .blog-hero__badge,
  .article-card,
  .category-chip,
  .category-nav__indicator,
  .fade-up,
  .stagger-item,
  .reading-progress__bar {
    animation: none !important;
    transition: none !important;
  }

  .fade-up,
  .stagger-item {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Hidden Utility
   ========================================================================== */
.hidden {
  display: none !important;
}

/* ==========================================================================
   Legacy Support - Old blog-card class
   ========================================================================== */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: oklch(6% 0 0);
  border: 1px solid oklch(100% 0 0 / 8%);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    oklch(72% 0.19 145 / 6%) 0%,
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--duration-slow);
  pointer-events: none;
  z-index: 1;
}

.blog-card:hover {
  border-color: oklch(72% 0.19 145 / 35%);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -20px oklch(72% 0.19 145 / 12%), 0 0 0 1px oklch(72% 0.19 145 / 8%);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-image {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: oklch(5% 0 0);
  padding: 24px;
  border-bottom: 1px solid oklch(100% 0 0 / 6%);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
}

.blog-category {
  background: oklch(72% 0.19 145 / 12%);
  color: oklch(80% 0.17 145);
  padding: 5px 12px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}

.blog-date {
  color: oklch(50% 0 0);
}

.blog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: oklch(92% 0 0);
  transition: color var(--duration-normal);
}

.blog-card:hover .blog-title {
  color: oklch(82% 0.16 145);
}

.blog-excerpt {
  font-size: 14px;
  color: oklch(60% 0 0);
  line-height: 1.65;
  flex: 1;
}

.blog-read-more {
  color: oklch(72% 0.19 145);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--duration-normal);
}

.blog-card:hover .blog-read-more {
  gap: 12px;
}

/* ==========================================================================
   Footer Styles (for premium footer)
   ========================================================================== */
footer {
  padding: 80px 24px 40px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.8) 100%);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 15%,
    rgba(74, 222, 128, 0.3) 50%,
    rgba(255, 255, 255, 0.08) 85%,
    transparent
  );
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

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

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

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f5f5f5;
}

.footer-tagline {
  font-size: 14px;
  color: #999; /* Improved contrast */
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: #4ade80;
  border-color: #4ade80;
  color: #050505;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f5f5f5;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  font-size: 14px;
  color: #999; /* Improved contrast */
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #4ade80;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: #999; /* Improved contrast */
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: #999; /* Improved contrast */
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #a0a0a0;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: oklch(72% 0.19 145);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(10% 0 0);
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 20px oklch(72% 0.19 145 / 30%);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.back-to-top:hover {
  background: oklch(78% 0.19 145);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px oklch(72% 0.19 145 / 40%);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 2px solid oklch(100% 0 0);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
}

/* ==========================================================================
   Loading Skeleton
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, oklch(12% 0 0) 0%, oklch(18% 0 0) 50%, oklch(12% 0 0) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.article-card.loading .article-card__image {
  background: oklch(10% 0 0);
}

.article-card.loading .article-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, oklch(100% 0 0 / 5%) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

.article-card.loading .article-card__title,
.article-card.loading .article-card__hook {
  color: transparent;
  background: oklch(15% 0 0);
  border-radius: 4px;
}

/* ==========================================================================
   Image Error State
   ========================================================================== */
img.img-error {
  position: relative;
  background: oklch(10% 0 0);
  min-height: 120px;
}

.article-card__image.img-error,
.blog-image.img-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, oklch(12% 0.02 145) 0%, oklch(8% 0 0) 100%);
}

.article-card__image.img-error::before,
.blog-image.img-error::before {
  content: '';
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
}

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top {
    transition: opacity 0.1s ease;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  /* Hide non-essential elements */
  header,
  .skip-link,
  .back-to-top,
  .category-nav,
  .blog-hero__search,
  .blog-hero__orbs,
  .blog-hero__particles,
  .blog-hero__grid,
  .mobile-nav,
  .hamburger,
  footer,
  .blog-cta,
  .search-results {
    display: none !important;
  }

  /* Reset backgrounds */
  body,
  .blog-hero,
  .article-card,
  .blog-card {
    background: white !important;
    color: black !important;
  }

  /* Ensure text is readable */
  .blog-hero__title,
  .article-card__title,
  .blog-title,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: black !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: black !important;
  }

  .article-card__hook,
  .blog-excerpt,
  p {
    color: #333 !important;
  }

  /* Show URLs for links */
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }

  /* Page breaks */
  .article-card,
  .blog-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ddd !important;
    margin-bottom: 16px;
  }

  /* Simplify layout */
  .featured-grid,
  .all-articles__grid,
  .articles-grid {
    display: block !important;
  }

  .article-card,
  .blog-card {
    width: 100% !important;
    margin-bottom: 20px;
  }

  /* Remove shadows and effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Optimize images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Print header */
  .blog-hero {
    padding: 20px !important;
    min-height: auto !important;
  }

  .blog-hero__badge {
    border: 1px solid #333 !important;
    color: #333 !important;
  }
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

/* Content visibility for off-screen content */
.all-articles__grid,
.editors-picks__grid {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* GPU acceleration for animated elements */
.article-card,
.blog-card,
.category-chip,
.blog-hero__orb,
.blog-hero__particle {
  will-change: transform;
  transform: translateZ(0);
}

/* Remove will-change after animation settles */
.article-card:not(:hover),
.blog-card:not(:hover) {
  will-change: auto;
}

/* Optimize image rendering */
.blog-image,
.article-card__image img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Reduce paint areas - removed contain: layout style paint as it was causing
   absolutely positioned images inside .article-card__image to not render in production */
.article-card__image,
.blog-card .blog-image {
  /* contain: layout style paint; */
}

/* Font display optimization */
@font-face {
  font-display: swap;
}

/* ==========================================================================
   Initial Loading States - Prevents flash of unstyled content
   Elements start hidden and animate in via CSS or GSAP
   ========================================================================== */

/* Hide animated hero elements initially */
.blog-hero__badge,
.blog-hero__title,
.blog-hero__subtitle,
.blog-hero__search,
.blog-hero__topics,
.blog-hero__stats .blog-stat {
  opacity: 0;
  transform: translateY(40px);
}

/* Hide orbs initially */
.blog-hero__orb {
  opacity: 0;
  transform: scale(0);
}

/* CSS Fallback Animation - runs if GSAP is slow or unavailable */
@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-fade-in {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 0.4;
    transform: scale(1);
  }
}

/* Apply CSS fallback animations after a delay (GSAP should take over before this) */
.blog-hero__badge {
  animation: fade-up-in 0.7s var(--ease-out-expo) 0.3s forwards,
    badge-pulse 3s ease-in-out 1s infinite;
}

.blog-hero__title {
  animation: fade-up-in 0.9s var(--ease-out-expo) 0.5s forwards,
    title-shimmer 8s ease-in-out 1.4s infinite;
}

.blog-hero__subtitle {
  animation: fade-up-in 0.7s var(--ease-out-expo) 0.7s forwards;
}

.blog-hero__search {
  animation: fade-up-in 0.7s var(--ease-out-expo) 0.9s forwards;
}

.blog-hero__topics {
  animation: fade-up-in 0.6s var(--ease-out-expo) 1.1s forwards;
}

.blog-hero__stats .blog-stat {
  animation: fade-up-in 0.6s var(--ease-out-expo) calc(1.1s + var(--i, 0) * 0.12s) forwards;
}

.blog-hero__stats .blog-stat:nth-child(1) {
  --i: 0;
}
.blog-hero__stats .blog-stat:nth-child(2) {
  --i: 1;
}
.blog-hero__stats .blog-stat:nth-child(3) {
  --i: 2;
}
.blog-hero__stats .blog-stat:nth-child(4) {
  --i: 3;
}

.blog-hero__orb--1 {
  animation: scale-fade-in 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0s forwards,
    orb-float 20s ease-in-out 1.8s infinite;
}

.blog-hero__orb--2 {
  animation: scale-fade-in 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards,
    orb-float 20s ease-in-out 2s infinite;
  animation-delay: 0.2s, -7s;
}

.blog-hero__orb--3 {
  animation: scale-fade-in 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards,
    orb-float 20s ease-in-out 2.2s infinite;
  animation-delay: 0.4s, -14s;
}

/* Article cards initial state */
.articles-grid .article-card,
.articles-grid .blog-card,
.featured-grid .article-card {
  opacity: 0;
  transform: translateY(50px);
}

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Stagger article card animations as CSS fallback */
.featured-grid .article-card:nth-child(1) {
  animation: card-fade-in 0.7s var(--ease-out-expo) 0.8s forwards;
}
.featured-grid .article-card:nth-child(2) {
  animation: card-fade-in 0.7s var(--ease-out-expo) 0.9s forwards;
}
.featured-grid .article-card:nth-child(3) {
  animation: card-fade-in 0.7s var(--ease-out-expo) 1s forwards;
}

.articles-grid .article-card:nth-child(1),
.articles-grid .blog-card:nth-child(1) {
  animation: card-fade-in 0.6s var(--ease-out-expo) 1s forwards;
}
.articles-grid .article-card:nth-child(2),
.articles-grid .blog-card:nth-child(2) {
  animation: card-fade-in 0.6s var(--ease-out-expo) 1.05s forwards;
}
.articles-grid .article-card:nth-child(3),
.articles-grid .blog-card:nth-child(3) {
  animation: card-fade-in 0.6s var(--ease-out-expo) 1.1s forwards;
}
.articles-grid .article-card:nth-child(4),
.articles-grid .blog-card:nth-child(4) {
  animation: card-fade-in 0.6s var(--ease-out-expo) 1.15s forwards;
}
.articles-grid .article-card:nth-child(5),
.articles-grid .blog-card:nth-child(5) {
  animation: card-fade-in 0.6s var(--ease-out-expo) 1.2s forwards;
}
.articles-grid .article-card:nth-child(6),
.articles-grid .blog-card:nth-child(6) {
  animation: card-fade-in 0.6s var(--ease-out-expo) 1.25s forwards;
}
.articles-grid .article-card:nth-child(n + 7),
.articles-grid .blog-card:nth-child(n + 7) {
  animation: card-fade-in 0.6s var(--ease-out-expo) 1.3s forwards;
}

/* Section headers initial state */
.featured-section__title,
.featured-section__subtitle,
.editors-picks__title,
.all-articles__title,
.all-articles__count {
  opacity: 0;
  transform: translateY(25px);
  animation: fade-up-in 0.6s var(--ease-out-expo) 0.6s forwards;
}

/* When GSAP is loaded, it will override these CSS animations */
html.gsap-ready .blog-hero__badge,
html.gsap-ready .blog-hero__title,
html.gsap-ready .blog-hero__subtitle,
html.gsap-ready .blog-hero__search,
html.gsap-ready .blog-hero__topics,
html.gsap-ready .blog-hero__stats .blog-stat,
html.gsap-ready .blog-hero__orb,
html.gsap-ready .articles-grid .article-card,
html.gsap-ready .articles-grid .blog-card,
html.gsap-ready .featured-grid .article-card,
html.gsap-ready .featured-section__title,
html.gsap-ready .featured-section__subtitle,
html.gsap-ready .editors-picks__title,
html.gsap-ready .all-articles__title,
html.gsap-ready .all-articles__count {
  animation: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .blog-hero__badge,
  .blog-hero__title,
  .blog-hero__subtitle,
  .blog-hero__search,
  .blog-hero__topics,
  .blog-hero__stats .blog-stat,
  .blog-hero__orb,
  .articles-grid .article-card,
  .articles-grid .blog-card,
  .featured-grid .article-card,
  .featured-section__title,
  .featured-section__subtitle,
  .editors-picks__title,
  .all-articles__title,
  .all-articles__count {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .blog-hero__orb {
    opacity: 0.4;
  }
}
