/* ---------------------------
   Blog Archive — Berry Finds
   Clean list layout
---------------------------- */

.blogArchive__wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.blogArchive {
  padding: var(--sp-10) 0 var(--sp-16);
}

/* ─── Header ─── */
.blogArchive__header {
  margin-bottom: var(--sp-6);
}

.blogArchive__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 0 0 var(--sp-2);
}

.blogArchive__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ─── Filter chips ─── */
.blogArchive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

.blogArchive__chip {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--t);
}

.blogArchive__chip:hover {
  color: var(--text-heading);
  border-color: var(--text-heading);
}

.blogArchive__chip--active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.blogArchive__chip--active:hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ─── Post list ─── */
.blogList {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.blogList__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 150ms var(--ease);
}

.blogList__row:first-child {
  border-top: none;
}

.blogList__row:last-child {
  border-bottom: none;
}

.blogList__row:hover {
  background: var(--surface-2);
}

/* Row number */
.blogList__num {
  flex: 0 0 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-2);
  text-align: right;
}

/* Category icon */
.blogList__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  transition: all var(--t);
}

.blogList__row:hover .blogList__icon {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

/* Title */
.blogList__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blogList__row:hover .blogList__title {
  color: var(--accent-text);
}

/* Category pill */
.blogList__cat {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-text);
  background: var(--accent-subtle);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Date */
.blogList__date {
  flex-shrink: 0;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--muted);
  min-width: 50px;
  text-align: right;
}

/* ─── Pagination ─── */
.blogArchive__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.blogArchive__pagination a,
.blogArchive__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--t);
}

.blogArchive__pagination a {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.blogArchive__pagination a:hover {
  color: var(--text-heading);
  border-color: var(--accent);
}

.blogArchive__pagination span.current {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.blogArchive__pagination .dots {
  color: var(--muted);
  background: none;
  border: none;
}

/* ─── Empty state ─── */
.blogArchive__empty {
  text-align: center;
  padding: var(--sp-16) 0;
  color: var(--muted);
  font-size: 16px;
}

/* ─── Blog mega menu — single column, narrower ─── */
[data-mega="blog"] > .mega {
  width: 320px;
}

[data-mega="blog"] .mega__inner {
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

/* ─── Mega menu blog post icon ─── */
.megaPost__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.megaPost:hover .megaPost__icon {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .blogList__row {
    gap: 10px;
    padding: 12px 8px;
  }

  .blogList__num {
    display: none;
  }

  .blogList__cat {
    display: none;
  }

  .blogList__title {
    font-size: 14px;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blogList__date {
    font-size: 12px;
  }

  .blogArchive__title {
    font-size: 28px;
  }
}
