/* === IRON INSIGHT - Next Level Dark Theme === */

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

:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --bg-card: #161a25;
  --bg-card-hover: #1c2130;
  --bg-surface: #1e2330;
  --text: #e8edf5;
  --text-muted: #8892a4;
  --text-dim: #5a6478;
  --accent: #f56565;
  --accent-2: #ed8936;
  --accent-glow: rgba(245, 101, 101, 0.15);
  --accent-glow-strong: rgba(245, 101, 101, 0.3);
  --gradient: linear-gradient(135deg, #f56565, #ed8936);
  --gradient-subtle: linear-gradient(135deg, rgba(245,101,101,0.1), rgba(237,137,54,0.05));
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --max-width: 1200px;
  --article-width: 740px;
  --toc-width: 220px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

a:hover {
  color: var(--accent-2);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === READING PROGRESS BAR === */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow-strong);
}

/* === HEADER === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--text); }

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 0;
}

.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: border-color var(--transition);
}

.menu-toggle:hover { border-color: var(--border-hover); }

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Mobile Drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.nav-drawer-header span {
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.nav-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-drawer a {
  color: var(--text-muted);
  padding: 0.75rem 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  display: block;
  transition: all var(--transition);
}

.nav-drawer a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* === HERO === */

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* === FEATURED === */

.featured {
  margin-bottom: 3rem;
}

.featured-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.featured-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow);
}

.featured-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.featured-content {
  padding: 1.75rem 1.5rem;
}

.featured-category {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.875rem;
}

.featured-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.featured-excerpt {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.featured-card:hover .featured-cta {
  gap: 0.7rem;
}

/* === ARTICLE GRID === */

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--gradient);
  border-radius: 4px;
  flex-shrink: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.article-card:hover {
  border-color: rgba(245,101,101,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 20px var(--accent-glow);
}

.article-card a {
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
}

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

.card-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 0.875rem;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* === CATEGORIES === */

.categories-section {
  margin-bottom: 3.5rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.category-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 15px var(--accent-glow);
}

.pill-count {
  background: var(--gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}

/* === SINGLE ARTICLE === */

.article-single {
  padding: 1.5rem 0 3rem;
}

.article-layout {
  max-width: var(--article-width);
  margin: 0 auto;
}

.article-hero-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.article-header {
  margin-bottom: 2rem;
}

.article-categories {
  margin-bottom: 0.75rem;
}

.category-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-right: 0.375rem;
}

.article-header h1 {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-sep {
  color: var(--text-dim);
}

/* === TABLE OF CONTENTS === */

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc summary::before {
  content: '▸';
  transition: transform var(--transition);
  color: var(--accent);
}

.toc[open] summary::before,
.toc details[open] > summary::before {
  transform: rotate(90deg);
}

.toc summary::-webkit-details-marker { display: none; }

#TableOfContents {
  margin-top: 0.75rem;
}

#TableOfContents ul {
  list-style: none;
  padding-left: 0;
}

#TableOfContents > ul > li > ul {
  padding-left: 1rem;
}

#TableOfContents a {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}

#TableOfContents a:hover,
#TableOfContents a.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-left-color: var(--accent);
}

/* === ARTICLE CONTENT === */

.article-content {
  font-size: 1rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 1rem;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 0.9em;
  background: var(--gradient);
  border-radius: 4px;
}

.article-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

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

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content li::marker {
  color: var(--accent);
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--gradient-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.875rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content th,
.article-content td {
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--border);
  text-align: left;
}

.article-content th {
  background: var(--bg-surface);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.article-content code {
  background: var(--bg-surface);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.875em;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
}

.article-content pre {
  background: var(--bg-elevated);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
}

.article-content pre code {
  padding: 0;
  background: none;
}

.article-content strong {
  font-weight: 700;
  color: #fff;
}

.article-content img {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* === TAGS === */

.article-tags {
  margin: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* === CALLOUT BOXES === */

.callout {
  border-radius: var(--radius);
  margin: 2rem 0;
  overflow: hidden;
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
}

.callout-info { border-left-color: #63b3ed; }
.callout-tip { border-left-color: #68d391; }
.callout-warning { border-left-color: #f6ad55; }

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.callout-icon { font-size: 1.1rem; }
.callout-info .callout-icon { color: #63b3ed; }
.callout-tip .callout-icon { color: #68d391; }
.callout-warning .callout-icon { color: #f6ad55; }

.callout-title {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.callout-info .callout-title { color: #63b3ed; }
.callout-tip .callout-title { color: #68d391; }
.callout-warning .callout-title { color: #f6ad55; }

.callout-body {
  padding: 0.5rem 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.callout-body p { margin-bottom: 0.4rem; }
.callout-body p:last-child { margin-bottom: 0; }

/* === KEYPOINT === */

.keypoint {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--gradient-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.keypoint-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient);
  border-radius: var(--radius) 0 0 var(--radius);
}

.keypoint-content {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
}

.keypoint-content p { margin-bottom: 0; }

/* === STATS GRID === */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(245,101,101,0.3);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* === STEPS TIMELINE === */

.steps-timeline {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
}

.step-item {
  display: flex;
  gap: 1rem;
  position: relative;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.step-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  min-height: 16px;
}

.step-item:last-child .step-line { display: none; }

.step-content {
  padding-bottom: 1.5rem;
}

.step-item:last-child .step-content { padding-bottom: 0; }

.step-title {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* === PROS & CONS === */

.proscons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.proscons-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.proscons-header {
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proscons-header-pro {
  background: rgba(104, 211, 145, 0.1);
  color: #68d391;
  border-bottom: 1px solid rgba(104, 211, 145, 0.15);
}

.proscons-header-con {
  background: rgba(245, 101, 101, 0.1);
  color: #f56565;
  border-bottom: 1px solid rgba(245, 101, 101, 0.15);
}

.proscons-item {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

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

.proscons-icon {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.pro-icon { color: #68d391; }
.con-icon { color: #f56565; }

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

/* === RELATED ARTICLES === */

.related-section {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-section .section-title {
  font-size: 1.1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* === ARTICLE NAV === */

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-prev, .nav-next {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-prev:hover, .nav-next:hover { color: var(--accent); }
.nav-next { text-align: right; }

/* === AFFILIATE BOX === */

.affiliate-box {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-image: var(--gradient) 1;
  border-radius: 0;
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.affiliate-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.affiliate-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.affiliate-name {
  display: block;
  font-size: 1.05rem;
  margin-top: 0.3rem;
}

.affiliate-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.affiliate-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow-strong);
}

/* === INTERACTIVE ELEMENT === */

.interactive-element {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2.5rem 0;
  overflow: hidden;
}

.interactive-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--gradient-subtle);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.interactive-icon {
  font-size: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.interactive-body {
  padding: 1.5rem;
}

/* === LIST PAGE === */

.list-page {
  padding: 2.5rem 0 3rem;
}

.list-page h1 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.list-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* === BACK TO TOP === */

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 15px var(--accent-glow);
}

/* === 404 PAGE === */

.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.error-text {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.error-link {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-right: 0.75rem;
  transition: all var(--transition);
}

.error-link:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow-strong);
}

.error-link-secondary {
  display: inline-block;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.error-link-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* === GUIDE / INHALTSVERZEICHNIS === */

.guide-hero {
  text-align: center;
  padding: 4rem 0 3rem;
  position: relative;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 350px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.guide-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.guide-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.guide-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 1.25rem;
}

.guide-meta {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.guide-layout {
  display: flex;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.guide-content {
  flex: 1;
  min-width: 0;
}

/* Sidebar */
.guide-sidebar {
  display: none;
}

.guide-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.guide-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition);
  margin-bottom: 0.15rem;
}

.guide-sidebar-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.guide-sidebar-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
}

.guide-sidebar-link:hover .guide-sidebar-num {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

/* Kapitel */
.guide-chapter {
  margin-bottom: 2.5rem;
}

.guide-chapter-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.guide-chapter-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.guide-chapter-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.guide-chapter-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* Einträge */
.guide-entries {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  color: var(--text);
}

.guide-entry:hover {
  border-color: rgba(245,101,101,0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 15px var(--accent-glow);
  color: var(--text);
}

.guide-entry-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 28px;
  padding-top: 0.15rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.guide-entry:hover .guide-entry-num {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.guide-entry-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.guide-entry-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.guide-entry-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .guide-hero h1 { font-size: 2.75rem; }
}

@media (min-width: 1024px) {
  .guide-sidebar {
    display: block;
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 5rem;
    align-self: flex-start;
  }

  .guide-hero h1 { font-size: 3rem; }
}

/* === FOOTER === */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 3rem;
  background: var(--bg-elevated);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  opacity: 0.6;
}

/* === DESKTOP BREAKPOINTS === */

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; }

  .hero { padding: 5rem 0 3.5rem; }
  .hero h1 { font-size: 2.75rem; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .featured-card { display: flex; flex-direction: row; }
  .featured-image { width: 45%; height: auto; min-height: 260px; }
  .featured-content { flex: 1; padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
  .featured-title { font-size: 1.75rem; }

  .article-header h1 { font-size: 2.25rem; }

  .affiliate-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .card-image { height: 180px; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 3.25rem; }
}

@media (min-width: 1200px) {
  .article-layout-wide {
    max-width: calc(var(--article-width) + var(--toc-width) + 3rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr var(--toc-width);
    gap: 3rem;
    align-items: start;
  }

  .article-layout-wide .article-main { min-width: 0; }

  .toc-sidebar {
    position: sticky;
    top: 5rem;
  }

  .toc-sidebar .toc {
    margin-bottom: 0;
  }
}
