/*
Theme Name: ZWFC News
Theme URI: https://zwfc.tz/news
Author: Zanziholics Digital Agency
Author URI: https://zanziholics.com
Description: Official news theme for Zanzibar Women Football Club. Teal, gold, and white — matching the main zwfc.tz design system.
Version: 1.2
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Tags: news, blog, custom-header, footer-widgets
*/

:root {
  --teal: #0d4a4a;
  --teal-dark: #0a3838;
  --teal-light: #f0f9f9;
  --gold: #F5C63C;
  --gold-dark: #c49a1a;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --border: #e5e7eb;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-faint: #9ca3af;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
  background: var(--off-white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  color: var(--teal);
}

/* NAV */
.zwfc-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.zwfc-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.zwfc-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.zwfc-nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  padding: 4px;
  object-fit: contain;
}
.zwfc-nav-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--teal);
  line-height: 1;
}
.zwfc-nav-sub {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.zwfc-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.zwfc-nav-links a {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.2s;
}
.zwfc-nav-links a:hover { color: var(--teal); text-decoration: none; }
.zwfc-nav-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  border: 1px solid rgba(13,74,74,0.15);
  padding: 5px 12px;
  border-radius: var(--radius);
}
.zwfc-nav-cta {
  background: var(--gold) !important;
  color: #111 !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px !important;
  border-radius: var(--radius) !important;
  transition: opacity 0.2s;
}
.zwfc-nav-cta:hover { opacity: 0.9; text-decoration: none !important; }

/* CATEGORY FILTER BAR */
.zwfc-cat-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.zwfc-cat-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.zwfc-cat-bar a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 18px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}
.zwfc-cat-bar a:hover,
.zwfc-cat-bar a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* PAGE HERO */
.zwfc-hero {
  background: var(--teal);
  padding: 48px 0 32px;
}
.zwfc-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.zwfc-hero-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.zwfc-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 56px);
  color: #fff;
  line-height: 1;
}
.zwfc-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: 8px;
}

/* MAIN CONTAINER */
.zwfc-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* FEATURED ARTICLE */
.zwfc-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  text-decoration: none;
  box-shadow: var(--shadow);
  background: #fff;
  transition: box-shadow 0.25s;
}
.zwfc-featured:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.zwfc-featured-img {
  min-height: 320px;
  background: var(--teal-light);
  overflow: hidden;
  position: relative;
}
.zwfc-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.zwfc-featured-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--teal) 0%, #0f5a5a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.zwfc-featured-placeholder span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  color: rgba(245,198,60,0.2);
  letter-spacing: 4px;
}
.zwfc-featured-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.zwfc-cat-pill {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  border: 1px solid rgba(13,74,74,0.12);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
}
.zwfc-featured-body h2 {
  font-size: clamp(20px, 3vw, 30px);
  color: var(--teal);
  margin-bottom: 12px;
  line-height: 1.15;
}
.zwfc-featured-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.zwfc-read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}
.zwfc-date { font-size: 11px; color: var(--text-faint); }

/* ARTICLE GRID */
.zwfc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.zwfc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.zwfc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.zwfc-card-img {
  height: 180px;
  background: var(--teal-light);
  overflow: hidden;
}
.zwfc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.zwfc-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13,74,74,0.08), rgba(13,74,74,0.16));
  display: flex;
  align-items: center;
  justify-content: center;
}
.zwfc-card-placeholder span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: rgba(13,74,74,0.2);
}
.zwfc-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.zwfc-card-body h3 {
  font-size: 17px;
  color: var(--teal);
  margin-bottom: 8px;
  line-height: 1.25;
}
.zwfc-card-body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.zwfc-card-meta {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-faint);
}

/* PAGINATION */
.zwfc-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.zwfc-pagination .page-numbers {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #fff;
  text-decoration: none;
  transition: all 0.2s;
}
.zwfc-pagination .page-numbers.current,
.zwfc-pagination .page-numbers:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  text-decoration: none;
}

/* SINGLE ARTICLE */
.zwfc-single-hero {
  background: var(--teal);
  padding: 48px 0 32px;
}
.zwfc-single-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.zwfc-back-link {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
}
.zwfc-back-link:hover { color: #fff; text-decoration: none; }
.zwfc-single-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.1;
}
.zwfc-single-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.zwfc-single-thumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.zwfc-single-thumb img {
  width: 100%;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  max-height: 420px;
  object-fit: cover;
}
.zwfc-article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.zwfc-article-content {
  font-size: 16px;
  color: #374151;
  line-height: 1.85;
}
.zwfc-article-content h2,
.zwfc-article-content h3 {
  font-family: var(--font-display);
  color: var(--teal);
  margin: 32px 0 12px;
}
.zwfc-article-content p { margin-bottom: 20px; }
.zwfc-article-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}
.zwfc-article-content a { color: var(--teal); }
.zwfc-article-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}
.zwfc-article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.zwfc-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}
.zwfc-btn-teal { background: var(--teal); color: #fff; }
.zwfc-btn-teal:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.zwfc-btn-outline { border: 1px solid var(--border); color: var(--text-muted); }
.zwfc-btn-outline:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

/* EMPTY STATE */
.zwfc-empty {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.zwfc-empty .icon { font-size: 48px; margin-bottom: 16px; }
.zwfc-empty h2 { color: var(--teal); margin-bottom: 8px; }
.zwfc-empty p { color: var(--text-muted); font-size: 14px; }

/* FOOTER */
.zwfc-footer {
  background: var(--teal);
  margin-top: 0;
}
.zwfc-footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.zwfc-footer-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}
.zwfc-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.zwfc-footer-col h4 {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 700;
}
.zwfc-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.zwfc-footer-col a:hover { color: var(--gold); text-decoration: none; }
.zwfc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
.zwfc-footer-bottom a { color: var(--gold); text-decoration: none; }

/* MOBILE */
@media (max-width: 768px) {
  .zwfc-featured { grid-template-columns: 1fr; }
  .zwfc-featured-img { min-height: 220px; }
  .zwfc-featured-body { padding: 24px; }
  .zwfc-grid { grid-template-columns: 1fr; }
  .zwfc-footer-top { grid-template-columns: 1fr; gap: 24px; }
  .zwfc-nav-badge { display: none; }
  .zwfc-nav-links a:not(.zwfc-nav-cta) { display: none; }
}
@media (min-width: 480px) and (max-width: 768px) {
  .zwfc-grid { grid-template-columns: repeat(2,1fr); }
}


/* ===== FIXES ===== */

/* Fix 1: Featured article right panel - text visibility */
.zwfc-featured-body h2 { color: var(--teal) !important; }
.zwfc-featured-body p { color: var(--text-muted) !important; }
.zwfc-featured-body { background: #ffffff; }

/* Fix 2: Single article hero - add proper top padding for sticky nav */
.zwfc-single-hero {
  padding-top: calc(68px + 48px) !important;
}

/* Fix 3: Read More button - make it prominent and clickable */
.zwfc-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: background 0.2s;
  margin-top: 4px;
  align-self: flex-start;
}
.zwfc-read-more:hover { background: var(--teal-dark); }

/* Fix 4: Featured body layout — push read more to bottom */
.zwfc-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.zwfc-featured-body p { margin-bottom: 16px; flex: 1; }

/* Fix 5: Hero page hero padding for single */
.zwfc-single-hero {
  background: var(--teal);
  padding: calc(68px + 40px) 0 32px !important;
}
