/*
Theme Name: SRFC
Theme URI: https://shamrockrovers.ie
Description: Custom theme for Shamrock Rovers FC. Clean light design with green/white/gold brand accents.
Author: SRFC Digital
Version: 0.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: srfc
*/

/* === Design Tokens === */
:root {
  --green: #1A6B36;
  --green-dark: #0D4C22;
  --green-light: #228B48;
  --green-glow: rgba(26, 107, 54, 0.12);
  --gold: #C9A84C;
  --gold-dim: rgba(201, 168, 76, 0.25);
  --bg-body: #F5F6F8;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-surface: #F0F1F4;
  --bg-hover: #EAEBEE;
  --bg-header: #1A1D27;
  --text-primary: #1A1D27;
  --text-secondary: #4A4F5E;
  --text-muted: #7A7F8E;
  --text-light: #FFFFFF;
  --border: #E2E4E9;
  --border-light: #CED0D7;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* === Header === */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), var(--gold), var(--green), transparent);
  opacity: 0.6;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-crest {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(26, 107, 54, 0.4));
  transition: filter 0.2s;
}

.site-logo:hover .logo-crest {
  filter: drop-shadow(0 0 10px rgba(26, 107, 54, 0.6));
}

.header-tickets-btn {
  display: none;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  gap: 0.35rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .header-tickets-btn { display: inline-flex; }
}

.logo-text small {
  color: var(--gold);
  font-weight: 400;
  font-size: 0.75em;
}

.site-logo:hover { color: #FFFFFF; }

/* Nav menu */
.primary-menu {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  color: var(--text-muted);
  transition: color 0.15s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item a::after { width: 100%; }

.primary-menu a:hover,
.primary-menu .current-menu-item a { color: #FFFFFF; }

/* Dropdown */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.5rem;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
}

.primary-menu li:hover > .sub-menu {
  display: block;
}

.primary-menu .sub-menu li {
  margin: 0;
}

.primary-menu .sub-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.primary-menu .sub-menu a:hover {
  background: var(--bg-hover);
  color: var(--green);
}

.primary-menu .sub-menu a::after { display: none; }

/* Chevron indicator for items with submenus */
.primary-menu .menu-item-has-children > a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0;
}

.primary-menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 66px;
  left: 0;
  right: 0;
  background: var(--bg-header);
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
}

/* Mobile: show submenus inline */
.primary-menu.open .sub-menu {
  display: block;
  position: static;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 0 0 1rem;
  margin: 0;
}

.primary-menu.open .sub-menu a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

#mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .primary-menu { display: flex; }
  #mobile-menu-toggle { display: none; }
}

/* === Hero Section === */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  background-image: url('assets/images/hero-stadium.jpg');
  background-size: cover;
  background-position: center 30%;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.02) 18px,
    rgba(255, 255, 255, 0.02) 22px
  );
  pointer-events: none;
  transform: skewX(-15deg);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-body) 0%, rgba(15, 17, 23, 0.5) 40%, rgba(15, 17, 23, 0.3) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(26, 107, 54, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(26, 107, 54, 0.1) 0%, transparent 30%);
  pointer-events: none;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(26, 107, 54, 0.04) 20px,
    rgba(26, 107, 54, 0.04) 22px
  );
}

.hero-bg-pattern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-body), transparent);
}

.hero-content { position: relative; z-index: 1; }

/* === Footer === */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--green));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-logo {
  line-height: 0;
}

.footer-crest {
  filter: drop-shadow(0 0 12px rgba(26, 107, 54, 0.3));
  transition: filter 0.2s;
}

.footer-logo:hover .footer-crest {
  filter: drop-shadow(0 0 20px rgba(26, 107, 54, 0.5));
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--green);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-heading {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.footer-links ul,
.footer-menu-col {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-menu-col li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-menu-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color 0.15s;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover,
.footer-menu-col a:hover {
  color: #FFFFFF;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0 0 0.25rem;
}

.footer-email {
  color: var(--green-light);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.footer-email:hover { color: var(--gold); }

/* Hooped divider */
.footer-hoops-divider {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-hoops-divider span {
  flex: 1;
  max-width: 40px;
  height: 3px;
  border-radius: 2px;
}

.footer-hoops-divider span:nth-child(odd) {
  background: var(--green);
  opacity: 0.4;
}

.footer-hoops-divider span:nth-child(even) {
  background: #FFFFFF;
  opacity: 0.15;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  margin: 0;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.footer-legal a:hover { color: rgba(255, 255, 255, 0.7); }

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* === Content Cards === */
.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.content-card:hover {
  background: var(--bg-white);
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(26, 107, 54, 0.12);
}

.content-card:hover::before { opacity: 1; }

.card-image-wrap {
  position: relative;
  overflow: hidden;
  display: block;
}

.card-image-wrap .card-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.content-card:hover .card-image { transform: scale(1.05); }

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  pointer-events: none;
}

.content-card--no-image .card-body {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
}

.content-card .card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-meta time {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-category {
  font-size: 0.65rem;
  color: var(--green-light);
  background: rgba(26, 107, 54, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-card .card-title {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card .card-title a { color: inherit; }
.content-card .card-title a:hover { color: var(--gold); }

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Featured (Hero) Card === */
.content-card--featured {
  border-radius: var(--radius-lg);
}

.content-card--featured .card-image-wrap .card-image {
  height: 280px;
}

@media (min-width: 768px) {
  .content-card--featured .card-image-wrap .card-image {
    height: 360px;
  }
}

.content-card--featured .card-body {
  padding: 1.25rem;
}

.content-card--featured .card-title {
  font-size: 1.25rem;
  -webkit-line-clamp: 3;
}

@media (min-width: 768px) {
  .content-card--featured .card-title {
    font-size: 1.5rem;
  }
}

.content-card--featured .card-image-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 40%, transparent 70%);
}

/* === News Layout === */
.news-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-featured {
  width: 100%;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .news-featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .news-featured {
    grid-column: 1 / -1;
  }
  .news-featured .content-card--featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }
  .news-featured .content-card--featured .card-image-wrap .card-image {
    height: 100%;
    min-height: 280px;
  }
  .news-featured .content-card--featured .card-image-overlay {
    background: linear-gradient(to right, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
  }
  .news-featured .content-card--featured .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
  }
}

/* === Section Headings === */
.section-heading {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-light), transparent);
  margin-left: 0.5rem;
}

.heading-accent {
  display: inline-block;
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(180deg, var(--green), var(--gold));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(26, 107, 54, 0.3);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--green);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(26, 107, 54, 0.3);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(26, 107, 54, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d4b45a);
  color: #1A1D27;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d4b45a, var(--gold));
  color: #1A1D27;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover { border-color: var(--green); color: var(--green-light); }

/* === Ticket CTA Banner === */
.ticket-cta {
  background:
    linear-gradient(135deg, rgba(26, 107, 54, 0.92), rgba(13, 76, 34, 0.95)),
    url('assets/images/bg-fans.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 107, 54, 0.2);
}

.ticket-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.ticket-cta h3 {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
}

.ticket-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* === Single Article === */

/* Article Hero */
.article-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
}

.article-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-body) 0%, rgba(15, 17, 23, 0.6) 40%, rgba(15, 17, 23, 0.3) 70%, rgba(15, 17, 23, 0.4) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1rem 2.5rem;
}

.article-hero-cat {
  display: inline-block;
  background: var(--green);
  color: #FFFFFF;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.article-hero-title {
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .article-hero { min-height: 440px; }
  .article-hero-title { font-size: 2.75rem; }
  .article-hero-content { padding: 4rem 1rem 3rem; }
}

.article-hero-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-sep { opacity: 0.4; }

/* Article Layout */
.article-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.article-content {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }

.article-content p { margin-bottom: 1.25rem; }

.article-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.article-content blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-content a { text-decoration: underline; }

/* Article Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-label {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
}

.share-btn:hover { transform: translateY(-2px); }
.share-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-x:hover { background: #1DA1F2; border-color: #1DA1F2; color: #fff; }
.share-wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-copy:hover { background: var(--green); border-color: var(--green); color: #fff; }
.share-copy.copied { background: var(--green); border-color: var(--green); color: #fff; }

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Article Comments */
.article-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* === Widget Iframe Container === */
.widget-embed {
  width: 100%;
  border: none;
  min-height: 200px;
}

/* === Pagination === */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.pagination a { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.pagination a:hover { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-light); }
.pagination .current { background: var(--green); color: var(--text-primary); }

/* === 404 === */
.not-found {
  text-align: center;
  padding: 6rem 1rem;
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 17, 23, 0.6), rgba(15, 17, 23, 0.8)),
    url('assets/images/hero-stadium.jpg') center/cover no-repeat;
}

.not-found-crest {
  margin-bottom: 1.5rem;
}

.not-found h1 {
  color: var(--green);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 60px rgba(26, 107, 54, 0.3);
}

.not-found p {
  color: var(--text-muted);
  margin: 0.5rem 0;
}

/* === Page Hero === */
.page-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 23, 0.8) 0%, rgba(15, 17, 23, 0.5) 50%, rgba(15, 17, 23, 0.3) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1rem;
}

.page-hero-content h1 {
  color: #FFFFFF;
  font-size: 2.5rem;
  font-weight: 700;
}

.page-heading {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.page-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 2px;
  margin-top: 0.75rem;
}

/* === Featured Products Scroll === */
.featured-products { padding: 1rem 0; }

.featured-products h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.product-scroll::-webkit-scrollbar { height: 4px; }
.product-scroll::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 2px; }
.product-scroll::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }

.product-card {
  min-width: 200px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .product-info { padding: 0.75rem; }
.product-card .product-title {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-card .product-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.875rem;
}

.product-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
}

.product-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(26, 107, 54, 0.03) 8px,
    rgba(26, 107, 54, 0.03) 10px
  );
}

/* === Team Page Tabs === */
.team-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.team-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-tab:hover { color: var(--text-secondary); background: var(--bg-hover); }

.team-tab.active {
  color: var(--text-primary);
  background: var(--green);
}

/* === Share Buttons === */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.share-btn:hover { border-color: var(--green); color: var(--green-light); }

/* === Related Posts === */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* === Category Filter === */
.category-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.category-filter a {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.category-filter a:hover,
.category-filter a.active {
  background: var(--green);
  color: var(--text-primary);
  border-color: var(--green);
}

/* === Search Form === */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color 0.15s;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 107, 54, 0.15);
}

.search-form input[type="search"]::placeholder { color: var(--text-muted); }

/* === Archive Header === */
.archive-header {
  margin-bottom: 1.5rem;
}

.archive-title {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.archive-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.5;
}

.archive-count {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.search-empty {
  text-align: center;
  padding: 3rem 0;
}

.search-empty h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.search-empty p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.search-categories {
  margin-top: 1.5rem;
}

.search-categories h3 {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
}

/* === Tickets Hub === */
.ticket-category {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.ticket-category:hover {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(26, 107, 54, 0.1);
}

.ticket-category h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ticket-category p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* === WP Core === */
.alignleft { float: left; margin-right: 1rem; margin-bottom: 0.5rem; }
.alignright { float: right; margin-left: 1rem; margin-bottom: 0.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* === Decorative Utilities === */
.green-glow {
  box-shadow: 0 0 30px rgba(26, 107, 54, 0.15), 0 0 60px rgba(26, 107, 54, 0.05);
}

.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  margin: 2rem 0;
}

/* === Sidebar === */
.sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.sidebar h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green);
}

/* === Tab Panels === */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel iframe {
  width: 100%;
  border: none;
  min-height: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}

.alert {
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
}

/* === Section Dividers === */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 3rem 0;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(26, 107, 54, 0.4);
}

/* === Decorative Badge === */
.srfc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: rgba(26, 107, 54, 0.12);
  border: 1px solid rgba(26, 107, 54, 0.25);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Glowing Separator === */
.glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  margin: 2rem 0;
  box-shadow: 0 0 10px rgba(26, 107, 54, 0.2);
}

/* === Academy Section === */
.academy-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.academy-panel { display: none; }
.academy-panel.active { display: block; }

.academy-hero {
  background:
    linear-gradient(135deg, rgba(26, 107, 54, 0.9), rgba(13, 76, 34, 0.95)),
    url('assets/images/hero-academy.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.academy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(26, 107, 54, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.academy-hero-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.academy-hero h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.academy-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.academy-teams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 500px;
}

@media (min-width: 768px) {
  .academy-teams-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: none;
  }
}

.academy-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  text-decoration: none;
}

.academy-team-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.team-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.team-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
}

.academy-team-card:hover .team-label {
  color: #FFFFFF;
}

/* === Match Highlights === */
.highlights-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .highlights-layout {
    grid-template-columns: 1fr 300px;
  }
}

.highlights-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.highlights-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.highlights-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlights-channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s;
}

.highlights-channel:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.highlights-channel div {
  flex: 1;
  min-width: 0;
}

.channel-name {
  display: block;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.channel-sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.channel-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.highlights-channel:hover .channel-arrow {
  transform: translateX(3px);
  color: var(--green);
}

.highlights-ig {
  color: #E1306C;
}

.highlights-ig:hover {
  border-color: rgba(225, 48, 108, 0.3);
}

.highlights-ig-feed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  flex: 1;
}

.highlights-ig-feed #sb_instagram {
  margin: 0 !important;
}
