/* ============================================================
   BLOG-LISTING.CSS — Casino Evenements
   Blog index : editorial hero, category filters, article grid,
   pagination
   ============================================================ */

/* ============================================================
   PAGE OVERRIDES — transparent header for editorial hero
   ============================================================ */

body.page-blog {
  background-color: var(--black);
}

body.page-blog .header {
  background: transparent;
  border-bottom-color: transparent;
  transition: background var(--duration-normal) var(--ease-out),
              border-bottom-color var(--duration-normal) var(--ease-out);
}

body.page-blog .header.header--scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}

body.page-blog #main-content {
  padding-top: 0;
}

/* ============================================================
   HERO --BLOG — editorial magazine cover, no background image
   ============================================================ */

.hero--blog {
  min-height: 78vh;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: var(--black);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero--blog {
    min-height: 85vh;
  }
}

/* Disable inherited ::after overlay (no image here) */
.hero--blog::after {
  display: none;
}

/* --- Decorative backdrop: art deco rays + suit glyphs --- */

.hero-blog-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blog-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}

/* Playing card suits — giant watermark top-right */
.hero-blog-suits {
  position: absolute;
  top: clamp(4rem, 6vw, 7rem);
  right: clamp(-2rem, -1vw, 0rem);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(6rem, 9vw + 4rem, 14rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--gold);
  opacity: 0.07;
  display: flex;
  gap: 0.12em;
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 900px) {
  .hero-blog-suits {
    display: none;
  }
}

/* --- Container fills full height of the hero --- */

.hero--blog > .container {
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

/* --- Masthead: small caps label + issue number, separated by line --- */

.hero-blog-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  margin-bottom: auto;
}

.hero-blog-masthead-issue {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--gold-light);
}

@media (max-width: 500px) {
  .hero-blog-masthead-title {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }
  .hero-blog-masthead-issue {
    font-size: 0.75rem;
  }
}

/* --- Main editorial block: oversized H1, subtitle --- */

.hero-blog-inner {
  max-width: min(44rem, 100%);
  margin-top: auto;
  padding-top: var(--space-3xl);
}

.hero--blog h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 1.4rem + 4.5vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
  color: var(--white);
}

.hero--blog h1 .accent {
  display: inline-block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 1rem + 4vw, 4.25rem);
  letter-spacing: 0;
  line-height: 1;
  margin-top: 0.1em;
  color: var(--gold);
}

.hero--blog .hero-subtitle {
  max-width: 48ch;
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--white-soft);
  line-height: 1.75;
}

/* --- Animations: rays sweep in, text fade-up --- */

@media (prefers-reduced-motion: no-preference) {
  .hero-blog-rays {
    opacity: 0;
    animation: heroBlogRaysFade 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards;
  }
  @keyframes heroBlogRaysFade {
    to { opacity: 0.22; }
  }

  .hero-blog-suits {
    opacity: 0;
    transform: translateY(-20px);
    animation: heroBlogSuitsFade 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards;
  }
  @keyframes heroBlogSuitsFade {
    to {
      opacity: 0.07;
      transform: translateY(0);
    }
  }

  .hero-blog-masthead,
  .hero--blog h1,
  .hero--blog .hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroBlogFadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-blog-masthead        { animation-delay: 0.1s; }
  .hero--blog h1             { animation-delay: 0.35s; }
  .hero--blog .hero-subtitle { animation-delay: 0.55s; }

  @keyframes heroBlogFadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============================================================
   BLOG FILTERS — Category pill navigation
   ============================================================ */

.blog-filters {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-filters-list {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.blog-filters-list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .blog-filters-list {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.blog-filters-list a {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--white-muted);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.blog-filters-list a:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}

.blog-filters-list a.active {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.blog-filters-list a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================================
   BLOG LISTING — Section wrapper
   ============================================================ */

.blog-listing {
  padding: var(--space-2xl) 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.pagination a {
  color: var(--white-muted);
  border: 1px solid var(--border-subtle);
}

.pagination a:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}

.pagination a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Current page */
.pagination-current {
  color: var(--black);
  background: var(--gold);
  font-weight: 600;
}

/* Prev / Next */
.pagination-prev,
.pagination-next {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   ETAT VIDE — aucun article publie
   ============================================================ */

.blog-empty {
  padding: var(--space-4xl) 0;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.06), transparent 60%),
    var(--black);
}

.blog-empty-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.blog-empty-icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin: 0 auto var(--space-lg);
  opacity: 0.85;
}

.blog-empty h2 {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.blog-empty p {
  color: var(--white-muted);
  line-height: 1.7;
  margin: 0 0 var(--space-md);
}

.blog-empty-cta-intro {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg) !important;
  color: var(--white-soft);
  font-weight: 500;
}
