/* 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,
.blog-card * { text-decoration: none !important; }

.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: 96px 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;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.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; }

/* ── READING PROGRESS BAR ── */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ff1014 0%, #ff7b00 100%);
  z-index: 10000;
  pointer-events: none;
  transition: width 80ms linear;
}

/* ── PULL QUOTE ── */
.article-pull-quote {
  margin: 40px 0;
  padding: 24px 28px 24px 32px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #ff1014 0%, #ff7b00 100%) 1;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  font-style: italic;
  background: linear-gradient(90deg, #ff1014 0%, #ff7b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-radius: 0 8px 8px 0;
}

/* ── ARTICLE META ── */
.article-read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ── LORE IMAGE ── */
.article-lore-image {
  margin: 48px auto;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: block;
}

.article-lore-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── QUICK TAKE / TLDR BOX ── */
.article-tldr {
  margin: 32px 0 40px;
  padding: 20px 24px 20px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #ff1014 0%, #ff7b00 100%) 1;
  border-radius: 0 10px 10px 0;
}

.article-tldr-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #ff1014 0%, #ff7b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.article-tldr ul {
  margin: 0;
  padding-left: 1.25em;
  list-style: disc;
}

.article-tldr li {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 6px;
}

.article-tldr li:last-child { margin-bottom: 0; }

.article-tldr-lang-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 12px;
  margin-bottom: 0;
  font-style: italic;
}

/* ── 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%; }
  .article-lore-image { max-width: 100%; border-radius: 12px; margin: 32px auto; }
}
