/* Charte des news : CSS des maquettes news.html de Perrine (29/10), repris tel quel. */
/* ===========================
   OnAir News — Listing Page
   Prefix: .oan-
   =========================== */

.oan-wrap {
  background: #0d1117;
  color: #e8eaf2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding-bottom: 80px;
}

.oan-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ── */
.oan-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.oan-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2D7FF5;
  margin-bottom: 20px;
}

.oan-hero__eyebrow::before,
.oan-hero__eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: #2D7FF5;
  opacity: 0.5;
}

.oan-hero__heading {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #e8eaf2;
}

.oan-hero__sub {
  font-size: 16px;
  color: #7a8099;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Filter Pills ── */
.oan-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}

.oan-pill {
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #7a8099;
  transition: all 0.18s ease;
  user-select: none;
}

.oan-pill:hover {
  border-color: rgba(45,127,245,0.4);
  color: #c8d4f0;
  background: rgba(45,127,245,0.08);
}

.oan-pill.is-active {
  background: #2D7FF5;
  border-color: #2D7FF5;
  color: #fff;
}

/* ── Featured Article ── */
.oan-featured {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oan-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.oan-featured__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1a38 0%, #0d1117 50%, #0a1628 100%);
  z-index: 0;
}

.oan-featured__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(5,8,15,0.98) 0%,
    rgba(5,8,15,0.92) 30%,
    rgba(5,8,15,0.65) 55%,
    rgba(5,8,15,0.2)  80%,
    rgba(5,8,15,0.05) 100%);
}

/* Decorative aviation lines */
.oan-featured__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(45,127,245,0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(45,127,245,0.06) 0%, transparent 40%);
  z-index: 1;
}

.oan-featured__content {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.oan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.oan-badge--release   { background: rgba(20,50,110,0.82); color: #80bfff; border: 1px solid rgba(45,127,245,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.oan-badge--dev       { background: rgba(48,26,88,0.82);  color: #c4a6ff; border: 1px solid rgba(167,139,250,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.oan-badge--community { background: rgba(10,55,28,0.82);  color: #5ee89a; border: 1px solid rgba(34,197,94,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.oan-badge--world     { background: rgba(70,40,5,0.82);   color: #ffd166; border: 1px solid rgba(245,158,11,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.oan-featured__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: #e8eaf2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
}

.oan-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #a0aac0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.oan-featured__meta span + span::before {
  content: '·';
  margin-right: 16px;
}

.oan-featured__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2D7FF5;
  text-decoration: none;
  margin-top: 20px;
  transition: gap 0.18s;
}

.oan-featured__read:hover {
  gap: 10px;
}

/* ── Grid ── */
.oan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .oan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .oan-grid {
    grid-template-columns: 1fr;
  }
}

.oan-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.oan-card:hover {
  border-color: rgba(45,127,245,0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.oan-card__thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.oan-card__thumb-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1a2e 0%, #0d1117 100%);
}

/* Each card gets a subtle tinted gradient */
.oan-card[data-category="release"] .oan-card__thumb-bg {
  background: linear-gradient(135deg, #0a1428 0%, #0d1117 100%);
}
.oan-card[data-category="release"] .oan-card__thumb-bg {
  background: linear-gradient(135deg, #091528 0%, #0d1117 100%);
}
.oan-card[data-category="community"] .oan-card__thumb-bg {
  background: linear-gradient(135deg, #0a1a12 0%, #0d1117 100%);
}
.oan-card[data-category="world-events"] .oan-card__thumb-bg {
  background: linear-gradient(135deg, #1a1200 0%, #0d1117 100%);
}

.oan-card__thumb-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 60% 40%, rgba(45,127,245,0.1) 0%, transparent 60%);
}

.oan-card__badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

.oan-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.oan-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #e8eaf2;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oan-card__meta {
  font-size: 12px;
  color: #7a8099;
  display: flex;
  align-items: center;
  gap: 6px;
}

.oan-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #7a8099;
  opacity: 0.5;
}

.oan-card__excerpt {
  font-size: 13px;
  color: #7a8099;
  line-height: 1.55;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Load More ── */
.oan-loadmore {
  text-align: center;
}

.oan-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e8eaf2;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.12);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.oan-btn-ghost:hover {
  border-color: rgba(45,127,245,0.5);
  background: rgba(45,127,245,0.07);
  color: #6aadff;
}

/* ── Hidden state for filtering ── */
.oan-card.is-hidden {
  display: none;
}

[data-bg]{background:#0f1320;}


/* ---------- Ajouts de l'Auth : filtres en liens, pagination, liste vide ---------- */
a.oan-pill { text-decoration: none; display: inline-block; }
.oan-pager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.oan-pager a, .oan-pager span {
  min-width: 38px; padding: 8px 14px; border-radius: 99px; text-align: center; text-decoration: none;
  font-size: 13px; font-weight: 600; border: 1.5px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: #7a8099;
}
.oan-pager a:hover { border-color: rgba(45,127,245,0.4); color: #c8d4f0; background: rgba(45,127,245,0.08); }
.oan-pager .is-active { background: #2D7FF5; border-color: #2D7FF5; color: #fff; }
.oan-empty { text-align: center; color: #7a8099; padding: 48px 0; }
