/* ═══════════════════════════════════════════════════════════════════
   Casino Gurus · Blog Archive + Single Post (page-blog.php / single-blog.php)  ·  v1.0
   Scoping: .crb-page
   Depends on: homepage-v2.css (CSS custom properties + shared .hpv2-*
   components: hero, section headers, content typography) and
   casino-ranking.css / casino-bonuses.css (.crb-hero/.crb-page base,
   FAQ-answer-style typography conventions — reused as-is, not
   redeclared here).
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Blog card — new component (image, title, excerpt, meta, CTA).
   Doesn't reuse .hpv2-bonus-card because the data shape is different
   (excerpt + date + read time instead of value/desc/claims/CTA-only),
   but matches its visual language: same border-radius/blur/border/
   hover-lift recipe as every other card on the site. ────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(30,42,58,.55) 0%, rgba(22,32,48,.5) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--cg-radius-lg);
  overflow: hidden;
  transition: transform var(--cg-trans), box-shadow var(--cg-trans), border-color var(--cg-trans);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cg-shadow-gold);
  border-color: rgba(212,175,55,.38);
}
.blog-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0a121c; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--cg-trans); }
.blog-card:hover .blog-card__image img { transform: scale(1.05); }
.blog-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cg-text);
}
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--cg-gold-light); }
.blog-card__excerpt {
  font-size: .86rem;
  line-height: 1.65;
  color: var(--cg-text-dim);
  margin: 0 0 16px;
  flex: 1;
}
.blog-card__excerpt p { margin: 0; }
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: .74rem;
  color: var(--cg-text-dim);
  margin-bottom: 16px;
}
.blog-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta__item i { color: var(--cg-gold); font-size: .74rem; }
.blog-card .hpv2-btn { align-self: flex-start; }

/* ── 2. Pagination ─────────────────────────────────────────────────── */
.hpv2-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.hpv2-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--cg-text-dim);
  transition: var(--cg-trans);
}
.hpv2-pagination a.page-numbers:hover {
  color: var(--cg-gold);
  border-color: var(--cg-gold);
}
.hpv2-pagination .page-numbers.current {
  background: var(--cg-gold-shine);
  color: #000;
  border-color: transparent;
  font-weight: 700;
}
.hpv2-pagination .page-numbers.dots {
  border: none;
  color: var(--cg-text-dim);
  min-width: auto;
  padding: 0 4px;
}

/* ── 3. Single post header ────────────────────────────────────────── */
.crb-hero--photo {
  background-size: cover;
  background-position: center;
}
.blog-single__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.blog-single__meta .blog-meta__item i { color: var(--cg-gold); }

/* ── 4. Reading progress bar — the bar element + scroll listener
   already existed in single-blog.php but had no visual styling
   anywhere, so it rendered with zero effect. Wired up properly here:
   a fixed thin bar just below the site header, filled by the
   --scroll custom property the existing JS already sets. ──────────── */
.progress {
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.08);
  z-index: 999;
}
.progress::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--scroll, 0%);
  background: var(--cg-gold-shine);
}

/* ── 5. Social share ───────────────────────────────────────────────── */
.blog-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.blog-share__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cg-text-dim);
  margin-right: 4px;
}
.blog-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--cg-text-dim);
  font-size: .95rem;
  transition: var(--cg-trans);
}
.blog-share__link:hover {
  color: var(--cg-gold);
  border-color: var(--cg-gold);
  transform: translateY(-2px);
}

/* ── 6. Responsive ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  /* 5 icons + label at 38px each with flex-wrap:wrap didn't fit narrow
     phone widths, so the 5th icon dropped to its own line. Force one
     line and shrink the icons slightly so all 5 fit alongside the label. */
  .blog-share { flex-wrap: nowrap; gap: 6px; }
  .blog-share__link { width: 34px; height: 34px; font-size: .85rem; }
}
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
}
