/* ─── PAGE HEADER ─── */
.news-page {
  padding: 8rem 3rem 5rem;
}

.news-page .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.news-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text);
  margin: 0.3rem 0 2.5rem;
}

/* ─── ARCHIVE GRID (same visual language as the homepage's news preview) ─── */
.news-archive-grid {
  display: grid;
  /* min(..., 100%): a column never asks for more than the row has. With a
     plain 300px minimum, the 224px row left at 320px pushed every card 28px
     past the right edge, cut off by the page's overflow-x: clip. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5px;
  background: var(--border);
}

.news-card {
  background: var(--bg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
  cursor: none;
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.news-card:hover {
  background: var(--surface);
}

.news-card:hover::before {
  transform: scaleX(1);
}

.news-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.news-card-category {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: 0.6rem;
}

.news-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.news-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
}

.news-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.news-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.news-card:hover .news-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

/* ─── PAGINATION ─── */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.news-pagination-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Empty state: an archive with nothing in it should still look like a
   finished page rather than one stray line of grey text. */
.news-empty {
  margin-top: 2rem;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--text);
  font-size: 1rem;
}

.news-empty-sub {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* The pagination links carry an inline arrow icon next to their label. */
.news-pagination .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* The phone gutter of /kontakt and the legal pages - this page kept the
   desktop 3rem, a fifth of a 320px screen. */
@media (max-width: 700px) {
  .news-page {
    padding: 7rem 1.25rem 4rem;
  }
}

@media (max-width: 600px) {
  .news-pagination {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .news-pagination .btn-ghost {
    padding: 0.8rem 1.2rem;
  }
}

/* ─── SHARED GHOST BUTTON (matches index.css/game.css's own copy) ─── */
.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: none;
  transition:
    border-color 0.2s,
    color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── PHONES: 12PX TEXT FLOOR ───
   This page's text under 0.75rem, lifted to it on phones - see the block of
   the same name at the end of base/shared.css. */
@media (max-width: 600px) {
  .news-page .label,
  .news-date,
  .news-card-category,
  .news-pagination-label,
  .btn-ghost {
    font-size: 0.75rem;
  }
}
