/* ===== NKUMBA SPORTS HEADER — Full with Mega Menus ===== */

/* --- Reset --- */
.cfc-site-header *, .cfc-site-header *::before, .cfc-site-header *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

/* Kill all browser default focus outlines inside the header — we handle our own */
.cfc-site-header button:focus,
.cfc-site-header a:focus { outline: none; }
.cfc-site-header button:focus-visible,
.cfc-site-header a:focus-visible { outline: 2px solid #FFD700; outline-offset: 2px; }

.cfc-site-header {
  width: 100%;
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, Helvetica, sans-serif;
  background: #fff;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  overflow: visible;
}

/* ── WordPress admin bar offset (logged-in users) ──────────────
   The admin bar pushes in-flow content down via html{margin-top},
   but the fixed header stays at top:0 — leaving a gap. Offset the
   fixed header (and its fixed children) by the admin bar height. */
.admin-bar .cfc-site-header { top: 32px; }
.admin-bar .cfc-flyout,
.admin-bar .nks-search-bar { top: 142px; }              /* 110 header + 32 bar */
.admin-bar .cfc-site-header.nks-scrolled .cfc-flyout { top: 112px; } /* 80 + 32 */

@media screen and (max-width: 782px) {
  .admin-bar .cfc-site-header { top: 46px; }            /* taller bar on small screens */
  .admin-bar .cfc-flyout,
  .admin-bar .nks-search-bar { top: 156px; }            /* 110 + 46 */
  .admin-bar .cfc-site-header.nks-scrolled .cfc-flyout { top: 126px; } /* 80 + 46 */
}

/* On very small screens the admin bar becomes non-fixed and scrolls
   away, so don't hold the header down once the user scrolls. */
@media screen and (max-width: 600px) {
  .admin-bar .cfc-site-header.nks-scrolled { top: 0; }
}

/* ── Header cart icon + live count ─────────────────────────────── */
.cfc-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 80px;
  color: #001489;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.cfc-cart:hover { color: #C9A84C; transform: translateY(-1px); }
.cfc-cart svg { display: block; }

.cfc-cart .nks-cart-count {
  position: absolute;
  top: 22px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2001a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff;
  transition: transform 0.2s ease;
}
/* Hide the badge when the cart is empty */
.cfc-cart .nks-cart-count[data-count="0"] { display: none; }

/* Little pop when the count changes */
.cfc-cart .nks-cart-count.nks-bump { animation: nks-cart-bump 0.4s ease; }
@keyframes nks-cart-bump {
  30% { transform: scale(1.35); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* ── Boxed container — constrains header content to max-width ── */
.nks-box {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nks-box--nav {
  flex: 1;
  height: 100%;
  align-items: stretch;
  padding: 0;
}

/* ---- TOP BAR ---- */
.cfc-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0;
  background: rgba(0, 20, 137, 0.05);
  border-bottom: 1px solid rgba(0, 20, 137, 0.1);
  transition: max-height 0.25s ease, opacity 0.25s ease, border 0.25s ease;
  max-height: 30px;
  overflow: hidden;
}

.cfc-site-header.nks-scrolled .cfc-top-bar {
  max-height: 0;
  opacity: 0;
  border-bottom: none;
}

.cfc-top-bar__left, .cfc-top-bar__right {
  display: flex; align-items: center; gap: 20px;
}

.cfc-top-bar__links, .cfc-top-bar__auth {
  list-style: none; display: flex; align-items: center; gap: 20px;
}

.cfc-top-bar__links a {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  color: #555e6d; text-decoration: none; letter-spacing: 0.06em; white-space: nowrap;
}

.cfc-top-bar__auth a {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  color: #333c4d; text-decoration: none; letter-spacing: 0.06em; white-space: nowrap;
}

.cfc-top-bar__links a:hover, .cfc-top-bar__auth a:hover { color: #001489; text-decoration: none; }

.cfc-top-bar__auth { border-right: 1px solid #c8cdd6; padding-right: 20px; }

.cfc-top-bar__sponsors {
  display: flex; align-items: center; gap: 16px;
}

.cfc-top-bar__sponsors a {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #001489; text-decoration: none;
}
.cfc-top-bar__sponsors a:hover { color: #FFD700; }
.cfc-top-bar__sponsors img { height: 18px; width: auto; object-fit: contain; }

/* ---- MAIN NAV BAR ---- */
.cfc-main-nav {
  display: flex;
  align-items: center;
  height: 80px;
  background: #fff;
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Logo — height controlled via --nks-logo-height (set in Customizer) */
:root { --nks-logo-height: 65px; }

.cfc-main-nav__logo {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: calc(var(--nks-logo-height) + 40px);
  height: 80px;
  padding: 10px 10px 10px 0;
}
.cfc-main-nav__logo a { display: flex; align-items: center; justify-content: center; }
.cfc-main-nav__logo img {
  width: auto;
  height: var(--nks-logo-height);
  object-fit: contain;
}
.cfc-main-nav__logo svg {
  display: block;
  height: var(--nks-logo-height);
  width: auto;
}

/* Nav links list */
.cfc-main-nav__links {
  list-style: none; display: flex; align-items: center; justify-content: center; height: 100%; flex: 1; margin: 0; padding: 0;
}

/* Each nav item */
.cfc-nav-item {
  position: static; height: 100%; display: flex; align-items: center;
}

/* Nav link */
/* Primary nav — extrabold so it reads instantly at full height */
.cfc-nav-link {
  display: flex; align-items: center; height: 100%; padding: 0 18px;
  font-family: 'Elms Sans', 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 15px; font-weight: 800; text-transform: uppercase;
  color: #001489; text-decoration: none; white-space: nowrap;
  letter-spacing: 0.03em; position: relative;
  transition: background 0.15s ease;
}

/* Bottom underline bar on hover */
.cfc-nav-item::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 5px;
  background: #001489;
  transition: width 0.2s ease;
}
.cfc-nav-item:hover::after { width: 100%; }
.cfc-nav-link:hover { background: rgba(0, 20, 137, 0.05); }

/* Play icon */
.cfc-play-icon { font-size: 13px; margin-right: 5px; }

/* --- MEGA MENU FLYOUT --- */
.cfc-flyout {
  display: none;
  position: fixed;
  top: 110px;  /* 30px topbar + 80px navbar */
  left: 0;
  width: 100vw;
  min-height: 300px;
  background: #001489;
  z-index: 8990;
  flex-direction: row;
}

/* When topbar is hidden on scroll, flyout moves up */
.cfc-site-header.nks-scrolled .cfc-flyout { top: 80px; }

/* Show flyout on nav item hover */
.cfc-nav-item:hover .cfc-flyout { display: flex; }

/* --- FLYOUT COLUMNS --- */
.cfc-flyout__col {
  flex: 1; padding: 60px 0 64px 60px;
  display: flex; flex-direction: row; align-items: flex-start;
}

/* Blue column */
.cfc-flyout__col--blue { background: #001489; }

/* White column (split layout) */
.cfc-flyout__col--white {
  background: #ffffff;
  flex: 1;
  padding: 60px 0 64px 40px;
}

/* Match card column (darker navy) */
.cfc-flyout__col--match {
  background: #000a69;
  flex: 1;
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}

/* Promo image column */
.cfc-flyout__col--promo {
  background: #001489;
  flex: 1;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.cfc-promo-ad { position: relative; width: 100%; height: 100%; min-height: 300px; }
.cfc-promo-ad img {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.cfc-promo-ad__placeholder {
  width: 100%; height: 100%; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #001489 0%, #0025cc 100%);
  font-family: 'Bebas Neue', 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 4rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.1em;
}

.cfc-promo-ad__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #001489; color: #fff;
  padding: 14px 20px;
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  text-decoration: none; display: block; letter-spacing: 0.04em;
  transition: background 0.15s ease;
}
.cfc-promo-ad__caption:hover { background: #000a69; }

/* --- FLYOUT NAV LINKS (staggered animation) --- */
.cfc-flyout__nav {
  list-style: none; display: flex; flex-direction: column; gap: 0;
}

.cfc-flyout__item {
  margin-bottom: 18px;
  opacity: 0;
  animation: cfc-fadeInUp 0.6s both;
}

.cfc-flyout__item:nth-child(1) { animation-delay: 0.00s; }
.cfc-flyout__item:nth-child(2) { animation-delay: 0.07s; }
.cfc-flyout__item:nth-child(3) { animation-delay: 0.14s; }
.cfc-flyout__item:nth-child(4) { animation-delay: 0.21s; }
.cfc-flyout__item:nth-child(5) { animation-delay: 0.28s; }
.cfc-flyout__item:nth-child(6) { animation-delay: 0.35s; }
.cfc-flyout__item:nth-child(7) { animation-delay: 0.42s; }
.cfc-flyout__item:nth-child(8) { animation-delay: 0.49s; }

/* Reset when flyout closes — animation:none lets JS re-trigger it cleanly */
.cfc-nav-item:not(:hover) .cfc-flyout__item { animation: none; opacity: 0; }

/* Flyout links — sentence case, large, bold */
.cfc-flyout__item a {
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 28px; font-weight: 800; line-height: 1.15;
  color: #ffffff; text-decoration: none; display: inline-block;
  text-transform: none; letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.cfc-flyout__item a:hover { color: #FFD700; }

/* Right-column dark links — sentence case, slightly smaller */
.cfc-flyout__nav--dark .cfc-flyout__item a {
  font-size: 20px; font-weight: 700;
  color: #001489; letter-spacing: 0; text-transform: none;
}
.cfc-flyout__nav--dark .cfc-flyout__item a:hover { color: #FFD700; }

/* Decorative vertical label — light weight, purely atmospheric */
.cfc-club-chelsea-label {
  writing-mode: vertical-lr;
  text-transform: uppercase;
  font-family: 'Bebas Neue', 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 52px;
  font-weight: 300;
  color: #001489;
  letter-spacing: 6px;
  margin-right: 36px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  opacity: 0.12;
  transform: rotate(180deg);
}

/* --- MATCH CARD --- */
.cfc-match-card { color: #fff; }

/* "NEXT MATCH" — small label, medium weight so it reads as a label not content */
.cfc-match-card__label {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 3px; color: rgba(255,255,255,0.55); margin-bottom: 20px;
}

.cfc-match-card__body { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.cfc-match-card__badge { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; }
.cfc-match-card__badge-placeholder { width: 56px; height: 56px; flex-shrink: 0; }

/* Team name — biggest, boldest thing on the card */
.cfc-match-card__team {
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 22px; font-weight: 800; line-height: 1.2;
  color: #fff; margin-bottom: 6px;
}

/* Venue and date — light, secondary info */
.cfc-match-card__venue { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.65); margin-bottom: 3px; }
.cfc-match-card__date  { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.65); margin-bottom: 5px; }

/* Competition badge — small but strong, uses gold for emphasis */
.cfc-match-card__comp  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #FFD700; }

/* "Match Centre" CTA — medium weight, it's a supporting link */
.cfc-match-card__link {
  display: inline-block; color: rgba(255,255,255,0.85);
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 13px; font-weight: 600; text-decoration: none;
  text-transform: uppercase; letter-spacing: 1.5px; margin-top: 14px;
  transition: color 0.15s ease;
}
.cfc-match-card__link:hover { color: #FFD700; }

/* Tickets CTA button — bold call to action */
.cfc-match-card__tickets-btn {
  display: block;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff; text-align: center; padding: 14px 20px;
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  text-decoration: none; letter-spacing: 2px; margin-top: 24px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cfc-match-card__tickets-btn:hover {
  background: #FFD700; border-color: #FFD700; color: #001489;
}

/* --- RIGHT SIDE (search + more) --- */
.cfc-main-nav__right {
  display: flex; align-items: center; height: 100%;
  flex-shrink: 0; margin-left: auto;
}

.cfc-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 80px; background: transparent; color: #001489;
  border: none; border-radius: 0; outline: none; cursor: pointer;
  transition: background 0.15s ease;
}
.cfc-search-btn svg { stroke: #001489; }
.cfc-search-btn:hover { background: rgba(0, 20, 137, 0.06); }
.cfc-search-btn:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: -4px;
}

.cfc-more-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 110px; height: 80px;
  background: #001489; border: none; border-radius: 0; cursor: pointer;
  transition: background 0.15s ease;
}
.cfc-more-btn:hover, .cfc-more-btn.nks-menu-open { background: #001070; }

.cfc-more-btn__icon { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.cfc-more-btn__icon span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 1px; }
/* MORE label — small, tight tracking, medium so it doesn't compete with hamburger icon */
.cfc-more-btn__label {
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  color: rgba(255,255,255,0.9); letter-spacing: 0.18em;
}

/* --- KEYFRAME ANIMATION --- */
@keyframes cfc-fadeInUp {
  0%   { opacity: 0; transform: translate3d(0, 20%, 0); }
  100% { opacity: 1; transform: translateZ(0); }
}

/* ---- SEARCH BAR ---- */
.nks-search-bar {
  position: fixed;
  top: 110px; /* below header */
  left: 0; right: 0;
  z-index: 8995;
  background: #001489;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.cfc-site-header.nks-scrolled ~ .nks-search-bar,
.nks-search-bar.nks-scrolled-pos { top: 80px; }

.nks-search-bar.nks-open { max-height: 72px; }

.nks-search-bar form {
  max-width: 1380px; margin: 0 auto;
  padding: 14px 28px; display: flex; align-items: center;
}

.nks-search-bar__input {
  flex: 1; background: transparent; border: none;
  border-bottom: 2px solid rgba(255,255,255,0.35); outline: none;
  color: #fff; font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 1rem; padding: 5px 10px 5px 0;
  transition: border-color 0.2s ease;
}
.nks-search-bar__input:focus { border-bottom-color: #FFD700; }
.nks-search-bar__input::placeholder { color: rgba(255,255,255,0.4); }

.nks-search-bar__submit,
.nks-search-bar__close {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease, background 0.15s ease;
  border-radius: 2px;
}

.nks-search-bar__submit:hover { color: #FFD700; }
.nks-search-bar__submit:focus-visible { outline: 2px solid #FFD700; }

/* Close button — gold background, white icon */
.nks-search-bar__close {
  background: #FFD700;
  color: #fff;
  margin-left: 10px;
  border-radius: 2px;
  padding: 6px 10px;
}
.nks-search-bar__close svg { stroke: #fff; }
.nks-search-bar__close:hover { background: #FFE566; color: #fff; }
.nks-search-bar__close:focus-visible { outline: 2px solid #ffffff; }

/* ---- HEADER SPACER ---- */
.nks-header-spacer { height: 110px; }
#nks-header-spacer.nks-scrolled { height: 80px; }


/* ===== MORE OVERLAY — FULL SCREEN ===== */

.cfc-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: #001489;
  /* background-image set via inline style in header.php using home_url() — environment-safe */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 99990;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.cfc-overlay.is-open {
  display: block;
  opacity: 1;
}

/* Lock body scroll when overlay open */
body.cfc-overlay-open { overflow: hidden; }

/* Content container */
.cfc-overlay__content {
  max-width: 1280px;
  margin: 0 82px;
  padding-top: 30px;
  position: relative;
  min-height: 100%;
}

/* Close button — top-right, bright blue square */
.cfc-overlay__close {
  position: absolute;
  top: 0; right: 0;
  width: 72px; height: 72px;
  background: #FFD700;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.cfc-overlay__close:hover { background: #FFE566; }
.cfc-overlay__close:focus-visible { outline: 2px solid #ffffff; outline-offset: -4px; }

/* Make the X icon navy so it reads on the gold background */
.cfc-overlay__close svg { stroke: #001489 !important; }

/* Main nav list */
.cfc-overlay__nav { display: block; }

.cfc-overlay__main-ul {
  list-style: none;
  display: block;
  padding: 40px 40px 40px 0;
  margin: 0;
}

/* Each main link — staggered fadeInUp */
.cfc-overlay__item {
  margin-bottom: 8px;
  opacity: 0;
  animation: cfc-fadeInUp 0.4s both;
}

.cfc-overlay__item:nth-child(1) { animation-delay: 0.00s; }
.cfc-overlay__item:nth-child(2) { animation-delay: 0.10s; }
.cfc-overlay__item:nth-child(3) { animation-delay: 0.20s; }
.cfc-overlay__item:nth-child(4) { animation-delay: 0.30s; }
.cfc-overlay__item:nth-child(5) { animation-delay: 0.40s; }
.cfc-overlay__item:nth-child(6) { animation-delay: 0.50s; }
.cfc-overlay__item:nth-child(7) { animation-delay: 0.60s; }

.cfc-overlay__item a {
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.cfc-overlay__item a:hover { color: #FFD700; }

/* Useful links section */
.cfc-overlay__useful {
  margin-top: 10px;
  padding-bottom: 96px;
}

.cfc-overlay__useful-label {
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFD700;
  margin-bottom: 16px;
}

.cfc-overlay__useful-ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cfc-overlay__useful-ul li { margin-bottom: 6px; }

.cfc-overlay__useful-ul a {
  font-family: 'Plus Jakarta Sans', 'Google Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.cfc-overlay__useful-ul a:hover { color: #ffffff; }
.cfc-overlay__useful-ul a::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #FFD700;
  flex-shrink: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .cfc-nav-link { padding: 0 12px; font-size: 14px; }
}

@media (max-width: 960px) {
  .cfc-top-bar__sponsors { display: none; }
  .cfc-main-nav__links { display: none; }
  .cfc-main-nav { height: 64px; }
  .cfc-main-nav__logo { width: auto; height: 64px; padding: 8px 8px 8px 0; }
  .cfc-main-nav__logo img, .cfc-main-nav__logo svg { width: auto; height: 46px; max-height: 46px; max-width: 160px; }
  .cfc-more-btn, .cfc-search-btn { height: 64px; }
  .cfc-more-btn { width: 70px; }
  .nks-header-spacer { height: 94px; }
  .nks-search-bar { top: 94px; }
}

@media (max-width: 768px) {
  .cfc-overlay__content { margin: 0 24px; }
  .cfc-overlay__item a { font-size: 26px; }
  .cfc-overlay__item a { font-size: 26px; }
}

@media (max-width: 600px) {
  .cfc-top-bar { display: none; }
  .nks-header-spacer { height: 64px; }
  .nks-search-bar { top: 64px; }
}
