/*
Theme Name: Liverpoolguide
Theme URI: https://liverpoolguide.no
Author: Liverpoolguide.no
Author URI: https://liverpoolguide.no
Description: Lettvekts WordPress-tema for Liverpoolguide.no - en affiliate-guide til Liverpool for norske LFC- og Everton-supportere. Bygget uten page builder, med fokus paa Core Web Vitals, SEO-struktur og GEO/AI-synlighet.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liverpoolguide
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --lg-navy: #1B2A3A;
  --lg-navy-light: #2A3D52;
  --lg-cream: #F6F2E9;
  --lg-white: #FFFFFF;
  --lg-gold: #C89B3C;
  --lg-gold-text: #412402;
  --lg-charcoal: #22262B;
  --lg-text-muted: #5F5E5A;
  --lg-border: #E4DFD1;
  --lg-lfc-red: #C8102E;
  --lg-lfc-red-bg: #FCEBEB;
  --lg-efc-blue: #003399;
  --lg-efc-blue-bg: #E6F1FB;

  --lg-font-heading: 'Space Grotesk', 'Arial Narrow', Arial, sans-serif;
  --lg-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --lg-radius: 8px;
  --lg-radius-lg: 12px;
  --lg-max-width: 1180px;
  --lg-max-width-narrow: 760px;
}

/* ==========================================================================
   2. Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--lg-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--lg-charcoal);
  background: var(--lg-cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lg-navy); text-decoration: underline; text-decoration-color: var(--lg-border); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 {
  font-family: var(--lg-font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--lg-navy);
}
h1 { font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
.lg-container {
  max-width: var(--lg-max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.lg-container--narrow { max-width: var(--lg-max-width-narrow); }
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--lg-navy);
  color: var(--lg-white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
  background: var(--lg-navy);
  color: var(--lg-cream);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.site-header__logo {
  font-family: var(--lg-font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--lg-white);
  text-decoration: none;
}
.site-header__logo:hover { text-decoration: none; opacity: 0.9; }
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--lg-cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--lg-radius);
}
.main-nav a:hover { background: rgba(255,255,255,0.08); }

/* ==========================================================================
   4. Hero + matchday strip (front page)
   ========================================================================== */
.hero {
  background: var(--lg-navy);
  color: var(--lg-cream);
  padding: 40px 20px 32px;
}
.hero__inner { max-width: var(--lg-max-width); margin: 0 auto; }
.hero h1 { color: var(--lg-white); margin-bottom: 0.35em; }
.hero p { color: #B8C2CC; font-size: 1.05rem; max-width: 46ch; }
.btn-cta {
  display: inline-block;
  background: var(--lg-gold);
  color: var(--lg-gold-text);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 18px;
  border-radius: var(--lg-radius);
  text-decoration: none;
}
.btn-cta:hover { text-decoration: none; opacity: 0.92; }

.matchday-strip {
  background: var(--lg-cream);
  border-bottom: 1px solid var(--lg-border);
}
.matchday-strip__inner {
  max-width: var(--lg-max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.matchday-strip__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lg-lfc-red);
  flex-shrink: 0;
}

/* ==========================================================================
   5. Nav cards (category grid)
   ========================================================================== */
.nav-cards {
  padding: 32px 20px 8px;
}
.nav-cards__grid {
  max-width: var(--lg-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 700px) {
  .nav-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nav-card {
  background: var(--lg-white);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--lg-charcoal);
}
.nav-card:hover { border-color: var(--lg-navy); text-decoration: none; }
.nav-card svg { width: 24px; height: 24px; color: var(--lg-navy); margin-bottom: 8px; }
.nav-card__label { font-weight: 600; font-size: 13.5px; display: block; }

/* ==========================================================================
   6. Content sections generic
   ========================================================================== */
.section { padding: 32px 20px; }
.section--tight { padding: 20px 20px; }

/* ==========================================================================
   7. Guide single page (subpage template)
   ========================================================================== */
.guide-header { padding: 32px 20px 0; }
.breadcrumbs {
  font-size: 12.5px;
  color: var(--lg-text-muted);
  margin-bottom: 10px;
}
.breadcrumbs a { color: var(--lg-text-muted); text-decoration: underline; }
.guide-updated {
  font-size: 12.5px;
  color: var(--lg-text-muted);
  margin-bottom: 1.2em;
}
.guide-layout {
  max-width: var(--lg-max-width);
  margin: 0 auto;
  padding: 8px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 820px) {
  .guide-layout { grid-template-columns: 1fr; }
}
.guide-content { min-width: 0; }
.guide-content img { border-radius: var(--lg-radius); }
.guide-content h2 { margin-top: 1.4em; }

/* ==========================================================================
   8. Quick facts box
   ========================================================================== */
.quick-facts {
  background: var(--lg-white);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius-lg);
  padding: 16px;
  position: sticky;
  top: 16px;
}
.quick-facts__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--lg-text-muted);
  margin: 0 0 10px;
}
.quick-facts dl { margin: 0 0 12px; }
.quick-facts .fact-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--lg-border);
}
.quick-facts .fact-row:last-child { border-bottom: none; }
.quick-facts .fact-label { color: var(--lg-text-muted); }
.quick-facts .fact-value { font-weight: 500; text-align: right; }
.quick-facts .btn-cta { display: block; text-align: center; }

/* ==========================================================================
   9. FAQ
   ========================================================================== */
.lg-faq { margin: 1.6em 0; }
.lg-faq details {
  background: var(--lg-white);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.lg-faq summary {
  font-weight: 600;
  cursor: pointer;
  font-family: var(--lg-font-heading);
}
.lg-faq p:last-child { margin-bottom: 0; margin-top: 8px; }

/* ==========================================================================
   10. Club badges (used only inside LFC / Everton context)
   ========================================================================== */
.club-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.club-badge--lfc { background: var(--lg-lfc-red-bg); color: var(--lg-lfc-red); }
.club-badge--efc { background: var(--lg-efc-blue-bg); color: var(--lg-efc-blue); }

/* ==========================================================================
   11. Hub / taxonomy archive
   ========================================================================== */
.hub-header { padding: 36px 20px 8px; text-align: left; }
.hub-header__inner { max-width: var(--lg-max-width); margin: 0 auto; }
.subcats {
  padding: 12px 20px 0;
}
.subcats__grid {
  max-width: var(--lg-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 700px) { .subcats__grid { grid-template-columns: 1fr; } }
.subcat-card {
  background: var(--lg-white);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--lg-charcoal);
  display: block;
}
.subcat-card:hover { border-color: var(--lg-navy); text-decoration: none; }
.subcat-card__title { font-weight: 600; margin-bottom: 2px; display: block; }
.subcat-card__count { font-size: 12px; color: var(--lg-text-muted); }

.guide-list {
  max-width: var(--lg-max-width);
  margin: 0 auto;
  padding: 20px 20px 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide-list { grid-template-columns: 1fr; } }
.guide-card {
  background: var(--lg-white);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--lg-charcoal);
  display: block;
}
.guide-card:hover { border-color: var(--lg-navy); text-decoration: none; }
.guide-card__image { aspect-ratio: 16/10; background: var(--lg-border); }
.guide-card__body { padding: 12px 14px; }
.guide-card__title { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; display: block; }
.guide-card__excerpt { font-size: 12.5px; color: var(--lg-text-muted); margin: 0; }

/* ==========================================================================
   12. Related guides
   ========================================================================== */
.related { padding: 8px 0 0; }
.related__title { font-size: 15px; margin-bottom: 12px; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.related .guide-card__body { padding: 10px 12px; }
.related .guide-card__title { font-size: 13px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  background: var(--lg-navy);
  color: #B8C2CC;
  margin-top: 40px;
}
.site-footer__inner {
  max-width: var(--lg-max-width);
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--lg-white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #B8C2CC; text-decoration: none; font-size: 13.5px; }
.site-footer a:hover { color: var(--lg-white); }
.site-footer__disclosure {
  font-size: 12px;
  color: #8493A0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px;
  text-align: center;
}
.site-footer__disclosure a { color: #B8C2CC; }

/* ==========================================================================
   14. Utility
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
