/* Gold Picker — News list + detail styles */

/* ── News list ── */
.gp-news { padding-bottom: var(--gp-space-16); }

/* Pill filter */
.gp-news__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gp-space-2);
  margin-bottom: var(--gp-space-8);
  justify-content: center;
}

.gp-news__pill {
  padding: var(--gp-space-2) var(--gp-space-4);
  border-radius: var(--gp-radius-pill);
  border: 1px solid rgba(245,196,50,0.25);
  background: transparent;
  color: var(--gp-text);
  font-family: var(--gp-font-body);
  font-size: var(--gp-fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--gp-dur-fast), color var(--gp-dur-fast), border-color var(--gp-dur-fast);
}

.gp-news__pill:hover {
  border-color: var(--gp-gold);
  color: var(--gp-gold);
}

.gp-news__pill.is-active {
  background: var(--gp-gold);
  color: var(--gp-dark);
  border-color: var(--gp-gold);
}

/* Article list: latest article as a banner, the others as compact rows */
.gp-news__list {
  display: flex;
  flex-direction: column;
  gap: var(--gp-space-3);
  margin-bottom: var(--gp-space-8);
}
.gp-news__list[aria-busy="true"] { opacity: .65; }

/* Type tag, version badge, date */
.gp-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gp-space-2); }
.gp-news-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--gp-radius-pill);
  font-family: var(--gp-font-body); font-size: 0.6875rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gp-gold); background: rgba(245,196,50,.12);
}
.gp-news-tag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: currentColor; }
.gp-news-tag--event, .gp-news-tag--esports, .gp-news-tag--community { color: #3ecf72; background: rgba(62,207,114,.12); }
.gp-news-tag--dev-diary, .gp-news-tag--behind-the-scenes, .gp-news-tag--lore { color: #c090ff; background: rgba(192,144,255,.12); }
.gp-news-tag--announcement, .gp-news-tag--trailer, .gp-news-tag--roadmap, .gp-news-tag--beta { color: #4aa3ff; background: rgba(74,163,255,.12); }
.gp-news-version {
  padding: 2px 9px; border-radius: 8px;
  font-family: var(--gp-font-display); font-size: 0.8125rem;
  color: var(--gp-dark); background: var(--gp-gradient-gold);
}
.gp-news-date { font-size: var(--gp-fs-xs); font-weight: 700; color: var(--gp-dim-mid); }

/* Featured banner */
.gp-news-featured {
  border-radius: 22px; overflow: hidden;
  background: var(--gp-navy-mid);
  border: 1px solid rgba(245,196,50,.18);
  box-shadow: 0 0 0 4px rgba(245,196,50,.04), 0 18px 40px rgba(0,0,0,.35);
  margin-bottom: var(--gp-space-3);
  transition: border-color var(--gp-dur-fast);
}
.gp-news-featured:hover { border-color: rgba(245,196,50,.4); }
.gp-news-featured__link { display: grid; grid-template-columns: 1.1fr 1fr; text-decoration: none; color: inherit; }
.gp-news-featured__media { position: relative; min-height: 230px; background: var(--gp-navy) center/cover no-repeat; }
.gp-news-featured__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--gp-navy-mid)); }
.gp-news-featured__body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.gp-news-featured__title { margin: 0; font-family: var(--gp-font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.1; color: var(--gp-text); }
.gp-news-featured__excerpt { margin: 0; color: #b5c4d3; font-size: 0.9375rem; line-height: 1.5; }
.gp-news-featured__cta {
  align-self: flex-start; margin-top: 6px;
  padding: 12px 23px; border-radius: var(--gp-button-radius);
  font: 600 15px/1.4 "GoldPicker Display", "Fredoka", sans-serif;
  color: var(--gp-button-text); background: var(--gp-button-bg);
  box-shadow: var(--gp-button-shadow);
  transition: transform var(--gp-button-press-duration) linear;
}
.gp-news-featured:active .gp-news-featured__cta { transform: scale(var(--gp-button-press-scale)); }

/* Compact rows */
.gp-news-row {
  border-radius: 16px;
  background: var(--gp-navy-mid);
  border: 1px solid rgba(245,196,50,.07);
  transition: border-color var(--gp-dur-fast), transform var(--gp-dur-fast) var(--gp-ease-smooth);
}
.gp-news-row:hover { border-color: rgba(245,196,50,.35); transform: translateX(4px); }
.gp-news-row__link {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 10px 16px 10px 10px; text-decoration: none; color: inherit;
}
.gp-news-row__thumb { width: 150px; aspect-ratio: 16/9; border-radius: 11px; background: var(--gp-navy) center/cover no-repeat; }
.gp-news .gp-news-row__title { margin: 4px 0 2px; font-family: var(--gp-font-display); font-weight: 400; font-size: 1.1875rem; line-height: 1.2; color: var(--gp-text); }
.gp-news-row__excerpt { margin: 0; color: #9fb1c3; font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-news-row__arrow {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(245,196,50,.1); color: var(--gp-gold);
  font-weight: 800; font-size: 1.125rem;
}

@media (max-width: 860px) {
  .gp-news-featured__link { grid-template-columns: 1fr; }
  .gp-news-featured__media { min-height: 180px; }
  .gp-news-featured__media::after { background: linear-gradient(180deg, transparent 55%, var(--gp-navy-mid)); }
  .gp-news-featured__body { padding: 18px 20px 22px; }
  .gp-news-featured__title { font-size: 1.5rem; }
  .gp-news-row__link { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .gp-news-row__thumb { width: 110px; }
  .gp-news-row__arrow { display: none; }
}

/* Load more */
.gp-news__more { text-align: center; margin-top: var(--gp-space-6); }

.gp-news__no-more {
  color: var(--gp-dim-mid);
  font-size: var(--gp-fs-sm);
  margin: 0;
}

.gp-news__empty {
  text-align: center;
  color: var(--gp-dim-mid);
  padding: var(--gp-space-12) 0;
  font-size: var(--gp-fs-md);
}

/* ── Article detail ── */
.gp-article { padding-bottom: var(--gp-space-12); }

/* Hero: the cover as a band, title and meta laid on it */
.gp-article__hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: var(--gp-navy) center 40% / cover no-repeat;
}
.gp-article__hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,12,24,.15) 0%, rgba(6,12,24,.55) 55%, var(--gp-dark) 100%);
}
.gp-article__hero-in { position: relative; z-index: 1; width: 100%; padding-top: var(--gp-space-8); padding-bottom: 34px; }
.gp-article .gp-article__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 7px 14px;
  border-radius: var(--gp-radius-pill);
  font-size: 0.8125rem; font-weight: 800;
  color: var(--gp-gold); background: rgba(6,12,24,.6);
  backdrop-filter: blur(6px);
  box-shadow: var(--gp-button-shadow);
  transition: transform var(--gp-button-press-duration) linear;
}
.gp-article .gp-article__back:hover { background: rgba(6,12,24,.85); }
.gp-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.gp-article__meta .gp-news-tag { background: rgba(6,12,24,.7); border: 1px solid rgba(245,196,50,.35); }
.gp-article__date { font-size: 0.8125rem; font-weight: 700; color: #c3d0dc; }
.gp-article__title {
  margin: 0;
  font-family: var(--gp-font-display); font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.625rem); line-height: 1.02;
  color: var(--gp-text);
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.gp-article__lead { margin: 12px 0 0; max-width: 720px; font-size: 1.0625rem; line-height: 1.5; color: #c3d0dc; }

/* Two columns: body + sticky side */
.gp-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  padding-top: 34px;
}

.gp-article__body { max-width: 760px; font-size: 1.03rem; line-height: 1.75; color: #d2dde8; }
.gp-article__body > :first-child { margin-top: 0; }
.gp-article .gp-article__body h2 {
  position: relative;
  margin: 46px 0 14px; padding-left: 18px;
  font-family: var(--gp-font-display); font-weight: 400;
  font-size: 1.75rem; line-height: 1.15;
  color: var(--gp-text);
  scroll-margin-top: calc(var(--gp-navbar-height) + 20px);
}
.gp-article__body h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 6px; border-radius: 4px; background: var(--gp-gradient-gold);
}
.gp-article .gp-article__body h3 { margin: 28px 0 10px; font-family: var(--gp-font-display); font-weight: 400; font-size: 1.25rem; color: var(--gp-gold); }
.gp-article__body p { margin: 0 0 16px; }
.gp-article__body strong { color: var(--gp-text); }
.gp-article__body ul { margin: 0 0 18px; padding: 0; list-style: none; }
.gp-article__body ul li { position: relative; margin-bottom: 8px; padding-left: 22px; }
.gp-article__body ul li::before {
  content: ""; position: absolute; left: 3px; top: 11px;
  width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--gp-gold);
}
.gp-article__body ol { margin: 0 0 18px; padding-left: 22px; }
.gp-article .gp-article__body a { color: var(--gp-gold); text-decoration: underline; text-underline-offset: 3px; }

/* Media inserted in the editor */
.gp-article__body img,
.gp-article__body video,
.gp-article__body iframe {
  display: block; max-width: 100%; height: auto;
  margin: 22px 0 26px;
  border-radius: var(--gp-button-radius);
  border: 1px solid rgba(245,196,50,.18);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.gp-article__body iframe { width: 100%; aspect-ratio: 16/9; }
.gp-article__body figure { margin: 22px 0 26px; }
.gp-article__body figure img,
.gp-article__body figure video,
.gp-article__body figure iframe { margin: 0; }
.gp-article__body figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--gp-dim-mid); text-align: center; }

/* Changelog box with coloured pills */
.gp-changelog {
  margin: 10px 0 24px; padding: 8px 26px 18px;
  border-radius: 20px;
  background: var(--gp-navy-mid);
  border: 1px solid rgba(245,196,50,.12);
}
.gp-article .gp-changelog h3 { margin-top: 22px; }
.gp-article__body li.gp-change {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 0 0 8px; border-bottom: 1px solid rgba(255,255,255,.04);
}
.gp-article__body li.gp-change::before { display: none; }
.gp-change__pill {
  justify-self: start;
  padding: 3px 9px; border-radius: var(--gp-radius-pill);
  font-size: 0.656rem; font-weight: 800; letter-spacing: .08em; line-height: 1.6;
  color: var(--gp-dim-mid); background: rgba(90,122,147,.15);
}
.gp-change__pill--new { color: var(--gp-gold); background: rgba(245,196,50,.13); }
.gp-change__pill--changed { color: #4aa3ff; background: rgba(74,163,255,.13); }
.gp-change__pill--improved { color: #3ecf72; background: rgba(62,207,114,.13); }
.gp-change__pill--fixed { color: #ff7a6b; background: rgba(255,122,107,.13); }

/* Sticky side: contents + download */
.gp-article__side {
  position: sticky; top: calc(var(--gp-navbar-height) + 24px);
  align-self: start;
  display: flex; flex-direction: column; gap: 16px;
}
.gp-article__card { border-radius: var(--gp-button-radius); padding: 18px 18px 14px; background: var(--gp-navy-mid); border: 1px solid rgba(245,196,50,.1); }
.gp-article .gp-article__card-title {
  margin: 0 0 10px;
  font-family: var(--gp-font-body); font-size: 0.75rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gp-dim-mid);
}
.gp-article__toc { max-height: calc(100vh - var(--gp-navbar-height) - 260px); overflow-y: auto; }
.gp-article .gp-article__toc a {
  display: block; padding: 6px 10px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 700; color: #b5c4d3;
  transition: background var(--gp-dur-fast), color var(--gp-dur-fast);
}
.gp-article .gp-article__toc a:hover { color: var(--gp-gold); }
.gp-article .gp-article__toc a.is-active { color: var(--gp-dark); background: var(--gp-gradient-gold); }
.gp-article__download {
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,196,50,.22), transparent 70%), var(--gp-navy-mid);
}
.gp-article__download-logo { font-family: var(--gp-font-display); font-size: 1.625rem; color: var(--gp-gold); }
.gp-article__download p { margin: 6px 0 14px; font-size: 0.84rem; color: #b5c4d3; }
.gp-article .gp-article__download-btn {
  display: block; padding: 12px 23px; border-radius: var(--gp-button-radius);
  font: 600 15px/1.4 "GoldPicker Display", "Fredoka", sans-serif;
  color: var(--gp-button-text); background: var(--gp-button-bg);
  box-shadow: var(--gp-button-shadow);
  transition: transform var(--gp-button-press-duration) linear;
}
.gp-article .gp-article__download-btn:active { transform: scale(var(--gp-button-press-scale)); }

@media (max-width: 980px) {
  .gp-article__hero { min-height: 300px; }
  .gp-article__layout { grid-template-columns: 1fr; gap: 24px; }
  .gp-article__side { position: static; order: -1; }
  .gp-article__toc { display: none; }
}
@media (max-width: 560px) {
  .gp-changelog { padding: 6px 16px 14px; }
  .gp-article__body li.gp-change { grid-template-columns: 1fr; gap: 4px; }
}
