/* Blog list — Stefania Nuti Coach */

.bl-hero {
  padding: calc(var(--header-height) + 2.5rem) 0 1.5rem;
  text-align: center;
}

.bl-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--color-purple);
  margin: 0;
}

.bl-list-section {
  padding: 0 0 4rem;
}

.bl-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  --bl-thumb-width: 228px;
}

.bl-post {
  display: grid;
  grid-template-columns: minmax(var(--bl-thumb-width), 40%) 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.bl-post:hover {
  opacity: 0.92;
}

.bl-post:hover .bl-post-title {
  color: #000;
}

.bl-post-body {
  min-width: 0;
  padding: 2rem;
}

body[data-page="blog-index"] .bl-post-title {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
  margin: 0 0 0.75rem;
  transition: color 0.2s ease;
}

.bl-post-excerpt {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bl-post-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bl-post-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0ebf8;
}

.bl-post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-post-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.bl-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gray);
  opacity: 0.5;
}

.bl-post-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray);
}

.bl-post-thumb {
  order: -1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #f5f0fa;
  flex-shrink: 0;
  align-self: stretch;
}

.bl-post-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bl-post-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ede5f5 0%, #d8c8eb 100%);
}

.bl-empty {
  text-align: center;
  color: var(--color-gray);
  padding: 3rem 0;
}

@media (max-width: 768px) {
  .bl-post {
    grid-template-columns: 1fr;
  }

  .bl-post-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .bl-post-thumb {
    order: -1;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}
