/* Blog styles matching learn-german-a2.com design system */
:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --background: #e8ebfa;
  --foreground: #2d3748;
  --card: #ffffff;
  --muted: #6b7280;
  --border: rgba(102, 126, 234, 0.2);
  --gradient: linear-gradient(135deg, #667eea, #764ba2);
}

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

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header {
  background: var(--gradient);
  color: white;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header a { color: white; font-weight: 500; }
.header a:hover { text-decoration: none; opacity: 0.9; }
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}
.header-brand img { height: 24px; width: 24px; }
.header-nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }

/* Main content */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Blog index */
.blog-hero {
  text-align: center;
  padding: 2rem 0 1rem;
}
.blog-hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.blog-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.article-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.article-card h2 a { color: var(--foreground); }
.article-card h2 a:hover { color: var(--primary); text-decoration: none; }
.article-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.article-tag {
  display: inline-block;
  background: #e8ebfa;
  color: var(--primary);
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.4rem;
}

/* Article page */
.article-header {
  margin-bottom: 2rem;
}
.article-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.article-header .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
}
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--foreground);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.article-body p {
  margin-bottom: 1rem;
}
.article-body ul, .article-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.4rem;
}
.article-body strong {
  font-weight: 600;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.article-body th, .article-body td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-body th {
  font-weight: 600;
  background: #f8f9ff;
}
.vocab-example {
  background: #f8f9ff;
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}
.tip-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.tip-box strong { color: #16a34a; }
.warning-box {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.warning-box strong { color: #ca8a04; }

/* CTA box */
.cta-box {
  background: var(--gradient);
  color: white;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-box h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}
.cta-box p {
  opacity: 0.9;
  margin-bottom: 1rem;
}
.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 0.7rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* Related articles */
.related-articles {
  margin-top: 2.5rem;
}
.related-articles h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.related-list {
  display: grid;
  gap: 1rem;
}
.related-link {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  display: block;
  color: var(--foreground);
  transition: box-shadow 0.2s;
}
.related-link:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: var(--primary);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 640px) {
  .article-body { padding: 1.25rem; }
  .article-header h1 { font-size: 1.5rem; }
  .blog-hero h1 { font-size: 1.5rem; }
  .header-nav { gap: 1rem; font-size: 0.85rem; }
  .cta-box { padding: 1.5rem; }
}
