/*
Theme Name: GKN Sports Broadcast
Theme URI: https://goodkindnetwork.local/
Author: Codex
Description: Custom WordPress theme for a high school sports broadcasting network.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: gkn-sports
*/

:root {
  --gkn-bg: #060606;
  --gkn-panel: #0f0f12;
  --gkn-panel-soft: #1a1a1f;
  --gkn-surface: #212126;
  --gkn-text: #f4f1ed;
  --gkn-text-dim: #cbc0bf;
  --gkn-muted: #9d9497;
  --gkn-accent: #f01288;
  --gkn-accent-dark: #7a0048;
  --gkn-border: rgba(255, 255, 255, 0.12);
  --gkn-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --gkn-max: 1320px;
  --gkn-serif: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --gkn-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gkn-text);
  background:
    radial-gradient(circle at top left, rgba(240, 18, 136, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #050505 0%, #0d0d10 30%, #1c1d21 67%, #111216 100%);
  font-family: var(--gkn-sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gkn-site {
  min-height: 100vh;
  overflow: clip;
}

.gkn-wrap {
  width: min(calc(100% - 2rem), var(--gkn-max));
  margin: 0 auto;
}

.gkn-section-title,
.entry-title,
.wp-block-heading {
  margin: 0 0 1rem;
  font-family: var(--gkn-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.gkn-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 7, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gkn-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.gkn-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 0 1 auto;
}

.gkn-brand img {
  width: 72px;
}

.gkn-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gkn-brand-name {
  font-family: var(--gkn-serif);
  font-size: 1.55rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
}

.gkn-brand-tagline {
  color: var(--gkn-text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gkn-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gkn-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gkn-primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.gkn-primary-nav .menu,
.gkn-primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.gkn-primary-nav li {
  flex: 0 0 auto;
}

.gkn-primary-nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 2.8rem;
  padding: 0.7rem 0 0.85rem;
  color: var(--gkn-text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 180ms ease;
  white-space: nowrap;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.gkn-primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--gkn-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.gkn-primary-nav a:hover,
.gkn-primary-nav a:focus-visible,
.gkn-primary-nav .current-menu-item > a,
.gkn-primary-nav .current_page_item > a {
  color: #fff;
}

.gkn-primary-nav a:hover::after,
.gkn-primary-nav a:focus-visible::after,
.gkn-primary-nav .current-menu-item > a::after,
.gkn-primary-nav .current_page_item > a::after {
  transform: scaleX(1);
}

.gkn-main {
  padding-bottom: 4rem;
}

.gkn-hero {
  position: relative;
  padding: 3rem 0 2rem;
}

.gkn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 9, 0.08), rgba(6, 6, 9, 0.58) 52%, rgba(6, 6, 9, 0.85)),
    radial-gradient(circle at 50% 0, rgba(240, 18, 136, 0.12), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.04), transparent 24%);
  pointer-events: none;
}

.gkn-hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  gap: 1rem;
}

.gkn-hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 3.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.gkn-hero-arrow:hover,
.gkn-hero-arrow:focus-visible {
  color: var(--gkn-accent);
  transform: scale(1.04);
}

.gkn-hero-stage {
  position: relative;
  min-height: 620px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(135deg, rgba(31, 31, 36, 0.96), rgba(5, 5, 7, 0.94));
  box-shadow: var(--gkn-shadow);
}

.gkn-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(240, 18, 136, 0.16), transparent 35%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 15%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.gkn-hero-track {
  position: relative;
  min-height: 100%;
}

.gkn-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
  opacity: 0;
  transform: translateX(4%);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}

.gkn-hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.gkn-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.gkn-kicker {
  color: #ffd0e7;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.gkn-hero-title {
  margin: 0.8rem 0 1rem;
  font-family: var(--gkn-serif);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gkn-hero-copy {
  max-width: 38rem;
  margin: 0 0 1.4rem;
  color: var(--gkn-text-dim);
  font-size: 1rem;
}

.gkn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gkn-accent), #ff5bb1);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(240, 18, 136, 0.28);
}

.gkn-button.is-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.gkn-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.gkn-hero-poster {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 100%;
  height: 100%;
}

.gkn-hero-card {
  width: min(100%, 400px);
  height: 500px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(145deg, rgba(36, 22, 26, 0.88), rgba(8, 8, 10, 0.88));
  box-shadow: var(--gkn-shadow);
}

.gkn-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gkn-grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

.gkn-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gkn-feature-panel,
.gkn-sidebar-panel,
.gkn-media-card,
.gkn-articles-panel,
.gkn-game-week {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gkn-border);
  background: rgba(14, 14, 18, 0.78);
  box-shadow: var(--gkn-shadow);
}

.gkn-feature-panel {
  padding: 1.8rem;
}

.gkn-feature-panel::before,
.gkn-sidebar-panel::before,
.gkn-articles-panel::before,
.gkn-game-week::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(240, 18, 136, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.gkn-feature-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem;
  align-items: center;
}

.gkn-feature-poster {
  border: 6px solid rgba(240, 18, 136, 0.15);
  background: #08080a;
}

.gkn-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gkn-feature-meta {
  color: var(--gkn-muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gkn-feature-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.gkn-sidebar-panel {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  max-height: 420px;
}

.gkn-event-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  max-height: 300px;
  margin-top: 0.2rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 18, 136, 0.75) rgba(255, 255, 255, 0.06);
}

.gkn-event-list::-webkit-scrollbar {
  width: 8px;
}

.gkn-event-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.gkn-event-list::-webkit-scrollbar-thumb {
  background: rgba(240, 18, 136, 0.75);
}

.gkn-event-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.gkn-event-thumb {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(180deg, rgba(240, 18, 136, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(145deg, #1b1c21, #09090b);
}

.gkn-event-item h3,
.gkn-article-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.gkn-event-item p,
.gkn-article-card p,
.gkn-game-week p,
.entry-content,
.entry-summary {
  color: var(--gkn-text-dim);
}

.gkn-event-item p {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.gkn-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--gkn-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.gkn-linkline {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gkn-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gkn-media-card {
  min-height: 260px;
  padding: 1.5rem;
}

.gkn-media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    linear-gradient(135deg, rgba(240, 18, 136, 0.2), transparent 45%);
}

.gkn-media-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 100%;
}

.gkn-media-card strong {
  display: block;
  margin-top: auto;
  font-family: var(--gkn-serif);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gkn-media-card span {
  color: var(--gkn-text-dim);
  font-size: 0.92rem;
}

.gkn-articles-panel,
.gkn-game-week {
  margin-top: 1.5rem;
  padding: 1.8rem;
}

.gkn-articles-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gkn-article-card {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.gkn-game-week {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 2.2rem 1.8rem;
  background:
    radial-gradient(circle at 32% 72%, rgba(0, 0, 0, 0.42) 0, rgba(0, 0, 0, 0.42) 2px, transparent 2px),
    radial-gradient(circle at 68% 28%, rgba(0, 0, 0, 0.42) 0, rgba(0, 0, 0, 0.42) 2px, transparent 2px),
    linear-gradient(135deg, #ff4ba6 0%, #db2d8d 48%, #f65aa8 100%);
  background-size: 12px 12px, 12px 12px, auto;
}

.gkn-game-week::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
}

.gkn-game-week-heading,
.gkn-game-week-layout {
  position: relative;
  z-index: 1;
}

.gkn-game-week-heading {
  text-align: center;
}

.gkn-game-week-heading .gkn-section-title {
  margin-bottom: 0.7rem;
  color: #fff6fb;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.gkn-game-week-heading p {
  max-width: 42rem;
  margin: 0 auto;
  color: rgba(255, 244, 249, 0.92);
}

.gkn-game-week-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.7fr) minmax(160px, 0.7fr);
  gap: 1.5rem;
  align-items: center;
}

.gkn-team-panel {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  text-align: center;
}

.gkn-team-logo-shell {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gkn-team-logo-shell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.gkn-team-panel h3 {
  margin: 0;
  color: #fff9fc;
  font-family: var(--gkn-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gkn-game-video-panel {
  display: grid;
  gap: 1rem;
}

.gkn-game-video-panel .gkn-stream-frame {
  border: 0;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.gkn-game-video-panel .gkn-linkline {
  justify-self: center;
  color: #fff;
}

.gkn-page-hero,
.gkn-entry-shell,
.gkn-streaming-shell {
  padding: 3rem 0 0;
}

.gkn-home-body {
  margin-bottom: 1.5rem;
}

.gkn-page-hero-card,
.gkn-entry-card,
.gkn-streaming-card {
  padding: 2rem;
  border: 1px solid var(--gkn-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(12, 12, 16, 0.84);
  box-shadow: var(--gkn-shadow);
}

.gkn-page-intro {
  max-width: 48rem;
  color: var(--gkn-text-dim);
}

.gkn-entry-card .entry-content > *:first-child {
  margin-top: 0;
}

.gkn-entry-card .entry-content > *:last-child {
  margin-bottom: 0;
}

.gkn-streaming-card {
  display: grid;
  gap: 1.5rem;
}

.gkn-stream-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.gkn-stream-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gkn-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
}

.gkn-side-panel {
  padding: 1.5rem;
  border: 1px solid var(--gkn-border);
  background: rgba(15, 15, 19, 0.78);
  box-shadow: var(--gkn-shadow);
}

.gkn-side-panel ul {
  padding-left: 1.1rem;
  color: var(--gkn-text-dim);
}

.gkn-site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 6, 8, 0.94);
}

.gkn-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.7fr));
  gap: 2rem;
  padding: 2rem 0;
}

.gkn-footer-brand img {
  width: 86px;
  margin-bottom: 0.8rem;
}

.gkn-footer-title {
  margin: 0 0 0.75rem;
  font-family: var(--gkn-serif);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gkn-footer-list,
.gkn-footer-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gkn-footer-list li + li {
  margin-top: 0.6rem;
}

.gkn-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gkn-muted);
  font-size: 0.82rem;
}

.gkn-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gkn-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gkn-text-dim);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gkn-social-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.gkn-social-link:hover,
.gkn-social-link:focus-visible {
  color: #fff;
  border-color: rgba(240, 18, 136, 0.8);
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .gkn-hero-shell {
    grid-template-columns: 1fr;
  }

  .gkn-hero-arrow {
    display: none;
  }

  .gkn-hero-slide,
  .gkn-home-grid,
  .gkn-feature-layout,
  .gkn-page-grid,
  .gkn-footer-grid {
    grid-template-columns: 1fr;
  }

  .gkn-game-week-layout {
    grid-template-columns: 1fr;
  }

  .gkn-articles-grid,
  .gkn-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gkn-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .gkn-header-bar {
    flex-wrap: wrap;
  }

  .gkn-menu-toggle {
    display: inline-flex;
  }

  .gkn-primary-nav {
    display: none;
    width: 100%;
  }

  .gkn-primary-nav.is-open {
    display: block;
  }

  .gkn-primary-nav .menu,
  .gkn-primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 0.5rem;
  }

  .gkn-primary-nav a {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 0;
    font-size: 0.82rem;
    white-space: normal;
  }

  .gkn-hero-stage {
    min-height: 680px;
  }

  .gkn-hero-slide {
    grid-template-columns: 1fr;
  }

  .gkn-hero-card {
    width: min(100%, 360px);
    height: 440px;
  }

  .gkn-articles-grid,
  .gkn-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gkn-wrap {
    width: min(calc(100% - 1rem), var(--gkn-max));
  }

  .gkn-header-bar {
    justify-content: center;
  }

  .gkn-brand {
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .gkn-brand img {
    width: 48px;
  }

  .gkn-brand-text {
    text-align: center;
  }

  .gkn-brand-name {
    font-size: 1.15rem;
  }

  .gkn-hero {
    padding-top: 1.5rem;
  }

  .gkn-hero-stage,
  .gkn-feature-panel,
  .gkn-sidebar-panel,
  .gkn-articles-panel,
  .gkn-game-week,
  .gkn-page-hero-card,
  .gkn-entry-card,
  .gkn-streaming-card {
    padding: 1.2rem;
  }

  .gkn-hero-title,
  .gkn-feature-panel h2,
  .gkn-game-card h2 {
    letter-spacing: 0.02em;
  }
}
