/* ============================================
   CAGELOGS — Main Stylesheet
   Theme: Red / Black / White
   ============================================ */

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

:root {
  --red:        #E01212;
  --red-dark:   #8B0000;
  --red-dim:    rgba(224, 18, 18, 0.15);
  --red-glow:   rgba(224, 18, 18, 0.35);
  --black:      #080808;
  --dark:       #111111;
  --dark2:      #181818;
  --dark3:      #202020;
  --white:      #FFFFFF;
  --off-white:  #E8E8E8;
  --gray:       #3A3A3A;
  --muted:      #888888;
  --border:     rgba(255, 255, 255, 0.08);
  --border-red: rgba(224, 18, 18, 0.3);
}

html { scroll-behavior: smooth; }

/* Date / time inputs — make native picker icon visible on dark backgrounds */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.2);
  opacity: 0.85;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); }

/* ── TYPOGRAPHY UTILITIES ── */
.display {
  font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
}
.heading {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.96);
  border-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo-mark {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo-word {
  font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.65rem;
  letter-spacing: 5px;
  color: var(--white);
  white-space: nowrap;
  line-height: 1;
}
.nav-logo-word em {
  font-style: normal;
  color: var(--red);
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Nav right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User badge (shared across pages) */
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
}
.user-badge img {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-red, #4a1010);
}
.user-badge button {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  cursor: pointer;
  text-decoration: underline;
}
.user-badge button:hover { color: var(--white); }

/* Hamburger */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: #000000;
  border: 1px solid #ffffff;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  width: 38px; height: 38px;
  transition: opacity .2s, background .2s;
}
.nav-hamburger:hover { opacity: 0.85; }
.nav-hamburger-icon {
  display: block;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.nav-hamburger-icon line {
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}
.nav-hamburger.open .hb-top { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open .hb-mid { opacity: 0; }
.nav-hamburger.open .hb-bot { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile-menu {
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(20px);
  z-index: 998;
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.nav-mobile-menu.open { max-height: 400px; }
.nav-mobile-menu ul {
  list-style: none;
  padding: 16px 0 24px;
}
.nav-mobile-menu li a {
  display: block;
  padding: 14px 6%;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu li:last-child a { border-bottom: none; }
.nav-mobile-menu li a:hover { color: var(--white); padding-left: calc(6% + 8px); }

/* CTA Button */
.nav-cta {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: none;
  padding: 10px 24px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.nav-cta:hover {
  background: #ff2020;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 96px 6% 48px;
  overflow: hidden;
}
/* ════════════════════════════════════════════
   HERO  ·  SLEEK MARQUEE
════════════════════════════════════════════ */
.hero--marquee {
  text-align: left;
  padding: 92px 6% 44px;
  min-height: auto;
  display: block;
}
.hero--marquee .hero-eyebrow {
  justify-content: flex-start;
  margin: 0 0 26px;
  display: inline-flex;
}
.hero--marquee .hero-sub {
  margin: 30px 0 0;
  max-width: 620px;
  text-align: left;
}
.hero--marquee .hero-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

/* Titles (sleek, animated entrance) */
.marquee-title {
  font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  text-align: left;
  opacity: 0;
  animation: marqueeTitleIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.marquee-title .accent { color: var(--red); -webkit-text-stroke: 0; }
.marquee-title--top {
  animation-delay: 0.25s;
  margin-bottom: 24px;
}
.marquee-title--bottom { animation-delay: 0.6s; }
.marquee-title--stroke {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--white);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: 8px;
}
@keyframes marqueeTitleIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sleek marquee wrapper — compact, centered, mask-faded */
.marquee-wrap {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  height: clamp(220px, 32vh, 300px);
  overflow: hidden;
  /* Soft horizontal mask for invisible edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

/* Continuous running track */
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  height: 100%;
  animation: marqueeScroll 42s linear infinite;
  will-change: transform;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual tile */
.marquee-item {
  flex-shrink: 0;
  width: clamp(220px, 24vw, 300px);
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.marquee-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(35%) contrast(1.08) brightness(0.78) saturate(0.85);
  transition: filter 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.marquee-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,8,8,0.55) 100%);
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.marquee-item::before {
  content: '';
  position: absolute;
  left: 16px; bottom: 14px;
  width: 28px; height: 2px;
  background: var(--red);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s ease, transform 0.45s ease, width 0.45s ease;
  z-index: 2;
}
.marquee-item:hover {
  transform: translateY(-4px);
  z-index: 2;
}
.marquee-item:hover img {
  filter: grayscale(0%) contrast(1.12) brightness(0.95) saturate(1.05);
  transform: scale(1.05);
}
.marquee-item:hover::before {
  opacity: 1;
  transform: translateX(0);
  width: 56px;
}
.marquee-item:hover::after {
  opacity: 0.55;
}

/* Sleek center spotlight: subtle glow that highlights the middle */
.marquee-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 45%, rgba(8,8,8,0.35) 100%);
}

/* Decorative rule around the bottom title */
.marquee-rule {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  margin-top: 28px;
}
.marquee-rule > .marquee-rule-line:first-child { display: none; }
.marquee-rule-line {
  display: block;
  width: clamp(60px, 14vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

/* Cinematic background image panel */
.hero-bg-panel {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.28;
  animation: kenBurns 22s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes kenBurns {
  from { transform: scale(1)    translate(0,     0); }
  to   { transform: scale(1.08) translate(-1.5%, -1%); }
}
/* Dark gradient: heavy left, lighter right, dark bottom */
.hero-bg-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,  rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.45) 55%, rgba(8,8,8,0.75) 100%),
    linear-gradient(180deg, transparent 50%, rgba(8,8,8,0.9) 100%);
}

/* Thin horizontal scan lines */
.hero-scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.008) 3px,
    rgba(255,255,255,0.008) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Left: text content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s ease forwards;
}
.hero-title .accent {
  color: var(--red);
  display: block;
}
.hero-title .stroke {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}

.hero-rule {
  width: 80px;
  height: 3px;
  background: var(--red);
  margin: 28px 0;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s ease forwards;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 0.75s ease forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: none;
  padding: 13px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #b80e0e; transform: translateY(-1px); }

.btn-outline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gray);
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.7s 1.2s ease forwards;
}
.hero-scroll span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-bar {
  width: 40px;
  height: 1px;
  background: var(--gray);
  position: relative;
  overflow: hidden;
}
.scroll-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: var(--red);
  animation: scrollSlide 1.5s ease-in-out infinite;
}
@keyframes scrollSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ═══════════════════════════════════════════
   TICKER STRIP
═══════════════════════════════════════════ */
.ticker {
  background: var(--red);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.3);
}
.ticker-inner {
  display: inline-block;
  animation: ticker 28s linear infinite;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-sep {
  margin: 0 20px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 0 6%;
  display: flex;
  justify-content: center;
}
.stats-inner {
  display: flex;
  width: 100%;
  max-width: 1100px;
}
.stat-item {
  flex: 1;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.4s ease;
}
.stat-item:hover::before { width: 60%; }
.stat-num {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 1px;
  color: var(--white);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

/* ═══════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════ */
.section {
  padding: 96px 6%;
}
.section--dark { background: var(--dark); }
.section--darker { background: var(--dark2); }

.section-header {
  margin-bottom: 60px;
}
.section-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}
.section-title {
  font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}
.section-title .accent { color: var(--red); }
.section-rule {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-top: 20px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

/* ═══════════════════════════════════════════
   ENTRY CARDS
═══════════════════════════════════════════ */
.entries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: transparent;
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 1180px) {
  .entries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .entries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .entries-grid { grid-template-columns: 1fr; }
}

.entry-card {
  background: var(--dark);
  padding: 56px 40px 44px;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
  border-right: 1px solid var(--border);
}
.entry-card:last-child { border-right: none; }
@media (max-width: 1180px) {
  .entry-card:nth-child(3n) { border-right: none; }
  .entry-card:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .entry-card { border-right: 1px solid var(--border); border-top: none !important; }
  .entry-card:nth-child(2n) { border-right: none; }
  .entry-card:nth-child(n+3) { border-top: 1px solid var(--border) !important; }
}
@media (max-width: 520px) {
  .entry-card { border-right: none !important; border-top: none !important; }
  .entry-card:not(:first-child) { border-top: 1px solid var(--border) !important; }
}
.entry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--card-color, #E01212) 14%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.entry-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--card-color, var(--red));
  transition: width 0.4s ease;
}
.entry-card:hover { background: var(--dark2); transform: translateY(-2px); }
.entry-card:hover::before { opacity: 1; }
.entry-card:hover::after { width: 100%; }

/* Large ghost number behind each card */
.entry-card .card-num {
  position: absolute;
  bottom: -10px; right: -8px;
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  user-select: none;
  transition: color 0.25s;
}
.entry-card:hover .card-num {
  color: rgba(224,18,18,0.06);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
}
.card-icon svg { width: 100%; height: 100%; }

.card-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--card-color, var(--red));
  margin-bottom: 10px;
  display: block;
}
.card-title {
  font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1;
}
.card-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.75;
}
.card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--card-color, var(--red));
  transition: gap 0.2s;
}
.entry-card:hover .card-link { gap: 16px; }
.card-link svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

/* Individual card accent colors */
.card--fighters { --card-color: #FFFFFF; }
.card--events   { --card-color: #BBBBBB; }
.card--clubs    { --card-color: #888888; }
.card--coaches  { --card-color: #E01212; }
.card--officials{ --card-color: #CC0000; }

/* ═══════════════════════════════════════════
   FEATURED / SPOTLIGHT
═══════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: 5fr 3fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--gray);
  width: 100%;
  max-width: none;
  margin: 0;
}
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
}

.featured-item {
  background: var(--dark2);
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
  cursor: pointer;
}
.featured-item:hover { background: var(--dark3); }
.featured-item.span-col {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
}

/* BIG ghost octagon behind featured item */
.featured-item .feat-bg {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 320px; height: 320px;
  opacity: 0.03;
  pointer-events: none;
}

.feat-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--border-red);
  color: var(--red);
  padding: 5px 12px;
  margin-bottom: 18px;
}
.feat-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.feat-title {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.feat-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}
.feat-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, gap 0.2s;
}
.featured-item:hover .feat-arrow { color: var(--white); gap: 14px; }
.feat-arrow svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════
   DISCIPLINES
═══════════════════════════════════════════ */
.disc-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1000px;
}
.disc-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  text-decoration: none;
  display: inline-block;
  background: none;
  font-size: 0.78rem;
}
.disc-tag:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255,255,255,0.04);
}
.disc-tag.active {
  color: var(--white);
  border-color: var(--red);
  background: var(--red-dim);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 72px 6% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 60px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 20px;
}
.footer-logo-mark { height: 23px; width: auto; flex-shrink: 0; }
.footer-logo .nav-logo-word { font-size: 1.45rem; }
.footer-brand p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 300px;
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--muted);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--white); }

/* Slim footer variant: single horizontal row */
.footer--slim { padding: 36px 6% 22px; }
.footer-slim-row {
  max-width: 1280px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-slim-row .footer-logo { margin-bottom: 0; }
.footer-inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
}
.footer-inline a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-inline a:hover { color: var(--white); }
.footer--slim .footer-bottom { max-width: 1280px; }
@media (max-width: 600px) {
  .footer-slim-row { justify-content: center; text-align: center; }
  .footer-inline { justify-content: center; gap: 18px; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* ═══════════════════════════════════════════
   PAGE HERO (fighters.html, events.html, …)
═══════════════════════════════════════════ */
.page-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  padding: 120px 6% 60px;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}
.page-hero-left .eyebrow {
  font-family: 'Oswald', sans-serif; font-size: .75rem;
  letter-spacing: 3px; color: var(--red); text-transform: uppercase; margin-bottom: 8px;
}
.page-hero-left h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 4px; line-height: 1; color: var(--white);
}
.page-hero-left h1 em { font-style: normal; color: var(--red); }
.page-hero-left p { color: var(--muted); font-size: .9rem; margin-top: 10px; max-width: 440px; }

/* ── Add button (page hero) ── */
.btn-add {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: .9rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 13px 28px; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.btn-add:hover { background: #b80e0e; transform: translateY(-1px); }
.btn-add svg { width: 16px; height: 16px; }

/* ── Form action row (shared across add/edit modals) ── */
.form-actions {
  display: flex; gap: 12px; justify-content: flex-end;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.btn-submit {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); border: none; color: #fff;
  font-family: 'Oswald', sans-serif; font-size: .85rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 11px 28px; cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: #b80e0e; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }
.btn-cancel {
  background: none; border: 1px solid var(--border); color: var(--muted);
  font-family: 'Oswald', sans-serif; font-size: .85rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 11px 22px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-cancel:hover { border-color: var(--muted); color: var(--white); }

/* ── Detail modal edit button (shared) ── */
.detail-edit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: var(--red); color: var(--white); border: none;
  font-family: 'Oswald', sans-serif; font-size: .85rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 11px 22px; cursor: pointer; margin-top: 20px;
  transition: background .2s;
}
.detail-edit-btn:hover { background: #b80e0e; }

/* ═══════════════════════════════════════════
   PHOTO UPLOAD COMPONENT (photo-upload.js)
═══════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border);
  padding: 24px; text-align: center;
  cursor: pointer; transition: border-color .2s;
  position: relative;
}
.upload-zone:hover { border-color: var(--border-red); }
.upload-zone .pu-input {
  position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none;
}
.upload-zone p { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.upload-preview {
  object-fit: cover; border: 2px solid var(--border-red);
}
.pu-hint {
  font-size: .78rem; color: var(--muted); margin-bottom: 12px;
  font-family: 'Oswald', sans-serif; letter-spacing: 1.5px; text-transform: uppercase;
  text-align: center;
}
.pu-frame {
  overflow: hidden; position: relative;
  margin: 0 auto; cursor: grab;
  border: 2px solid var(--border-red);
  background: var(--dark3); user-select: none;
}
.pu-frame:active { cursor: grabbing; }
.pu-frame img {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  pointer-events: none; will-change: transform;
}
.pu-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
}
.pu-controls {
  display: flex; align-items: center; gap: 10px; margin: 14px auto 0;
}
.crop-zoom-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 2px; background: var(--border); outline: none; cursor: pointer;
}
.crop-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--red); cursor: pointer;
}
.pu-remove, .pu-change {
  background: none; border: none; color: var(--muted);
  font-family: 'Oswald', sans-serif; font-size: .72rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; text-decoration: underline; margin-top: 8px;
  display: inline-block;
}
.pu-remove:hover, .pu-change:hover { color: var(--white); }

/* ── Edit-mode toggle button (page hero) ── */
.btn-edit-mode {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; color: var(--muted);
  font-family: 'Oswald', sans-serif; font-size: .9rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 12px 24px; border: 1px solid var(--border); cursor: pointer;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
}
.btn-edit-mode:hover { color: var(--white); border-color: var(--white); }
.btn-edit-mode.active { color: var(--red); border-color: var(--border-red); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  /* Nav */
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-hamburger { display: inline-flex; }
  .nav { background: rgba(8,8,8,0.96); border-color: var(--border); }
  .user-badge span,
  .user-badge button { display: none; }

  /* Hero */
  .hero { padding: 92px 6% 44px; min-height: 64vh; }
  .hero-content { max-width: 100%; }
  .hero-bg-img { opacity: 0.2; }
  .hero--marquee { padding: 84px 5% 36px; }
  .marquee-wrap { max-width: 92vw; height: clamp(200px, 30vh, 260px); }
  .marquee-track { gap: 12px; }
  .marquee-item { width: clamp(180px, 32vw, 240px); }
  .marquee-title { font-size: clamp(2.2rem, 9vw, 3.6rem); letter-spacing: 2px; }
  .marquee-title--top { margin-bottom: 18px; }
  .marquee-title--stroke { font-size: clamp(1.3rem, 3.2vw, 1.8rem); letter-spacing: 6px; }
  .marquee-rule { gap: 14px; margin-top: 22px; }

  /* Sections */
  .section { padding: 64px 6%; }
  .section-tag { justify-content: center; }
  .section-header { text-align: center; }
  .section-rule { margin: 20px auto 0; }

  /* Stats */
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 40%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  /* Featured grid */
  .featured-grid { grid-template-columns: 1fr; }
  .featured-item.span-col { grid-row: auto; }
  .featured-item { padding: 32px; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  /* Nav */
  .nav { padding: 0 5%; }
  .nav-logo-word { font-size: 1.35rem; }

  /* Hero */
  .hero { padding: 86px 5% 32px; min-height: 60vh; }
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-sub { font-size: .9rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; text-align: center; }
  .hero-scroll { display: none; }
  .hero--marquee { padding: 76px 4% 28px; }
  .hero--marquee .hero-actions { flex-direction: row; align-items: center; }
  .hero--marquee .hero-actions .btn-primary { width: auto; }
  .marquee-wrap { max-width: 100%; height: clamp(170px, 28vh, 220px); }
  .marquee-track { gap: 10px; animation-duration: 32s; }
  .marquee-item { width: 160px; }
  .marquee-title { font-size: clamp(1.8rem, 11vw, 2.8rem); letter-spacing: 1.5px; }
  .marquee-title--top { margin-bottom: 14px; }
  .marquee-title--stroke { font-size: 1.05rem; letter-spacing: 5px; }
  .marquee-rule { gap: 10px; }
  .marquee-rule-line { width: clamp(28px, 12vw, 70px); }

  /* Entries grid */
  .entries-grid { grid-template-columns: 1fr; }
  .entry-card { padding: 32px 24px; }

  /* Stats — horizontal carousel on mobile */
  .stats { padding: 0; }
  .stats-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 6%;
    gap: 0;
  }
  .stats-inner::-webkit-scrollbar { display: none; }
  .stat-item {
    flex: 0 0 38%;
    min-width: 38%;
    padding: 22px 12px;
    border-right: 1px solid var(--border);
    border-bottom: none;
    scroll-snap-align: start;
  }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child { border-right: none; }
  .stat-num { font-size: 2.2rem; }
  .stat-label { font-size: 0.6rem; letter-spacing: 2px; }

  /* Footer */
  .footer { padding: 48px 5% 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Sections */
  .section { padding: 48px 5%; }
  .section-title { font-size: clamp(2rem, 9vw, 3rem); }
  .disc-wrap { gap: 8px; }
  .disc-tag { font-size: .7rem; padding: 7px 14px; }
  .featured-item { padding: 24px; min-height: auto; }
  .feat-title { font-size: 1.3rem; }
}

/* ════════════════════════════════════════════
   NOTIFICATIONS BELL
   ════════════════════════════════════════════ */
.notif-bell-wrap { position: relative; display: inline-flex; }

.notif-bell {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text, #fff);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.notif-bell:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

.notif-badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red, #e53935);
  color: #fff;
  font-size: .65rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0;
  border: 2px solid #0a0a0a;
  box-sizing: content-box;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 360px; max-width: 90vw;
  max-height: 70vh;
  background: #111;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  overflow: hidden;
  display: none;
  z-index: 1500;
}
.notif-panel.open { display: flex; flex-direction: column; }

.notif-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 700; font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text, #fff);
}

.notif-panel-body {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}

.notif-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted, #999);
  font-size: .85rem;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: flex-start;
}
.notif-item.unread { background: rgba(229,57,53,0.06); }

.notif-pic {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.notif-pic-ph {
  background: rgba(255,255,255,0.08);
  color: var(--muted, #999);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  text-transform: uppercase;
}

.notif-text { flex: 1; min-width: 0; }
.notif-line {
  color: var(--text, #fff);
  font-size: .82rem;
  line-height: 1.4;
}
.notif-line strong { font-weight: 600; }
.notif-meta {
  color: var(--muted, #999);
  font-size: .7rem;
  margin-top: 3px;
}

.notif-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.notif-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  border: none;
  transition: filter .15s ease;
}
.notif-btn:disabled { opacity: .5; cursor: default; }
.notif-btn.approve { background: var(--red, #e53935); color: #fff; }
.notif-btn.reject  { background: rgba(255,255,255,0.08); color: var(--text, #fff); }
.notif-btn.msg     { background: rgba(255,255,255,0.08); color: var(--text, #fff); }
.notif-btn.send    { background: var(--red, #e53935); color: #fff; }
.notif-btn:hover:not(:disabled) { filter: brightness(1.1); }

.notif-thread {
  margin-top: 10px;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.notif-msg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.notif-msg {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  max-width: 85%;
  align-self: flex-start;
}
.notif-msg.mine {
  align-self: flex-end;
  background: rgba(229,57,53,0.18);
}
.notif-msg-body { font-size: .8rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.notif-msg-meta { font-size: .65rem; color: var(--muted); margin-top: 2px; }
.notif-msg-compose { display: flex; flex-direction: column; gap: 6px; }
.notif-msg-input {
  width: 100%; resize: vertical;
  background: var(--dark2); border: 1px solid var(--border); color: var(--white);
  padding: 8px; font-size: .82rem; font-family: 'Inter', sans-serif;
}
.notif-msg-input:focus { outline: none; border-color: var(--border-red); }

.notif-status-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  vertical-align: middle;
}
.notif-status-pill.ok { background: rgba(76,175,80,0.18); color: #81c784; }
.notif-status-pill.no { background: rgba(229,57,53,0.18); color: #ef9a9a; }

@media (max-width: 500px) {
  .notif-panel { width: 320px; right: -10px; }
}

/* Cross-entity hyperlinks (detail panels + notifications) */
.cd-nf-link, .cd-coach-link, .cd-cc-link, .cd-fc-link, .cd-cl-link, .notif-coach-link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s ease;
}
.cd-nf-link:visited, .cd-coach-link:visited,
.cd-cc-link:visited, .cd-fc-link:visited, .cd-cl-link:visited, .notif-coach-link:visited { color: var(--red); }
.cd-nf-link:hover, .cd-coach-link:hover,
.cd-cc-link:hover, .cd-fc-link:hover, .cd-cl-link:hover, .notif-coach-link:hover { color: #ff6b6b; }
.notif-coach-link { font-weight: 700; }
