/*-----------------------------------*\
  SHARED ARTICLE PAGE STYLES
  
  Each article page links this file for base layout.
  Page-specific overrides (unique colors, grids, etc.)
  remain in inline <style> blocks per page.
\*-----------------------------------*/

:root {
  --bg-primary: #1e1e1e;
  --bg-secondary: #252525;
  --bg-card: #2a2a2a;
  --bg-highlight: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #d4d4d4;
  --text-muted: #a0a0a0;
  --accent: hsl(45, 100%, 72%);
  --accent-dim: hsla(45, 100%, 72%, 0.15);
  --border: #333333;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-highlight) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 20px 50px;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 30px;
  padding: 10px 0;
  transition: opacity 0.2s;
}

.back-link:hover { opacity: 0.8; }

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-description {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* Content */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

/* Sections */
.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.section p {
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.section ul li {
  font-size: 14px;
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--text-secondary);
}

.section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Callout */
.callout {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  font-style: italic;
}

/* Icon List */
.icon-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.icon-list li:last-child { border-bottom: none; }

.icon-list .icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

@media (min-width: 600px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.col-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.col-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.col-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Visual Block */
.visual-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  margin: 24px 0;
  text-align: center;
}

.visual-block .visual-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Lifecycle Flow */
.lifecycle-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.lifecycle-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.lifecycle-arrow {
  color: var(--accent);
  font-size: 18px;
}
