/* css/startup-article.css */
:root {
  --bg-color: #0f172a;
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --highlight: #3b82f6;
  --card-bg: rgba(30, 41, 59, 0.5);
  --quote-border: #3b82f6;
  --code-bg: #1e293b;
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --border-color: rgba(0, 0, 0, 0.1);
  --highlight: #2563eb;
  --card-bg: #f8fafc;
  --quote-border: #2563eb;
  --code-bg: #f1f5f9;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Header & Typography */
header {
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 40px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--highlight);
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--highlight);
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Article Elements */
article {
  margin-bottom: 80px;
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--quote-border);
  background: var(--card-bg);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-main);
  border-radius: 0 12px 12px 0;
}

pre {
  background: var(--code-bg);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.95rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.btn-next {
  background: var(--highlight);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-next:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

.btn-back:hover {
  color: var(--highlight);
}

/* Roadmap Grid (for index.html) */
.roadmap-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 20px;
}

.step-card:hover {
  transform: scale(1.02);
  border-color: var(--highlight);
}

.step-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--highlight);
  background: rgba(59, 130, 246, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-info h3 {
  margin: 0;
  font-size: 1.2rem;
}

.step-info p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Theme Toggle (Reused from main index) */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
}

.theme-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(12px);
  transition: 0.3s;
}

@media (max-width: 600px) {
  .container {
    padding: 40px 20px;
  }

  header {
    margin-bottom: 40px;
    padding-bottom: 30px;
  }

  h1 { 
    font-size: 1.8rem; 
    line-height: 1.3;
  }

  h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.2rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p, li, blockquote {
    font-size: 1rem;
    line-height: 1.7;
  }

  .step-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .nav-footer { 
    flex-direction: column; 
    gap: 16px; 
    text-align: center; 
    margin-top: 40px;
    padding-top: 30px;
  }

  .btn-next {
    width: 100%;
    justify-content: center;
  }
}
