/* ── BLOG BASE ────────────────────────────────────────────────────────────── */
/* Applied via body.news-listing and body.news-post — does not affect main app */

body.news-listing,
body.news-post {
  background: var(--bg);
  color: var(--text);
}

/* ── BLOG HEADER ──────────────────────────────────────────────────────────── */
.blog-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-bottom: 2px solid var(--accent);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-header-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.blog-header-title span { color: var(--accent); }
.blog-back-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.12s;
  white-space: nowrap;
}
.blog-back-btn:hover { border-color: var(--accent); color: #fff; }

/* ── LISTING PAGE ─────────────────────────────────────────────────────────── */
.blog-listing-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px;
}
.blog-listing-main h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 8px;
}
.blog-listing-main .blog-tagline {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.post-card {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}
.post-card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--surface2);
  display: block;
}
.post-card-thumb-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2.5rem;
}
.post-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.post-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
}
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.post-card-tldr {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.post-card-read-more:hover { text-decoration: underline; }

.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 1rem;
}
.blog-empty strong { display: block; font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }

/* ── POST PAGE ────────────────────────────────────────────────────────────── */
.post-hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.post-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 64px;
}
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.post-main h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}
.post-main h2 {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.4;
}
.post-byline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.post-tldr {
  background: var(--accent-glow);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}
.post-tldr strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); margin-bottom: 6px; }
.post-body { font-size: 1rem; line-height: 1.8; color: var(--text); }
.post-body a { color: var(--accent); }
.post-body a:visited { color: var(--muted); }
.post-body a:hover { opacity: 0.8; }
.post-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.post-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 24px 0 8px; letter-spacing: 0.03em; }
.post-body p { margin-bottom: 20px; }
.post-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 28px; }
.post-table th { text-align: left; padding: 7px 10px; background: var(--surface2); color: var(--text); font-weight: 700; border-bottom: 2px solid var(--border); }
.post-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.post-table tr:last-child td { border-bottom: none; }
.post-table td:first-child, .post-table th:first-child { width: 36px; }
@media (max-width: 540px) { .post-table { font-size: 0.75rem; } .post-table td, .post-table th { padding: 5px 6px; } }
.post-body figure { margin: 28px 0; }
.post-body figure img { width: 100%; border-radius: 10px; display: block; }
.post-body figcaption { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* Float inline photos — width is responsive, capped at 300px */
.post-body figure.fig-float { float: right; margin: 4px 0 20px 28px; width: 44%; max-width: 340px; min-width: 180px; }
.post-body figure.fig-float img { width: 100%; height: auto; border-radius: 8px; display: block; }
.post-body figure.fig-float figcaption { font-size: 0.7rem; color: var(--muted); text-align: center; margin-top: 5px; line-height: 1.3; }
.post-body h3 { clear: both; }
@media (max-width: 500px) {
  .post-body figure.fig-float { float: none; width: 100%; max-width: 100%; margin: 20px auto; text-align: center; }
}
.post-body blockquote.coach-quote {
  border-left: 4px solid var(--accent);
  margin: 24px 0;
  padding: 14px 20px;
  background: var(--surface2);
  border-radius: 0 8px 8px 0;
}
.post-body blockquote.coach-quote p {
  margin: 0 0 10px;
  font-style: italic;
  font-size: 0.97rem;
  line-height: 1.7;
}
.post-body blockquote.coach-quote p:last-child {
  margin: 0;
}
.post-body blockquote.coach-quote cite {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: normal;
}

.post-body .post-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -12px;
  margin-bottom: 24px;
}

.post-body .pull-quote {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding: 8px 20px;
  margin: 28px 0;
  font-style: italic;
  line-height: 1.5;
}

/* ── POST AD UNIT ─────────────────────────────────────────────────────────── */
.post-ad {
  margin: 36px 0;
  background: var(--surface2);
  border-radius: 10px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── POST CTA FOOTER ──────────────────────────────────────────────────────── */
.post-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}
.post-cta h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.post-cta p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 20px; }
.post-cta a {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: opacity 0.15s;
  display: inline-block;
}
.post-cta a:hover { opacity: 0.85; }

/* ── CLUB PROFILE STATS ───────────────────────────────────────────────────── */
.club-profile-stats {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 32px;
}
.cps-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cps-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5));
}
.cps-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.cps-region {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cps-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
}
.cps-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cps-row:last-child { border-bottom: none; }
.cps-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.3;
}
.cps-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 420px) {
  .cps-cols { grid-template-columns: 1fr; }
}

/* ── SITE FOOTER ──────────────────────────────────────────────────────────── */
.blog-footer {
  background: #12131f; color: #5a5e7a; text-align: center;
  padding: 20px 32px; font-size: 0.78rem; margin-top: 0;
}
.blog-footer a { color: #7a7e9a; text-decoration: none; }
.blog-footer a:hover { color: #fff; }

/* ── MOBILE ───────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .blog-header { padding: 14px 16px; }
  .news-listing-top-ad { display: none; }
  .blog-listing-main { padding: 16px 16px 24px; }
  .post-main { padding: 24px 16px 48px; }
  .post-main h1 { font-size: 1.5rem; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
}
