/* ================================================
   BAKER BOXING — STYLESHEET
   Brand: Red #CC0000 · Charcoal #2D2D2D · Light #EEEEEE
   Fonts: Bebas Neue (display) · Barlow Condensed (ui) · Barlow (body)
   ================================================ */

:root {
  --red:       #CC0000;
  --red-dark:  #A00000;
  --charcoal:  #2D2D2D;
  --black:     #111111;
  --grey-bg:   #EEEEEE;
  --grey-mid:  #CCCCCC;
  --white:     #FFFFFF;

  --font-display: 'Bebas Neue', sans-serif;
  --font-ui:      'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --max-w: 900px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--grey-bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}


a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── SOCIAL BAR ── */
.social-bar {
  background: var(--charcoal);
  padding: 8px 16px;
}
.social-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-bar a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.social-bar a:hover { color: var(--red); }
.social-bar svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--black);
  letter-spacing: 0.03em;
}
.logo-sub {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-top: -4px;
}
.header-url {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.03em;
}
.header-slash {
  height: 6px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 2% 100%);
}

/* ── HERO ── */
.hero {
  background: var(--grey-bg);
  position: relative;
  padding: 48px 16px 56px;
  overflow: hidden;
  text-align: center;
}
.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 180px);
  color: rgba(0,0,0,0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.1em;
}
.hero__content { position: relative; z-index: 1; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 90px);
  color: var(--black);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.hero__subtitle {
  font-family: var(--font-ui);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.03em;
}
.hero__diagonal {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--red);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--charcoal);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.filter-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar__inner::-webkit-scrollbar { display: none; }
.filter-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-mid);
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding-right: 8px;
}
.filter-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--grey-mid);
  padding: 14px 16px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--white); }
.filter-btn.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* ── FIGHTS CONTAINER ── */
.fights-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 16px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── DATE GROUP ── */
.date-group {}
.date-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.date-heading__bar {
  height: 3px;
  background: var(--red);
  flex: 1;
}
.date-heading__text {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--charcoal);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.date-group__fights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── FIGHT CARD ── */
.fight-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  animation: slideUp 0.4s ease both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card title bar */
.fight-card__header {
  background: var(--charcoal);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fight-card__title {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.fight-card__badge {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fight-card__badge--main {
  background: var(--red);
  color: var(--white);
}
.fight-card__badge--co-main {
  background: #555;
  color: var(--white);
}
.fight-card__badge--undercard {
  background: #444;
  color: #bbb;
}

/* Fighters row */
.fight-card__fighters {
  display: flex;
  align-items: stretch;
  background: var(--grey-bg);
  position: relative;
  min-height: 140px;
}
.fighter-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 12px;
  gap: 8px;
}
.fighter-side--right { flex-direction: column; }

.fighter-photo-wrap {
  width: 80px;
  height: 90px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--charcoal);
  position: relative;
}
.fighter-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.fighter-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: rgba(255,255,255,0.3);
}

.fighter-name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.fighter-record-badge {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  letter-spacing: 0.05em;
}
.fighter-nationality {
  font-family: var(--font-body);
  font-size: 12px;
  color: #777;
}

/* VS divider */
.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  gap: 6px;
  flex-shrink: 0;
}
.vs-text {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--red);
  line-height: 1;
}
.vs-rounds {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.vs-weight {
  font-family: var(--font-ui);
  font-size: 10px;
  color: #888;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Meta row: venue, weight, rounds */
.fight-card__meta {
  display: flex;
  background: var(--charcoal);
}
.fight-card__meta-item {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.fight-card__meta-item:last-child { border-right: none; }
.meta-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.meta-value {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* Broadcast times */
.fight-card__broadcast {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--red);
}
.broadcast-block {
  padding: 12px 16px;
  border-right: 1px solid var(--grey-mid);
}
.broadcast-block:last-child { border-right: none; }
.broadcast-region {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.broadcast-region__label {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.broadcast-platform {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.05em;
}
.broadcast-times {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.broadcast-time-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.time-label {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
}
.time-value {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

/* ── LOADING ── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: #888;
  font-family: var(--font-ui);
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--grey-mid);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 16px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 18px;
  color: #888;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.footer-slash {
  height: 28px;
  background: var(--red);
  clip-path: polygon(0 0, 15% 0, 0 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-inner .logo-text {
  font-size: 36px;
  color: var(--white);
}
.footer-inner .logo-sub {
  font-size: 15px;
  color: var(--red);
}
.footer-socials {
  display: flex;
  gap: 20px;
}
.footer-socials a {
  color: #888;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--red); }
.footer-socials svg { width: 20px; height: 20px; }
.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: #666;
}

/* ── TITLE BELT STRIP ── */
.fight-card__titles {
  background: linear-gradient(90deg, #8B0000, var(--red), #8B0000);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 5px 12px;
}

/* ── UNDERCARD LIST ── */
.undercard-list {
  margin-top: 2px;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.undercard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #e8e8e8;
  flex-wrap: wrap;
}
.undercard-row:last-child { border-bottom: none; }

.undercard-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #999;
  background: #ebebeb;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.undercard-matchup {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 0;
}

.undercard-vs {
  font-weight: 400;
  color: #aaa;
  margin: 0 3px;
}

.undercard-details {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}

.undercard-list[data-hidden="true"] { display: none; }
.undercard-row[data-hidden="true"]  { display: none; }

/* ── FIGHT CARD LINK ── */
.fight-card-link {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--grey-mid);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-top: 2px solid var(--red);
  transition: background 0.15s, color 0.15s;
}
.fight-card-link:hover {
  background: var(--red);
  color: var(--white);
}

/* ── HIDDEN / FILTERED ── */
.fight-card[data-hidden="true"] { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .social-bar a span { display: none; }
  .social-bar svg { width: 18px; height: 18px; }
  .social-bar__inner { gap: 14px; }

  .header-url { display: none; }
  .logo-text { font-size: 34px; }

  .fight-card__broadcast { grid-template-columns: 1fr; }
  .broadcast-block { border-right: none; border-bottom: 1px solid var(--grey-mid); }
  .broadcast-block:last-child { border-bottom: none; }

  .fighter-photo-wrap { width: 66px; height: 76px; }
  .fighter-name { font-size: 13px; }

  .fight-card__meta { flex-wrap: wrap; }
  .fight-card__meta-item { min-width: 50%; }
}

@media (max-width: 400px) {
  .vs-text { font-size: 24px; }
  .fighter-side { padding: 12px 6px 10px; }
}
