/* ═══════════════════════════════════════════════════════════════════
   PATCHNOTES v2 — Premium full-width changelog
   ═══════════════════════════════════════════════════════════════════ */

/* v2.8.2 — Page patchnotes : pleine page SANS dashboard combat ni headers */
body.panel-patchnotes .combat-dashboard { display: none !important; }
body.panel-patchnotes .dash-titlebar    { display: none !important; }
body.panel-patchnotes #combat-dashboard { display: none !important; }
body.panel-patchnotes .left-nav-resp,
body.panel-patchnotes .panel#panel-patchnotes {
  width: 100%; max-width: 100%;
}
#panel-patchnotes { width: 100%; max-width: 100%; padding: 0 !important; }
#panel-patchnotes .panel-header { display: none !important; }
#panel-patchnotes .pn-current-card { display: none !important; }

.pnv2-page {
  width: 100%;
  padding: 24px 36px 60px;
  color: #f0d8a0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

/* ─── HERO ─────────────────────────────────────────────────────── */
.pnv2-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 40px;
  background: linear-gradient(135deg, rgba(60,40,15,0.85), rgba(20,14,8,0.95));
  border: 1px solid rgba(200,144,48,0.35);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
}
.pnv2-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 600px 300px at 0% 100%, rgba(200,144,48,0.18), transparent 60%),
    radial-gradient(ellipse 500px 250px at 100% 0%, rgba(160,96,255,0.10), transparent 60%);
}
.pnv2-hero-content { position: relative; z-index: 1; }
/* Orbites animées en background du hero */
.pnv2-hero-orbits {
  position: absolute;
  inset: -100px;
  pointer-events: none;
  z-index: 0;
}
.pnv2-orbit {
  position: absolute;
  border: 1px solid rgba(200,144,48,0.10);
  border-radius: 50%;
  animation: pnv2OrbitSpin 60s linear infinite;
}
.pnv2-orbit-1 { top: -50%; right: -10%; width: 400px; height: 400px; }
.pnv2-orbit-2 { top: -30%; right: 5%; width: 300px; height: 300px; animation-duration: 80s; animation-direction: reverse; }
.pnv2-orbit-3 { top: -10%; right: 15%; width: 200px; height: 200px; animation-duration: 100s; }
@keyframes pnv2OrbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.pnv2-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: #5fd47a;
  padding: 5px 14px;
  background: rgba(95,212,122,0.10);
  border: 1px solid rgba(95,212,122,0.40);
  border-radius: 999px;
  margin-bottom: 14px;
}
.pnv2-eyebrow-dot {
  width: 7px; height: 7px;
  background: #5fd47a; border-radius: 50%;
  box-shadow: 0 0 10px #5fd47a;
  animation: pnv2Pulse 2s ease-in-out infinite;
}
@keyframes pnv2Pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* H1 accent */
.pnv2-h1-accent {
  background: linear-gradient(135deg, #c890ff, #8050d0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cats row (counters par catégorie) */
.pnv2-hero-cats {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
}
.pnv2-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(20,14,8,0.55);
  border: 1px solid var(--c, #c89030);
  border-radius: 999px;
  font-size: 11.5px;
  color: #f0d8a0;
  cursor: help;
  transition: all 0.2s;
}
.pnv2-cat:hover { background: rgba(30,20,10,0.8); transform: translateY(-1px); }
.pnv2-cat-dot {
  width: 7px; height: 7px;
  background: var(--c, #c89030);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c, #c89030);
}
.pnv2-cat b { color: var(--c, #c89030); font-weight: 900; }
.pnv2-h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  background: linear-gradient(135deg, #ffe080, #c89030);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.pnv2-sub {
  margin: 0;
  font-size: 14.5px; color: #c0a888;
  line-height: 1.5;
}

.pnv2-hero-stats {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.pnv2-hs-block {
  text-align: center;
}
.pnv2-hs-current {
  padding: 16px 28px;
  background: linear-gradient(135deg, rgba(255,208,96,0.18), rgba(200,144,48,0.08));
  border: 1.5px solid rgba(255,208,96,0.45);
  border-radius: 12px;
  min-width: 220px;
}
.pnv2-hs-label {
  display: block;
  font-size: 9.5px; font-weight: 900; letter-spacing: 1.5px;
  color: #c89030; margin-bottom: 4px;
}
.pnv2-hs-version {
  font-size: 38px; font-weight: 900; color: #ffd060;
  line-height: 1; font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 14px rgba(255,208,96,0.5));
  margin-bottom: 4px;
}
.pnv2-hs-current small { font-size: 11px; color: #a89878; font-weight: 600; }

.pnv2-hs-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pnv2-hs-mini {
  text-align: center;
  padding: 10px 14px;
  background: rgba(20,14,8,0.6);
  border: 1px solid rgba(200,144,48,0.30);
  border-radius: 10px;
}
.pnv2-hs-mini b {
  display: block;
  font-size: 22px; font-weight: 900; color: #ffd060;
  line-height: 1;
}
.pnv2-hs-mini span {
  display: block;
  font-size: 9.5px; color: #a89878;
  font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─── CURRENT CARD existant — peut être skip ou stylé ── */
.pn-current-card { display: none; } /* on utilise notre hero */

/* ─── GRID LAYOUT ───────────────────────────────────────────── */
.pn-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

/* ─── ROADMAP (gauche, sticky) ─────────────────────────────── */
.pn-roadmap {
  position: sticky; top: 16px;
  align-self: start;
  background: rgba(20,14,8,0.65);
  border: 1px solid rgba(200,144,48,0.30);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.pn-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(200,144,48,0.18), rgba(200,144,48,0.05));
  border-bottom: 1px solid rgba(200,144,48,0.25);
  cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 800; color: #ffd060;
  transition: all 0.2s;
}
.pn-summary::-webkit-details-marker { display: none; }
.pn-summary:hover { background: linear-gradient(90deg, rgba(200,144,48,0.28), rgba(200,144,48,0.10)); }
.pn-summary-ic { font-size: 20px; }
.pn-roadmap-body { padding: 14px 18px; }
.pn-roadmap-tier { margin-bottom: 18px; }
.pn-roadmap-tier:last-child { margin-bottom: 0; }
.pn-roadmap-title {
  font-size: 11.5px; font-weight: 900; letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pn-roadmap-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pn-roadmap-list li {
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 12.5px;
  color: #f0d8a0;
  transition: all 0.2s;
}
.pn-roadmap-list li:hover {
  background: rgba(200,144,48,0.10);
  border-color: rgba(200,144,48,0.25);
  transform: translateX(2px);
}
.pn-roadmap-list li b { font-weight: 800; color: #ffd060; }
.pn-roadmap-list li small { font-size: 11px; color: #a89878; line-height: 1.4; }

/* ─── HISTORIQUE (droite) ──────────────────────────────────── */
.pn-history-col {
  min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.pn-history-title {
  font-size: 13px; font-weight: 900; letter-spacing: 1px;
  color: #c89030; text-transform: uppercase;
  padding: 8px 0;
}

/* Entries (versions) */
.pn-entry {
  background: linear-gradient(180deg, rgba(30,20,10,0.85), rgba(15,10,6,0.95));
  border: 1px solid rgba(200,144,48,0.20);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.pn-entry[open] {
  border-color: rgba(200,144,48,0.45);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.pn-entry summary {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  cursor: pointer; list-style: none;
  transition: background 0.2s;
}
.pn-entry summary::-webkit-details-marker { display: none; }
.pn-entry summary:hover {
  background: rgba(200,144,48,0.08);
}
.pn-entry summary::after {
  content: '▾';
  margin-left: auto;
  font-size: 14px; color: #c89030;
  transition: transform 0.2s;
}
.pn-entry[open] summary::after { transform: rotate(180deg); }

.pn-entry-version {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #c89030, #ffd060);
  color: #1a0e04;
  font-weight: 900; font-size: 12px; letter-spacing: 0.5px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.pn-entry-meta { flex: 1; min-width: 0; }
.pn-entry-title {
  font-size: 14px; font-weight: 800; color: #f0d8a0;
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
}
.pn-entry-date {
  font-size: 11px; color: #8a7858; font-weight: 700;
  margin-top: 2px;
}

.pn-entry-body {
  padding: 4px 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
}

/* Sections par type (fixes/features/tuning/data) */
.pn-section {
  padding-top: 10px;
}
.pn-section-title {
  font-size: 11.5px; font-weight: 900; letter-spacing: 1px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-transform: uppercase;
}
.pn-section-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.pn-section-list li {
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  border-left: 2px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  font-size: 12.5px;
  color: #d8c0a0;
  line-height: 1.5;
  transition: all 0.2s;
}
.pn-section-list li:hover {
  background: rgba(200,144,48,0.10);
  border-left-color: #ffd060;
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 968px) {
  .pnv2-page { padding: 16px 18px 40px; }
  .pnv2-hero {
    grid-template-columns: 1fr;
    padding: 22px 24px;
    gap: 18px;
  }
  .pnv2-hero-stats { flex-direction: row; align-items: stretch; gap: 10px; }
  .pnv2-hs-current { flex: 1; min-width: auto; padding: 12px 18px; }
  .pnv2-hs-version { font-size: 28px; }
  .pnv2-hs-row { grid-template-columns: 1fr; }

  .pn-grid { grid-template-columns: 1fr; gap: 18px; }
  .pn-roadmap { position: static; }
}

@media (max-width: 640px) {
  .pnv2-page { padding: 14px 12px 30px; }
  .pnv2-hero { padding: 18px 18px; }
  .pnv2-h1 { font-size: 24px; }
  .pnv2-sub { font-size: 13px; }
  .pnv2-hs-version { font-size: 24px; }

  .pn-entry summary { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .pn-entry-version { font-size: 11px; padding: 3px 10px; }
  .pn-entry-title { font-size: 13px; }
  .pn-entry-body { padding: 4px 14px 12px; }
  .pn-section-list li { font-size: 12px; padding: 7px 10px; }
}
