/* ── NEWS HERO ── */
.news-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 90px 40px 80px;
  background-image: url('../photo/Sfondo_header.jpg');
}
.news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 60px,
    rgba(0,87,255,.04) 60px, rgba(0,87,255,.04) 62px
  );
}
.news-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: #f4f6fa;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  transition: background 0.3s;
}
body.dark-mode .news-hero::after { background: #161616; }
.news-hero-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #cc1a2e;
  margin-bottom: 12px;
  position: relative;
}
.news-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1;
  position: relative;
}
.news-hero h1 span { color: #4a8aff; }
.news-hero p {
  color: rgba(255,255,255,.65);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
}

/* ── PAGE WRAPPER ── */
.news-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ── FILTER BAR ── */
.news-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.news-filter-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 4px;
  border: 1.5px solid #e8ecf4;
  background: #fff;
  color: #5a6a7a;
  cursor: pointer;
  transition: all 0.2s;
}
body.dark-mode .news-filter-btn { background: #1e2230; border-color: #2a3148; color: #8899bb; }
.news-filter-btn.active,
.news-filter-btn:hover { background: #003366; border-color: #003366; color: #fff; }
.news-filter-btn[data-filter="valorant"].active,
.news-filter-btn[data-filter="valorant"]:hover { background: #ff4655; border-color: #ff4655; }
.news-filter-btn[data-filter="lol"].active,
.news-filter-btn[data-filter="lol"]:hover { background: #c89b3c; border-color: #c89b3c; color: #000; }
.news-filter-btn[data-filter="r6"].active,
.news-filter-btn[data-filter="r6"]:hover { background: #f0a500; border-color: #f0a500; color: #000; }

/* ── NEWS LIST ── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── NEWS ROW ── */
.news-row {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  color: #fff;
}
.news-row:hover { transform: translateY(-3px); }

.valorant-box { background: linear-gradient(135deg, #0f1923, #2a0a0f); border: 1px solid rgba(255,70,85,.25); }
.lol-box      { background: linear-gradient(135deg, #0a0f2c, #1e2a78); border: 1px solid rgba(200,155,60,.25); }
.r6-box       { background: linear-gradient(135deg, #1a1a1a, #2a1f00); border: 1px solid rgba(240,165,0,.25); }

.valorant-box:hover { box-shadow: 0 8px 32px rgba(255,70,85,.25); }
.lol-box:hover      { box-shadow: 0 8px 32px rgba(200,155,60,.25); }
.r6-box:hover       { box-shadow: 0 8px 32px rgba(240,165,0,.25); }

.news-row img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(70%);
  transition: filter 0.25s;
}
.news-row:hover img { filter: brightness(85%); }

.news-info {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* ── CATEGORY BADGES ── */
.category {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  width: fit-content;
}
.valorant { background: #ff4655; color: #fff; }
.lol      { background: #c89b3c; color: #000; }
.r6       { background: #f0a500; color: #000; }

.news-info h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.news-info p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin: 0;
  line-height: 1.6;
}
.news-info .date {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

/* ── ARTICLE MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-overlay.fade-in  { animation: modalIn .3s ease forwards; }
.modal-overlay.fade-out { animation: modalOut .25s ease forwards; }
@keyframes modalIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalOut { from { opacity: 1; } to { opacity: 0; } }

.modal-card {
  position: relative;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  color: #fff;
  transform: translateY(30px) scale(.97);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }

.modal-card.valorant-box {
  background: linear-gradient(160deg, #0f1923 60%, rgba(255,70,85,.13) 100%);
  border: 1px solid rgba(255,70,85,.25);
  box-shadow: 0 0 60px rgba(255,70,85,.12), 0 20px 60px rgba(0,0,0,.7);
}
.modal-card.lol-box {
  background: linear-gradient(160deg, #0a0f2c 60%, rgba(30,42,120,.27) 100%);
  border: 1px solid rgba(200,155,60,.25);
  box-shadow: 0 0 60px rgba(200,155,60,.12), 0 20px 60px rgba(0,0,0,.7);
}
.modal-card.r6-box {
  background: linear-gradient(160deg, #1a1a1a 60%, rgba(240,165,0,.13) 100%);
  border: 1px solid rgba(240,165,0,.25);
  box-shadow: 0 0 60px rgba(240,165,0,.12), 0 20px 60px rgba(0,0,0,.7);
}

.modal-banner {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
  filter: brightness(60%);
}
.modal-body { padding: 28px 32px 36px; }
.modal-body .category { margin-bottom: 12px; }
.modal-body h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: -.3px;
}
.modal-body .date { font-size: 12px; opacity: .5; display: block; margin-bottom: 20px; }
.modal-body .modal-text { font-size: 15px; line-height: 1.75; opacity: .88; }

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 10;
}
.modal-close:hover { background: rgba(255,255,255,.2); transform: scale(1.1) rotate(90deg); }
.modal-card::-webkit-scrollbar { width: 5px; }
.modal-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 10px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .news-hero { padding: 60px 20px 70px; }
  .news-row { flex-direction: column; }
  .news-row img { width: 100%; height: 180px; }
  .modal-body { padding: 20px 20px 28px; }
}