/* ============================================
   MH-FLOCKE — Blog Stylesheet
   ============================================ */

/* === BLOG LISTING === */
.mhf-blog-header {
  padding: 4rem 2rem 2rem;
  text-align: center;
}
.mhf-blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.mhf-blog-header p {
  color: var(--text-2);
  font-size: 1.1rem;
}

.mhf-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem;
}

.mhf-post-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mhf-post-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.mhf-post-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.mhf-post-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.mhf-post-card-img-placeholder span {
  font-size: 3rem;
  opacity: 0.3;
}

.mhf-post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mhf-post-card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.mhf-post-card-meta span {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mhf-post-card-meta .mhf-tag {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.mhf-post-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.mhf-post-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.mhf-post-card h2 a:hover { color: var(--accent); }

.mhf-post-card-excerpt {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.mhf-post-card-read {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mhf-post-card-read:hover { gap: 0.75rem; }
.mhf-post-card-read::after { content: '→'; }

/* === SINGLE POST === */
.mhf-single {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.mhf-single-header {
  margin-bottom: 3rem;
  text-align: center;
}
.mhf-single-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.mhf-single-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-3);
  font-family: var(--font-head);
  font-size: 0.85rem;
}

.mhf-single-hero-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

/* Post content typography */
.mhf-single-content {
  font-size: 1.1rem;
  line-height: 1.8;
}
.mhf-single-content p { margin-bottom: 1.5rem; }
.mhf-single-content h2 {
  font-size: 1.6rem;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.mhf-single-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}
.mhf-single-content ul, .mhf-single-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-2);
}
.mhf-single-content li { margin-bottom: 0.5rem; }
.mhf-single-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-elevated);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.mhf-single-content pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}
.mhf-single-content img {
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

/* Post navigation */
.mhf-post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  gap: 2rem;
}
.mhf-post-nav a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text-2);
  max-width: 45%;
}
.mhf-post-nav a:hover { color: var(--accent); }
.mhf-post-nav-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

/* Tags */
.mhf-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.mhf-tag-link {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--text-2);
}
.mhf-tag-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Pagination */
.mhf-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 2rem;
}
.mhf-pagination a,
.mhf-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--bg-elevated);
}
.mhf-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.mhf-pagination .current {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
