/* Blog-specific styles following landing-page design language */

.blog-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.blog-hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.blog-hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 12px auto 0;
}

.filters {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.chip.active, .chip:hover {
  border-color: var(--primary-yellow);
  color: var(--text-primary);
}

.post-grid {
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background-color: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-yellow);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.post-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--dark-border);
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 219, 88, 0.08);
  color: var(--primary-yellow);
  border: 1px solid rgba(255,219,88,0.25);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Article */
.article-hero {
  padding: 140px 0 24px;
  border-bottom: 1px solid var(--dark-border);
}

.article-hero h1 {
  font-size: 3rem;
}

.article-meta {
  color: var(--text-tertiary);
  margin-top: 8px;
}

.article-content {
  max-width: 1000px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.article-content h2 { font-size: 2rem; margin-top: 2rem; }
.article-content h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.article-content p { margin: 1rem 0; }

.article-content blockquote {
  margin: 1.25rem 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary-yellow);
  background: var(--dark-surface);
  color: var(--text-secondary);
}

.article-content pre {
  background: #0d0d0d;
  border: 1px solid var(--dark-border);
  padding: 16px;
  border-radius: var(--border-radius);
  overflow: auto;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #ffe37a;
}

.article-content img {
  border-radius: var(--border-radius);
  border: 1px solid var(--dark-border);
  margin: 24px 0;
}

.article-content a { color: var(--primary-yellow); }
.article-content a:hover { color: var(--primary-yellow-hover); }

/* Template styling for better readability */
.template-section {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 24px;
  margin: 20px 0;
}

.template-section h3 {
  color: var(--primary-yellow);
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.template-section .template-meta {
  background: rgba(255, 219, 88, 0.05);
  border: 1px solid rgba(255, 219, 88, 0.2);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
}

.template-section .template-meta strong {
  color: var(--primary-yellow);
}

.template-section pre {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.4;
}

.template-section pre code {
  color: #e6e6e6;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.template-section ul {
  margin: 12px 0;
  padding-left: 20px;
}

.template-section li {
  margin: 6px 0;
  line-height: 1.5;
}

.template-section .tip-box {
  background: rgba(255, 219, 88, 0.05);
  border-left: 3px solid var(--primary-yellow);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
  font-style: italic;
}

.template-section .example-box {
  background: rgba(0, 255, 128, 0.05);
  border-left: 3px solid #00ff80;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
}

.template-section .warning-box {
  background: rgba(255, 100, 100, 0.05);
  border-left: 3px solid #ff6464;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-hero { padding-top: 120px; }
  .post-grid { grid-template-columns: 1fr; }
}
