/* ---------- blog.html: the post list + right-hand category filter ----------
   Loaded alongside shell.css + menu.css (same hero/nav as every other
   section page - see shared/article.css's header note, same reasoning).
   Stacked on narrow screens (filters above the list, same "stacked phone /
   side-by-side wide" shape every game screen already uses), filters sit
   on the RIGHT on wide screens - the user's own call when this was asked
   for, not a default. Posts come from shared/seo-posts.js; the filter
   mechanism (buttons toggling [hidden] by a data-category match) mirrors
   por-edades.html's age-chip filter - same proven pattern, different data. */

.blog-intro {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 0 clamp(16px, 4vw, 28px);
  font-family: var(--am-readable-font);
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.55;
  color: var(--purple-dark);
  text-shadow: 1px 1px 0 #fff;
  text-align: center;
}

.blog-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 0 clamp(16px, 4vw, 28px);
  text-align: left;
}
@media (min-width: 760px) {
  .blog-layout { flex-direction: row; align-items: flex-start; }
  .blog-list { flex: 1; min-width: 0; order: 1; }
  .blog-sidebar { width: 230px; flex-shrink: 0; order: 2; position: sticky; top: 18px; }
}

.blog-sidebar {
  background: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 6px 0 rgba(0,0,0,.08), 0 10px 20px rgba(0,0,0,.1);
}
.blog-sidebar h2 {
  font-size: 16px;
  color: var(--purple-dark);
  margin: 0 0 12px;
}
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) { .blog-filters { flex-direction: column; } }
.blog-filter-btn {
  font-family: var(--am-readable-font);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  background: #eef3f4;
  color: var(--purple-dark);
  cursor: pointer;
  text-align: left;
}
.blog-filter-btn[aria-pressed="true"] { background: var(--purple); color: #fff; }
.blog-filter-btn:hover, .blog-filter-btn:focus-visible { outline: none; filter: brightness(1.04); }

.blog-list { display: flex; flex-direction: column; gap: 14px; }
.blog-card {
  display: block;
  background: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(0,0,0,.08), 0 10px 20px rgba(0,0,0,.1);
}
.blog-card-meta {
  display: block;
  font-family: var(--am-readable-font);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--pink);
  margin-bottom: 4px;
}
.blog-card-title {
  display: block;
  font-family: var(--am-readable-font);
  font-size: 19px;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 6px;
}
.blog-card-desc {
  display: block;
  font-family: var(--am-readable-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.blog-empty {
  font-family: var(--am-readable-font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 5px 0 rgba(0,0,0,.08), 0 10px 20px rgba(0,0,0,.1);
}
