/* Blog Styles — imports design tokens from parent */

/* Re-use root tokens from parent style.css */
:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --border: #e2e6ed;
  --text: #1a1d23;
  --text-secondary: #5f6775;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff4ff;
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: white;
  padding: 32px 0 28px;
  text-align: center;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-link.active {
  color: white;
  background: rgba(255,255,255,0.15);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.logo span {
  font-weight: 400;
  opacity: 0.85;
}

.header-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .sep {
  margin: 0 6px;
  color: var(--border);
}

/* Blog Index */
.blog-index-header {
  padding: 32px 0 8px;
}

.blog-index-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-index-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.article-list {
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.article-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text);
}

.article-card:hover h2 {
  color: var(--primary);
}

.article-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.article-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Article Page */
.article-header {
  padding: 32px 0 0;
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Article Body */
.article-body {
  padding: 24px 0 48px;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-top: 16px;
  line-height: 1.3;
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

.article-body p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1rem;
}

.article-body ul, .article-body ol {
  margin: 0 0 16px 20px;
}

.article-body li {
  margin-bottom: 6px;
  font-size: 1rem;
}

.article-body strong {
  font-weight: 600;
}

.article-body em {
  font-style: italic;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
}

.comparison-table thead {
  background: #f1f3f7;
}

.comparison-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}

.comparison-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tr:hover td {
  background: var(--primary-light);
}

.comparison-table .highlight-row td {
  background: var(--success-light);
  font-weight: 600;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--primary-hover);
}

/* Info Box */
.info-box {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
}

.info-box.success {
  background: var(--success-light);
  border-left-color: var(--success);
}

.info-box.danger {
  background: var(--danger-light);
  border-left-color: var(--danger);
}

.info-box strong {
  display: block;
  margin-bottom: 4px;
}

/* Related Articles */
.related-articles {
  padding: 32px 0;
  border-top: 2px solid var(--border);
  margin-top: 32px;
}

.related-articles h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.related-card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.related-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.related-card:hover h4 {
  color: var(--primary);
}

.related-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .header { padding: 24px 0 20px; }
  .logo { font-size: 1.3rem; }
  .article-title { font-size: 1.4rem; }
  .article-body h2 { font-size: 1.2rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-card { padding: 18px; }
}
