/* Blog styles - works alongside the existing design-system.css */

.blog-page {
  min-height: 70vh;
  padding: 2rem 0 4rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-header .breadcrumb {
  justify-content: center;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #14b8a6;
}

.blog-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary, #4b5563);
  line-height: 1.6;
  font-size: 1.05rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.blog-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.12);
  border-color: #99f6e4;
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0d9488;
  background: #ccfbf1;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.blog-card-title {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.blog-card-title a {
  color: var(--text-primary, #111827);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #0d9488;
}

.blog-card-excerpt {
  color: var(--text-secondary, #4b5563);
  line-height: 1.6;
  margin: 0 0 1rem;
  font-size: 0.96rem;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: #9ca3af;
}

.blog-cta {
  text-align: center;
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
  border-radius: 20px;
  padding: 3rem 1.5rem;
  margin-top: 4rem;
}

.blog-cta h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: #134e4a;
}

.blog-cta p {
  margin: 0 0 1.5rem;
  color: #14746a;
}

/* Article (single post) */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  line-height: 1.75;
  color: var(--text-primary, #1f2937);
}

.blog-article .breadcrumb {
  margin-bottom: 1rem;
}

.blog-article .article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0d9488;
  background: #ccfbf1;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.blog-article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text-primary, #111827);
}

.blog-article .article-meta {
  color: #6b7280;
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.blog-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary, #111827);
}

.blog-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

.blog-article p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: #374151;
}

.blog-article a {
  color: #0d9488;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article a:hover {
  color: #0f766e;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.blog-article li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.blog-article blockquote {
  border-left: 4px solid #14b8a6;
  background: #f0fdfa;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #134e4a;
}

.blog-article .callout {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.blog-article .callout strong { color: #0d9488; }

.blog-article .article-cta {
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}

.blog-article .article-cta h3 {
  margin-top: 0;
  color: #134e4a;
}

.blog-article .article-cta a.btn {
  margin-top: 0.75rem;
}

.blog-article .related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.blog-article .related h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.blog-article .related ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.blog-article .related a {
  display: block;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  color: #134e4a;
}

.blog-article .related a:hover {
  background: #ccfbf1;
}

[data-theme="dark"] .blog-card {
  background: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .blog-card-title a { color: #f3f4f6; }
[data-theme="dark"] .blog-article p,
[data-theme="dark"] .blog-article li { color: #d1d5db; }
[data-theme="dark"] .blog-article h1,
[data-theme="dark"] .blog-article h2,
[data-theme="dark"] .blog-article h3 { color: #f3f4f6; }
[data-theme="dark"] .blog-article .callout,
[data-theme="dark"] .blog-article blockquote { background: #134e4a; color: #ccfbf1; }
[data-theme="dark"] .blog-article .related a { background: #1f2937; color: #ccfbf1; }
