/* ==========================================================================
   Global Boxing — Aktualności
   ========================================================================== */

.page-news {
  background: var(--gb-black);
}

.news-hero {
  padding: calc(var(--nav-height) + 3.5rem) 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--gb-border);
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(225, 6, 0, 0.1), transparent 55%), var(--gb-black);
}

.news-hero-lead {
  max-width: 560px;
  margin-inline: auto;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 720px;
  margin: 1.75rem auto 0;
  padding: 0;
}

.news-filter-btn {
  padding: 0.45rem 0.95rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gb-gray);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.25s,
    background 0.25s,
    border-color 0.25s,
    transform 0.2s var(--ease-out);
}

.news-filter-btn:hover {
  color: var(--gb-white);
  border-color: rgba(225, 6, 0, 0.35);
}

.news-filter-btn.is-active {
  color: var(--gb-white);
  background: var(--gb-red);
  border-color: var(--gb-red);
  box-shadow: 0 8px 24px rgba(225, 6, 0, 0.35);
}

.news-filter-btn:focus-visible {
  outline: 2px solid var(--gb-red);
  outline-offset: 2px;
}

.news-empty {
  margin: 0 0 2rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--gb-gray);
  border: 1px dashed var(--gb-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.news-featured-wrap[hidden] {
  display: none !important;
}

.news-list-section {
  padding: var(--section-pad) 0;
}

.news-featured-wrap {
  margin-bottom: 3rem;
}

/* ── Wyróżniony wpis (lista) ── */

.news-featured-link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem;
  border-radius: 1.35rem;
  border: 1px solid var(--gb-border);
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(225, 6, 0, 0.12), transparent 50%), var(--gb-black-card);
  transition:
    border-color 0.35s,
    box-shadow 0.35s,
    transform 0.35s var(--ease-out);
}

.news-featured-link:hover {
  color: inherit;
  border-color: rgba(225, 6, 0, 0.45);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

@media (min-width: 992px) {
  .news-featured-link {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 2.75rem 3.25rem;
    padding: 1.75rem 2rem 1.75rem 1.75rem;
  }
}

@media (min-width: 1200px) {
  .news-featured-link {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 3rem 4rem;
    padding: 2rem 2.5rem 2rem 2rem;
  }
}

.news-featured-visual {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  max-height: min(68vh, 520px);
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  background: #111;
}

@media (min-width: 992px) {
  .news-featured-visual {
    max-width: none;
    margin-inline: 0;
    max-height: 480px;
  }
}

.news-featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-out);
}

.news-featured-link:hover .news-featured-visual img {
  transform: scale(1.04);
}

.news-featured-visual-accent {
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  background: var(--gb-red);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 20px rgba(225, 6, 0, 0.6);
}

.news-featured-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.news-featured-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .news-featured-content {
    align-items: center;
    text-align: center;
  }
}

.news-featured-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .news-featured-meta-top {
    justify-content: center;
  }
}

.news-featured-eyebrow {
  margin-bottom: 0;
}

.news-featured-pill {
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gb-white);
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.news-featured-category {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gb-white);
  background: var(--gb-red);
  border-radius: 999px;
}

.news-featured-content time {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--gb-gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-featured-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.25s;
}

.news-featured-link:hover .news-featured-title {
  color: var(--gb-red);
}

.news-featured-excerpt {
  margin: 0 0 1.5rem;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--gb-gray);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .news-featured-excerpt {
    margin-inline: auto;
  }
}

.news-featured-cta {
  pointer-events: none;
}

.news-list-section .news-grid {
  position: relative;
}

.news-list-section .news-grid::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: 0.5rem;
  background: var(--gb-border);
}

@media (min-width: 768px) {
  .news-list-section .news-grid::before {
    margin-bottom: 0.75rem;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  background: var(--gb-black-card);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s,
    box-shadow 0.35s;
}

.news-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 6, 0, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  color: inherit;
}

.news-card-media {
  position: relative;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: #111;
}

@media (max-width: 767.98px) {
  .news-featured-visual {
    aspect-ratio: 4 / 7;
    max-width: 220px;
    max-height: 270px;
  }

  .news-card-media {
    aspect-ratio: 4 / 7;
    max-height: 270px;
  }

  .news-single-visual {
    aspect-ratio: 4 / 5;
    max-width: 280px;
    max-height: min(50vh, 360px);
  }
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.news-card-link:hover .news-card-media img {
  transform: scale(1.05);
}

.news-card-category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gb-white);
  background: var(--gb-red);
  border-radius: 999px;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem 1.35rem;
  text-align: left;
}

.news-card-body time {
  font-size: 0.78rem;
  color: var(--gb-gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card-body h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.25s;
}

.news-card-link:hover h2 {
  color: var(--gb-red);
}

.news-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gb-gray);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gb-red);
}

/* ── Single post ── */

.news-single-section {
  padding: calc(var(--nav-height) + 2rem) 0 var(--section-pad);
}

.news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  color: var(--gb-gray);
}

.news-breadcrumb a {
  color: var(--gb-white);
  text-decoration: none;
  transition: color 0.25s;
}

.news-breadcrumb a:hover {
  color: var(--gb-red);
}

.news-breadcrumb span:last-child {
  color: var(--gb-gray-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 280px);
}

.news-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .news-single-layout {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 3rem 3.5rem;
  }
}

@media (min-width: 1200px) {
  .news-single-layout {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 3.5rem 4rem;
  }
}

.news-single-visual {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--gb-border);
  background: #111;
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 640px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.news-single-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

@media (min-width: 992px) {
  .news-single-visual {
    margin-inline: 0;
    max-width: none;
    max-height: calc(100vh - var(--nav-height) - 4rem);
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
  }
}

.news-single-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.news-single-main {
  min-width: 0;
}

.news-single-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gb-border);
}

.news-single-category {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gb-white);
  background: var(--gb-red);
  border-radius: 999px;
}

.news-single-header time {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--gb-gray);
}

.news-single-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.15;
}

.news-single-lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--gb-gray);
  line-height: 1.65;
}

.news-single-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.news-single-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  color: var(--gb-white);
}

.news-single-content p {
  margin: 0 0 1.25rem;
}

.news-single-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.news-single-content li {
  margin-bottom: 0.35rem;
}

.news-single-content a {
  color: var(--gb-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-single-content a:hover {
  color: var(--gb-white);
}

.news-single-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gb-border);
}

@media (max-width: 991.98px) {
  .news-single-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
  }

  .news-single-header h1 {
    max-width: 28ch;
    margin-inline: auto;
  }

  .news-single-lead {
    max-width: 42ch;
    margin-inline: auto;
  }
}

.news-related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gb-border);
}

.news-related h2 {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  text-align: center;
}

.news-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .news-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-not-found {
  text-align: center;
  padding: 4rem 0;
}

.news-not-found h1 {
  margin-bottom: 1.5rem;
}
