/* ===== DESIGN SYSTEM ===== */
:root {
  /* Colors */
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-dark: #4f46e5;
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Layout */
  --max-width: 1280px;
  --content-width: 800px;
  --sidebar-width: 320px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-color: #334155;
  --border-light: #1e293b;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.6);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-xl); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
[data-theme="dark"] .site-header {
  background: rgba(15,23,42,0.85);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  font-weight: 900;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: var(--space-xs); }
.main-nav a {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: rgba(99,102,241,0.08);
}
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.theme-toggle, .menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--text-lg);
}
.theme-toggle:hover, .menu-toggle:hover {
  background: var(--color-primary);
  color: white;
}
.menu-toggle { display: none; }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: var(--space-xl);
  z-index: 999;
  flex-direction: column;
  gap: var(--space-sm);
  animation: slideDown 0.3s ease;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  padding: var(--space-md);
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.mobile-nav a:hover { background: var(--bg-tertiary); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO SECTION ===== */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(245,158,11,0.04) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2%, 2%); }
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}
.hero p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}
.hero-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.hero-category {
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.hero-category:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== MAIN LAYOUT ===== */
.main-content { padding: var(--space-3xl) 0; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.section-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.section-link:hover { gap: var(--space-sm); }

/* ===== POST CARDS ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}
.post-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.post-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.post-card-category {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(99,102,241,0.1);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--color-primary); }
.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.read-time { display: flex; align-items: center; gap: 4px; }

/* Featured post */
.featured-post {
  grid-column: 1 / -1;
}
.featured-post .post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.featured-post .post-card-image { padding-top: 0; min-height: 320px; }
.featured-post .post-card-body { padding: var(--space-2xl); justify-content: center; }
.featured-post .post-card-title { font-size: var(--text-2xl); }
.featured-post .post-card-excerpt { -webkit-line-clamp: 4; }
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--color-accent), #f97316);
  color: white;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

/* ===== SINGLE POST ===== */
.single-post { max-width: var(--content-width); }
.post-header { margin-bottom: var(--space-2xl); }
.post-header .post-card-category { margin-bottom: var(--space-md); }
.post-header h1 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}
.post-hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
  overflow: hidden;
}
.post-hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.post-meta-bar .author { font-weight: 600; color: var(--text-primary); }

/* Article content */
.post-content {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-secondary);
}
.post-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-2xl) 0 var(--space-md);
  letter-spacing: -0.02em;
}
.post-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-md);
}
.post-content p { margin-bottom: var(--space-lg); }
.post-content img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-md);
}
.post-content ul, .post-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: var(--space-sm); }
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
}
.post-content code {
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  margin: var(--space-xl) 0;
}
.post-content pre code {
  background: none;
  padding: 0;
}
.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}
.post-tag {
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 500;
  transition: all var(--transition-fast);
}
.post-tag:hover {
  background: var(--color-primary);
  color: white;
}

/* Share buttons */
.share-section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  text-align: center;
}
.share-title { font-weight: 600; margin-bottom: var(--space-md); }
.share-buttons { display: flex; justify-content: center; gap: var(--space-sm); }
.share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: white;
  font-size: var(--text-lg);
  transition: transform var(--transition-fast);
  border: none;
  cursor: pointer;
}
.share-btn:hover { transform: scale(1.1); color: white; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #4267B2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.copy { background: var(--text-muted); }

/* Related posts */
.related-posts { margin-top: var(--space-3xl); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

/* Ad widget */
.ad-widget {
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.ad-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Popular posts widget */
.popular-post {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}
.popular-post + .popular-post { border-top: 1px solid var(--border-light); padding-top: var(--space-md); }
.popular-post-num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
  min-width: 30px;
}
.popular-post-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.popular-post-title a { color: inherit; }
.popular-post-title a:hover { color: var(--color-primary); }
.popular-post-date { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }

/* Categories widget */
.category-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}
.category-item:hover {
  background: rgba(99,102,241,0.08);
  color: var(--color-primary);
}
.category-count {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Newsletter widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: none;
  color: white;
}
.newsletter-widget .widget-title { color: white; border-bottom-color: rgba(255,255,255,0.3); }
.newsletter-text { font-size: var(--text-sm); opacity: 0.9; margin-bottom: var(--space-lg); }
.newsletter-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.newsletter-input {
  padding: var(--space-md);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-input:focus { border-color: white; }
.newsletter-btn {
  padding: var(--space-md);
  background: white;
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.newsletter-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===== TABLE OF CONTENTS ===== */
.toc-widget { font-size: var(--text-sm); }
.toc-widget nav ul { display: flex; flex-direction: column; gap: 2px; }
.toc-widget nav ul ul { padding-left: var(--space-md); }
.toc-widget nav a {
  display: block;
  padding: 4px var(--space-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}
.toc-widget nav a:hover {
  color: var(--color-primary);
  background: rgba(99,102,241,0.05);
  border-left-color: var(--color-primary);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.footer-social { display: flex; gap: var(--space-sm); }
.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.social-link:hover { background: var(--color-primary); color: white; }

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ===== LIST / CATEGORY PAGE ===== */
.page-header {
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
  margin-bottom: var(--space-2xl);
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}
.page-link {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.page-link:hover, .page-link.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ===== STATIC PAGES ===== */
.static-page { max-width: var(--content-width); margin: 0 auto; }
.static-page h1 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-xl);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .separator { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar .ad-widget { grid-column: 1 / -1; min-height: 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-post .post-card { grid-template-columns: 1fr; }
  .featured-post .post-card-image { padding-top: 50%; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: var(--text-3xl); }
  .hero p { font-size: var(--text-base); }
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .post-header h1 { font-size: var(--text-2xl); }
  .post-content { font-size: var(--text-base); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .hero h1 { font-size: var(--text-2xl); }
  .hero-categories { gap: var(--space-xs); }
  .hero-category { padding: var(--space-xs) var(--space-md); font-size: var(--text-xs); }
}
