/* PMOstats Blog – blog.css */

/* ── BLOG INDEX PAGE ── */
.blog-page.legal-wrap { max-width: 960px; }

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.blog-tag {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: border-color var(--hover-duration) var(--hover-ease),
              color var(--hover-duration) var(--hover-ease),
              background var(--hover-duration) var(--hover-ease);
  line-height: 1.4;
}

.blog-tag:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.blog-tag.active { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.06); }

.blog-sort {
  display: flex;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-sort-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 7px 16px;
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background var(--hover-duration) var(--hover-ease),
              color var(--hover-duration) var(--hover-ease);
  line-height: 1.4;
}

.blog-sort-btn:first-child { border-right: 1px solid var(--border-medium); }
.blog-sort-btn:hover { color: var(--white); }
.blog-sort-btn.active { background: rgba(255,255,255,0.08); color: var(--white); }

/* ── ARTICLE CARD GRID ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--hover-duration) var(--hover-ease),
              transform var(--hover-duration) var(--hover-ease);
  text-decoration: none;
}

.blog-card:hover { border-color: var(--border-medium); transform: translateY(var(--hover-lift)); }

.blog-card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.blog-card-meta { font-size: 12px; color: var(--muted); }

.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-top: 4px;
  transition: opacity var(--hover-duration) var(--hover-ease);
  display: inline-block;
}

.blog-card:hover .blog-card-cta { opacity: 0.7; }

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 15px;
}

/* ── ARTICLE PAGE ── */
.blog-article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color var(--hover-duration) var(--hover-ease);
}

.article-back:hover { color: var(--white); }

.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}

.article-content h1 {
  font-family: 'Clash Display', 'Inter', system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 32px;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-top: 44px;
  margin-bottom: 14px;
  font-family: 'Inter', system-ui, sans-serif;
}

.article-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-top: 28px;
  margin-bottom: 8px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 20px;
  padding-left: 1.5em;
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--white); font-weight: 600; }

.article-content a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--hover-duration) var(--hover-ease);
}

.article-content a:hover { opacity: 0.75; }

.article-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 48px 0;
}

.article-footer-cta {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-top: 48px;
}

.article-footer-cta p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-footer-cta a {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity var(--hover-duration) var(--hover-ease);
}

.article-footer-cta a:hover { opacity: 0.88; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-filters { flex-direction: column; align-items: flex-start; }
  .blog-sort { align-self: flex-start; }
  .blog-page.legal-wrap { max-width: 100%; }
}
