/* ══════════════════════════════════════════
   NEWS PAGE
══════════════════════════════════════════ */

/* back button */
.hl-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-mid);
  border: 1px solid var(--dark-3);
  padding: 0.4em 1em;
  margin-bottom: 2rem;
  transition: color var(--transition), border-color var(--transition);
}
.hl-back-btn:hover { color: var(--white); border-color: var(--red); }

/* hero */
.news-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--dark-3);
  position: relative;
  overflow: hidden;
}
.news-hero::before {
  content: 'NEWS';
  position: absolute;
  right: -0.05em; top: 50%;
  transform: translateY(-50%);
  font-family: 'Anton', sans-serif;
  font-size: clamp(100px, 20vw, 240px);
  font-style: italic;
  color: rgba(204,0,0,0.04);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.news-hero-meta { position: relative; z-index: 2; }
.news-hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.news-hero-sub {
  font-size: 13px;
  color: var(--light-mid);
  letter-spacing: 0.04em;
}

/* section */
.news-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0 5rem;
  background: var(--black);
}

/* controls row */
.news-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* filter tabs */
.news-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.news-filter-tab {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-mid);
  padding: 0.4em 1em;
  border: 1px solid var(--dark-3);
  background: transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.news-filter-tab:hover { color: var(--white); border-color: var(--red); }
.news-filter-tab.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── NEWS CARD GRID ── */
.news-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5px;
  background: var(--dark-3);
  margin-bottom: 3rem;
}

.news-card-full {
  background: var(--dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
}
.news-card-full:hover { background: var(--dark-2); }
.news-card-full:hover .news-card-title { color: var(--red-light); }
.news-card-full:hover img { transform: scale(1.03); }

/* image */
.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark-2);
  position: relative;
  flex-shrink: 0;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.news-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(40px, 8vw, 64px);
  background: var(--dark-2);
  color: rgba(204,0,0,0.12);
  font-family: 'Anton', sans-serif;
  font-style: italic;
}
.news-featured-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0.25em 0.65em;
}

/* card body */
.news-card-body {
  padding: 1.4rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.news-category-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.2em 0.65em;
}
/* category colours */
.news-cat-season-update   { background: rgba(204,0,0,0.15);   color: var(--red-light); }
.news-cat-roster          { background: rgba(33,150,243,0.15); color: #64b5f6; }
.news-cat-tournament      { background: rgba(255,193,7,0.15);  color: #ffd54f; }
.news-cat-community       { background: rgba(76,175,80,0.15);  color: #81c784; }
.news-cat-coaching        { background: rgba(156,39,176,0.15); color: #ce93d8; }
.news-cat-sponsorship     { background: rgba(200,168,75,0.15); color: #c8a84b; }
.news-cat-general         { background: rgba(255,255,255,0.08); color: var(--light); }

.news-date {
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 0.7rem;
  transition: color var(--transition);
}
.news-card-excerpt {
  font-size: 13px;
  color: var(--light-mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.2rem;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--dark-3);
}
.news-author {
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 0.06em;
}
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  transition: color var(--transition);
}
.news-read-more:hover { color: var(--red-light); }

/* ── FORCE REVEAL on news page — cards are all in viewport on load ── */
.news-page .reveal {
  opacity: 1;
  transform: none;
}
.news-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--mid);
  font-size: 15px;
}

/* pagination shared classes already in site.css / highlights.css */
.hl-page-ellipsis {
  display: flex; align-items: center; justify-content: center;
  width: 36px; color: var(--mid); font-size: 13px;
}
.sch-page-info {
  text-align: center;
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
}

/* ── FORCE REVEAL on news page ── */
/* Cards are already in viewport on load so IntersectionObserver */
/* may not fire — override reveal to always show content */
.news-page .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* responsive */
@media (max-width: 768px) {
  .news-controls { flex-direction: column; align-items: flex-start; }
  .news-grid-full { grid-template-columns: 1fr; gap: 1px; }
}
@media (max-width: 480px) {
  .news-filter-tabs { gap: 0.3rem; }
  .news-filter-tab  { font-size: 10px; padding: 0.35em 0.8em; }
}

/* ══════════════════════════════════════════
   NEWS ARTICLE DETAIL PAGE
══════════════════════════════════════════ */
.news-detail-hero { padding-bottom: 2rem; }
.news-detail-title {
  font-size: clamp(26px, 4.5vw, 44px);
  margin-top: 0.6rem;
}
.news-featured-badge--static {
  position: static;
  display: inline-block;
}

.news-detail-container {
  max-width: 780px;
}

.news-detail-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dark-2);
  margin-bottom: 2.5rem;
}
.news-detail-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.news-detail-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--light);
}
.news-detail-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.news-detail-body p {
  margin-bottom: 1.2rem;
}
.news-detail-more-soon {
  color: var(--light-mid);
  font-style: italic;
}

.news-detail-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-3);
}
.news-detail-footer .news-read-more { font-size: 12px; }

@media (max-width: 600px) {
  .news-detail-lede { font-size: 16px; }
}