/* =============================================
   schedule.css — Schedule Table Styles
   ============================================= */

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

section#upcoming-events {
  background-color: #0a1628;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(-45deg, rgba(204,0,0,0.05) 0 1px, transparent 1px 72px);
}

section#upcoming-events .section-label {
  color: rgba(255,255,255,0.62);
}

section#upcoming-events .section-title {
  color: #ffffff;
}

section#upcoming-events .section-title span {
  color: #CC0000;
}

.event-card {
  background: #0d1b2e;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(204,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06);
  color: var(--color-white);
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 3;
  background: linear-gradient(90deg, #CC0000, #ff4444);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 76px rgba(204,0,0,0.36), 0 0 0 1px rgba(255,255,255,0.1);
}

.event-date-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #CC0000, #990000);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(204,0,0,0.5);
}

.event-date-badge::before {
  content: "\f073";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
}

.event-logo-wrap {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px 22px;
  background: radial-gradient(ellipse at center, rgba(204,0,0,0.15) 0%, rgba(13,27,62,0.9) 60%, #0d1b2e 100%);
}

.event-logo {
  max-width: min(320px, 76%);
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

.event-body {
  padding: 0 28px 30px;
}

.event-body h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(204,0,0,0.3);
}

.event-organizer,
.event-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  margin-bottom: 9px;
}

.event-meta i {
  color: #CC0000;
  width: 16px;
}

.event-tba {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-body p {
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  line-height: 1.65;
  margin: 18px 0 24px;
}

.event-youtube {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 14px 24px;
  font-size: 15px;
  background: #CC0000;
  border-color: #CC0000;
  color: var(--color-white);
}

.event-youtube i {
  font-size: 20px;
}

.event-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 6px 20px rgba(255,0,0,0.5);
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-logo-wrap {
    min-height: 220px;
  }
}

.schedule-board-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(13,27,62,0.12);
}

.schedule-board-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.schedule-board-header h2 {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
}

.schedule-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: auto;
}
.filter-btn {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-gray-200);
  background: var(--color-white);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.schedule-ticker {
  margin-top: var(--navbar-height);
  height: 38px;
  background: var(--color-navy);
  border-bottom: 3px solid var(--color-red);
  color: var(--color-white);
  display: flex;
  overflow: hidden;
}

.schedule-ticker-label {
  min-width: 175px;
  background: var(--color-red);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 30px 0 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}

.schedule-ticker-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.schedule-ticker-track {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: scheduleTicker 28s linear infinite;
}

.schedule-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ticker-vs {
  color: var(--color-red);
}

.ticker-meta {
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  text-transform: none;
}

@keyframes scheduleTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-white:has(.schedule-card-list) {
  padding-top: 28px;
  background:
    linear-gradient(180deg, #f4f6fb 0%, var(--color-white) 170px),
    var(--color-white);
}

.schedule-page .reveal {
  opacity: 1;
  transform: none;
}

.schedule-page,
.schedule-page .container {
  max-width: 100%;
  overflow-x: hidden;
}

.schedule-card-list {
  display: grid;
  gap: 14px;
}

.schedule-card {
  display: grid;
  grid-template-columns: minmax(132px, 168px) minmax(420px, 1fr) minmax(190px, 260px) minmax(122px, 156px);
  gap: 8px;
  align-items: stretch;
  min-height: 126px;
  padding: 8px;
  border: 1px solid rgba(13,27,62,0.1);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 16px 36px rgba(13,27,62,0.1);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .filter-btn:hover {
    transform: translateY(-1px);
  }

  .schedule-card:hover {
    transform: translateY(-2px);
    border-color: rgba(204,0,0,0.28);
    box-shadow: 0 22px 48px rgba(13,27,62,0.12);
  }
}

.schedule-date,
.schedule-time,
.schedule-result {
  border-radius: 8px;
  color: var(--color-white);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.schedule-date {
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  padding: 16px 10px;
}

.schedule-matchup {
  border: 1px solid rgba(204,0,0,0.25);
  border-radius: 10px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--color-white);
  overflow: hidden;
}

.schedule-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  width: 100%;
  min-width: 0;
}

.schedule-teams img {
  width: clamp(58px, 6vw, 88px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 15px rgba(0,0,0,0.24));
}

.schedule-teams span {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
}

.schedule-teams-text {
  align-items: stretch;
  gap: 10px;
}

.schedule-teams-text .schedule-team-name,
.schedule-teams-text .schedule-vs {
  min-height: 94px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.05;
}

.schedule-teams-text .schedule-team-name {
  flex: 1 1 0;
  min-width: 0;
  background: #f8fafc;
  border: 1px solid rgba(13,27,62,0.08);
  color: var(--color-navy);
}

.schedule-teams-text .schedule-team-with-logo {
  flex-direction: column;
  gap: 5px;
  padding: 7px 8px 8px;
}

.schedule-team-with-logo > span {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
}

.schedule-team-logo {
  width: clamp(62px, 6vw, 82px);
  height: clamp(62px, 6vw, 82px);
  object-fit: contain;
  flex: 0 0 auto;
}

.schedule-team-placeholder {
  color: var(--color-navy);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.05em;
}

.schedule-teams-text .schedule-vs {
  flex: 0 0 48px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 18px;
}

.schedule-event {
  min-width: 0;
  text-align: left;
  color: var(--color-navy);
}

.schedule-event h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--color-navy);
}

.schedule-event p {
  margin-top: 7px;
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--color-navy);
}

.schedule-time {
  background: var(--color-red);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  padding: 12px;
}

.schedule-time strong {
  display: block;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.1;
}

.schedule-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.schedule-action {
  min-height: 34px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 7px;
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  line-height: 1;
  transition: var(--transition-fast);
}

.schedule-action i {
  font-size: 14px;
  line-height: 1;
}

.schedule-action:hover {
  background: var(--color-white);
  color: var(--color-red);
}

.schedule-action.is-muted {
  color: rgba(255,255,255,0.72);
  background: rgba(0,0,0,0.08);
  border-color: rgba(255,255,255,0.18);
}

.schedule-result {
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12px;
}

.schedule-result-label {
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 800;
  line-height: 1;
}

.schedule-result strong {
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1.05;
}

.schedule-empty {
  padding: 32px;
  border: 1px dashed rgba(13,27,62,0.24);
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1120px) {
  .schedule-board-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .schedule-filters {
    justify-content: flex-start;
  }

  .schedule-card {
    grid-template-columns: 150px 1fr;
  }

  .schedule-matchup {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .schedule-time,
  .schedule-result {
    min-height: 92px;
  }
}

@media (max-width: 760px) {
  .schedule-board-header h2 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.08;
    max-width: 11ch;
  }

  .schedule-filters {
    width: 100%;
  }

  .filter-btn {
    min-height: 44px;
  }

  .schedule-ticker {
    height: auto;
    min-height: 40px;
  }

  .schedule-ticker-label {
    min-width: 122px;
    padding: 0 20px 0 12px;
    font-size: 10px;
  }

  .schedule-ticker-track {
    gap: 28px;
  }

  .schedule-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 6px;
  }

  .schedule-date,
  .schedule-time,
  .schedule-result {
    border-radius: 10px;
  }

  .schedule-matchup {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
  }

  .schedule-teams-text .schedule-team-name,
  .schedule-teams-text .schedule-vs {
    min-height: 66px;
    padding: 8px 6px;
  }

  .schedule-team-logo {
    width: 42px;
    height: 42px;
  }

  .schedule-team-with-logo > span {
    font-size: clamp(19px, 5.5vw, 23px);
  }

  .schedule-teams-text {
    flex-direction: column;
    gap: 6px;
  }

  .schedule-teams-text .schedule-vs {
    flex-basis: auto;
    width: 100%;
    min-height: 34px;
    font-size: 15px;
  }

  .schedule-event {
    text-align: center;
  }

  .schedule-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .schedule-action {
    flex-basis: 150px;
  }
}
