/*
Theme Name: FullCourtCoverage
Theme URI: https://fullcourtcoverage.com
Author: FullCourtCoverage
Description: A clean, editorial sports blog theme with API publishing support and optional advertising placements.
Version: 1.0.4
License: GNU General Public License v2 or later
Tags: sports, blog, editorial, responsive
*/

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Tokens ── */
:root {
  --red:        #E24B4A;
  --red-dark:   #A32D2D;
  --blue:       #185FA5;
  --amber:      #BA7517;
  --green-tag:  #3B6D11;

  --bg:         #ffffff;
  --bg-2:       #F7F6F3;
  --border:     rgba(0,0,0,0.12);
  --border-md:  rgba(0,0,0,0.22);

  --text:       #1a1a1a;
  --text-2:     #666660;
  --text-3:     #999994;

  --radius:     10px;
  --radius-sm:  6px;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Source Serif 4', serif;
  --font-ui:      'DM Sans', sans-serif;

  --max-w: 1100px;
  --col-gap: 1.25rem;
}

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Site header ── */
.site-header {
  border-bottom: 0.5px solid var(--border);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.site-logo span { color: var(--red); }
.site-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.site-tagline {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-3);
  border-left: 0.5px solid var(--border);
  padding-left: 0.75rem;
  margin: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

/* ── Mobile nav toggle (hamburger) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--text); }

/* ── Dropdown submenus ── */
.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a::after {
  content: "\25BE"; /* ▾ */
  font-size: 0.75em;
  margin-left: 0.3em;
  opacity: 0.6;
}
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  padding: 0.35rem 0;
  z-index: 200;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}
.main-nav .sub-menu a {
  display: block;
  padding: 0.4rem 1rem;
  white-space: nowrap;
}

/* ── Ad banner ── */
.ad-leaderboard {
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--border);
}
.ad-slot {
  border: 1.5px dashed var(--border-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ad-slot--leaderboard { height: 90px; max-width: 728px; margin: 0 auto; }
.ad-slot--mrec       { height: 250px; width: 300px; }

/* ── Hero ── */
.hero { padding: 2rem 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
}
.hero-feature {
  background: #1a1a1a;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.hero-feature .feat-thumb {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero-feature .feat-overlay {
  position: absolute;
  inset: 0;
  /*background: linear-gradient(to top, rgba(0,0,0,0.88) 40%, transparent 100%);*/
}
.hero-feature .feat-body { position: relative; z-index: 1; }
.hero-feature .feat-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.hero-feature .feat-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sidebar-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.15s;
}
.sidebar-card:hover { border-color: var(--border-md); }
.sidebar-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border-md);
  line-height: 1;
  min-width: 32px;
}
.sidebar-card .card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text);
}
.sidebar-card .card-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ── Category tag ── */
.cat-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: var(--red);
  color: #fff;
}
.cat-tag--blue   { background: var(--blue); }
.cat-tag--amber  { background: var(--amber); }
.cat-tag--green  { background: var(--green-tag); }

/* ── Divider ── */
.section-divider {
  height: 0.5px;
  background: var(--border);
  margin: 1.5rem 0 1rem;
}
.section-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

/* ── Article grid ── */
.article-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: var(--col-gap);
  align-items: start;
  margin-bottom: 3rem;
}
.article-cols { display: flex; flex-direction: column; gap: var(--col-gap); }
.article-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--border-md); }
.article-card .thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card .card-body { padding: 1rem; }
.article-card .card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.article-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ── Sidebar ad column ── */
.ad-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 80px;
}

/* ── Pagination ── */
.navigation.pagination { margin-bottom: 3rem; }
.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pagination .page-numbers {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: border-color 0.15s, color 0.15s;
}
.pagination a.page-numbers:hover {
  border-color: var(--border-md);
  color: var(--text);
}
.pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.pagination .page-numbers.dots { border: none; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── Single post ── */
.post-header { padding: 2.5rem 0 1.5rem; max-width: 720px; margin: 0 auto; }
.post-header .post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.post-header .post-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-2);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.post-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.post-content {
  max-width: 720px;
  margin: 0 auto 3rem;
}
.post-content p  { margin-bottom: 1.25em; }
.post-content h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }
.post-content ul,
.post-content ol { padding-left: 1.5rem; margin-bottom: 1.25em; }
.post-content blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  color: var(--text-2);
  font-style: italic;
  margin: 1.5rem 0;
}

/* ── Footer ── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid,
  .article-grid-wrap { grid-template-columns: 1fr; }
  .ad-sidebar-col { position: static; }
}
@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 0.5px solid var(--border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 1.5rem 1rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li + li { border-top: 0.5px solid var(--border); }
  .main-nav a {
    display: block;
    padding: 0.75rem 0;
  }
  /* Submenus expand inline on mobile (no hover on touch) */
  .main-nav .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }
  .main-nav .menu-item-has-children > a::after { content: none; }
  .site-tagline { display: none; }
  .hero-feature { min-height: 260px; }
}
