/* articles.html — styles used only on this page (Club News).
   Shared styles: assets/site.css. Bump ?v= on the <link> after editing. */

/* ─── Page Header ─────────────────────────────────────────────── */
.page-header {
  background: var(--navy); padding: 48px 0 40px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(191,30,46,.07) 0px, rgba(191,30,46,.07) 2px,
    transparent 2px, transparent 24px
  );
}
.page-header-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--tan); margin-bottom: 14px;
}
.breadcrumb a { color: var(--tan); opacity: .7; transition: opacity .2s; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb span { opacity: .4; }
.page-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: white; line-height: 1;
  margin-bottom: 10px;
}
.page-header h1 .red-text { color: var(--red); }
.page-header-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 14px; color: rgba(255,255,255,.5); margin-top: 6px;
}

/* ─── Filter Bar ──────────────────────────────────────────────── */
.filter-bar {
  background: white;
  border-bottom: 2px solid var(--cream-dark);
  padding: 16px 0;
  position: sticky; top: 70px; z-index: 90;
}
.filter-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.search-wrap {
  position: relative; flex: 1; min-width: 220px;
}
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-light); font-size: 14px; pointer-events: none;
}
.search-input {
  width: 100%; padding: 9px 12px 9px 36px;
  border: 1.5px solid rgba(26,35,64,.15);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif; font-size: 13px;
  color: var(--ink); background: var(--cream);
  transition: border-color .2s; outline: none;
}
.search-input:focus { border-color: var(--navy); }
.sport-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.pill {
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid rgba(26,35,64,.15);
  color: var(--ink-mid); background: transparent;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill.active { background: var(--navy); color: white; border-color: var(--navy); }
.pill.active.red { background: var(--red); border-color: var(--red); }
.filter-count {
  font-family: 'Nunito', sans-serif;
  font-size: 12px; color: var(--ink-light);
  white-space: nowrap; margin-left: auto;
}

/* ─── Main Content ────────────────────────────────────────────── */
.main { padding: 40px 0 60px; }

/* Article grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.news-card {
  border: 2px solid rgba(26,35,64,.1);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s; background: white;
  cursor: pointer;
}
.news-card:hover { border-color: var(--red); transform: translateY(-2px); }
.news-card-img {
  height: 160px; position: relative; overflow: hidden;
}
.news-card-img-bg {
  width: 100%; height: 100%; object-fit: cover;
}
.nc-sport-gradient {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.nc-sport-text {
  font-family: 'Oswald', sans-serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
}
.news-card-img-sport {
  position: absolute; bottom: 10px; left: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: white; background: var(--red);
  padding: 3px 9px; border-radius: 2px;
}
.news-card-body { padding: 18px; }
.news-card-date {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; color: var(--ink-light); margin-bottom: 8px;
}
.news-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px; font-weight: 600; line-height: 1.3;
  color: var(--ink); margin-bottom: 8px;
  letter-spacing: .02em; text-transform: uppercase;
  transition: color .2s;
}
.news-card:hover h3 { color: var(--red); }
.news-card p {
  font-size: 13px; line-height: 1.65;
  color: var(--ink-mid); margin-bottom: 14px;
}
.news-cta {
  font-family: 'Oswald', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); display: inline-flex;
  align-items: center; gap: 6px; transition: gap .2s;
}
.news-card:hover .news-cta { gap: 10px; }
.news-cta::after { content: '→'; }

/* Empty / loading */
.state-msg {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 20px;
}
.state-msg .state-icon {
  font-size: 40px; margin-bottom: 14px; display: block;
}
.state-msg h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px; font-weight: 700; text-transform: uppercase;
  color: var(--ink); margin-bottom: 8px;
}
.state-msg p {
  font-family: 'Nunito', sans-serif;
  font-size: 14px; color: var(--ink-light);
}

/* ─── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.page-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: .06em;
  padding: 8px 14px; border-radius: var(--radius);
  border: 1.5px solid rgba(26,35,64,.18);
  background: white; color: var(--ink-mid);
  cursor: pointer; transition: all .15s; min-width: 40px; text-align: center;
}
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.page-ellipsis {
  font-family: 'Nunito', sans-serif;
  font-size: 14px; color: var(--ink-light); padding: 0 4px;
}

/* ─── Article Modal ───────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,14,28,.75); z-index: 500;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream); border-radius: 10px;
  max-width: 720px; width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,.5); overflow: hidden;
}
.modal-header {
  background: var(--navy); padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.modal-header-text { flex: 1; }
.modal-header h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: white;
  line-height: 1.2;
}
.modal-header-meta {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; color: var(--tan); margin-top: 4px;
}
.modal-close {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 22px; cursor: pointer; line-height: 1;
  transition: color .2s; padding: 0; flex-shrink: 0;
}
.modal-close:hover { color: white; }
.modal-body {
  padding: 24px;
  max-height: 70vh; overflow-y: auto;
}
.article-body-content {
  font-size: 15px; line-height: 1.8; color: var(--ink-mid);
}
.article-body-content h1, .article-body-content h2, .article-body-content h3 {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  color: var(--ink); margin: 20px 0 10px;
}
.article-body-content p { margin-bottom: 14px; }
.article-body-content ul, .article-body-content ol { margin: 0 0 14px 20px; }
/* Imported WordPress posts: photos, captions, tables, PDF links */
.article-body-content img { display: block; max-width: 100%; height: auto; border-radius: 6px; margin: 6px 0; }
.article-body-content img[width] { margin: 6px auto; }   /* sized in the editor: centered */
.article-body-content figure { margin: 0 0 16px; }
.article-body-content figcaption { font-size: 13px; color: var(--ink-light); margin-top: 4px; }
.article-body-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.article-body-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; display: block; overflow-x: auto; }
.article-body-content td, .article-body-content th { border: 1px solid var(--rule); padding: 6px 10px; text-align: left; vertical-align: top; }
.article-body-content blockquote { border-left: 3px solid var(--red); padding-left: 14px; margin: 0 0 14px; font-style: italic; }
.modal-actions { padding: 0 24px 24px; display: flex; gap: 10px; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
  .filter-inner { gap: 10px; }
  .filter-bar { top: 66px; }
}

/* Articles without a picture: a slim colored band instead of a big block */
.news-card.no-img .news-card-img { height: 54px; min-height: 0; }
.news-card.no-img { align-self: start; }
.news-card.featured.no-img { display: block; }
.news-card.no-img .nc-sport-gradient { justify-content: flex-end; padding-right: 16px; }
.news-card.no-img .nc-sport-text { font-size: 24px; letter-spacing: 0; color: white; }
.news-card.no-img .news-card-img-sport { bottom: auto; top: 50%; transform: translateY(-50%); }