/* ================================================
   UNIFIED FIXTURE SKELETON STYLES
   Используется на: BetsPage, LandingUpcomingPage, LivePage
   ================================================ */

/* Container для списка скелетонов */
.fixture-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 2px;
}

/* Карточка фикстуры - скелетон */
.fixture-skeleton-card {
  background-color: var(--bg-elevated);
  padding: 8px 10px;
  border-radius: 4px;
  margin: 0 2px;
  box-shadow: 3px 2px 4px var(--black-50);
}

/* Header карточки (время + заголовки колонок) */
.fixture-skeleton-header {
  display: grid;
  grid-template-columns: 4fr 1fr 1fr 1fr;
  grid-gap: 4px;
  gap: 4px;
  align-items: center;
  padding-top: 3px;
  padding-bottom: 3px;
  margin-bottom: 4px;
}

/* Время и дата в header */
.fixture-skeleton-time {
  display: flex;
  gap: 2px;
  align-items: center;
}

/* Строка с командой */
.fixture-skeleton-row {
  display: grid;
  grid-template-columns: 4fr 1fr 1fr 1fr;
  grid-gap: 4px;
  gap: 4px;
  align-items: center;
  padding: 2px 0;
  min-height: 35px;
}

/* Команда (иконка + название) */
.fixture-skeleton-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Footer карточки */
.fixture-skeleton-footer {
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 8px;
  margin-top: 10px;
  height: 17px;
}

/* ===== Shimmer элементы ===== */
.fixture-shimmer {
  background: linear-gradient(90deg, var(--shimmer-base) 25%, var(--shimmer-highlight) 50%, var(--shimmer-base) 75%);
  background-size: 200% 100%;
  animation: fixture-shimmer-anim 1.2s infinite linear;
  border-radius: 4px;
}

/* Иконка команды */
.fixture-shimmer-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 1px;
  flex-shrink: 0;
}

/* Название команды */
.fixture-shimmer-team-name {
  height: 16px;
  width: 100%;
  max-width: 140px;
}

/* Кнопка ставки */
.fixture-shimmer-button {
  height: 36px;
  border-radius: 6px;
}

/* Заголовок колонки (1X2, Spread, Total) */
.fixture-shimmer-header {
  height: 12px;
  width: 90%;
  margin: 0 auto;
}

/* Время/дата в header */
.fixture-shimmer-date {
  width: 60px;
  height: 18px;
  border-radius: 2px;
}

.fixture-shimmer-time {
  width: 45px;
  height: 18px;
  border-radius: 2px;
}

/* Кнопка "больше ставок" в footer */
.fixture-shimmer-more {
  width: 60px;
  height: 14px;
  border-radius: 2px;
}

/* Анимация */
@keyframes fixture-shimmer-anim {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===== Layout варианты (для разного количества колонок) ===== */

/* Layout 3: 1X2 + Spread + Total */
.fixture-skeleton-header.layout-3,
.fixture-skeleton-row.layout-3 {
  grid-template-columns: 4fr 1fr 1fr 1fr;
}

/* Layout 2: только 2 маркета */
.fixture-skeleton-header.layout-2,
.fixture-skeleton-row.layout-2 {
  grid-template-columns: 4fr 1fr 1fr;
}

/* Layout 1: только 1 маркет */
.fixture-skeleton-header.layout-1,
.fixture-skeleton-row.layout-1 {
  grid-template-columns: 4fr 1fr;
}

.footer-container {
  border-top: 1px solid var(--separator);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 20px;
  padding: 0px 10px 10px 10px;
  flex-shrink: 0;
}

/* Legal links (Terms, Rules) */
.footer-legal-links {
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 6px;
  text-align: start;
}

.footer-link {
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* SEO content block */
.footer-seo {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 0 10px;
  text-align: left;
}

.footer-seo-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
}

.footer-seo p {
  color: var(--text-tertiary);
  font-size: 11.5px;
  line-height: 1.7;
  margin: 0 0 10px 0;
}

/* Links grid */
.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .footer-links-grid {
    gap: 20px 30px;
  }
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.footer-links-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav-link {
  color: var(--text-tertiary);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
  padding: 2px 0;
}

.footer-nav-link:hover {
  color: var(--text-primary);
}

/* Bottom section */
.footer-bottom {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 16px 10px 0;
  border-top: 1px solid var(--separator);
  text-align: center;
}

.footer-support {
  color: var(--text-tertiary);
  font-size: 11.5px;
  margin: 0 0 12px 0;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
}

.footer-icon {
  width: 40px;
  height: 40px;
}

.tether-icon {
  width: 40px;
}

.footer-responsible {
  color: var(--text-tertiary);
  font-size: 11px;
  margin: 6px 0 0 0;
  text-align: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Proxima Nova', sans-serif;
  text-decoration: none;
  text-align: center;
  margin-top: 8px;
}

.footer-logo span {
  color: var(--link-blue);
  font-family: 'Proxima Nova', sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.footer-legal {
  font-size: 11px;
  color: var(--text-quaternary);
  margin: 4px 0 0 0;
}

.by-icon {
  width: 65px;
  height: auto;
}

.by-icons {
  display: flex;
  justify-content: center;
  margin: 10px 0px 0px 0px;
}

/* Mobile: space for BottomNav + Safari toolbar */
@media (max-width: 1023px) {
  .footer-container {
    padding-bottom: 90px;
  }

  /* Casino has no BottomNav — minimal padding */
  .casino-page-grid .footer-container {
    padding-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .footer-link:hover {
    color: var(--text-tertiary);
    text-decoration: none;
  }

  .footer-nav-link:hover {
    color: var(--text-tertiary);
  }
}

@media (min-width: 1024px) {
  .by-icons {
    margin: 10px 0px 0;
  }
}

/* ========== FIXTURE CARD - LivePage design ========== */

.fc-fixture {
  background: var(--gradient-fixture);
  border-radius: 0;
  margin: 1px 3px 5px 3px;
  overflow: hidden;
  border-radius: 5px;
}

.fc-fixture:last-child {
  /* margin-bottom: 0; */
}

/* ========== HEADER ========== */
/* Sport-specific colors are in /styles/sportColors.css */
.fc-header {
  display: grid;
  grid-gap: 0;
  gap: 0;
  align-items: center;
  color: var(--white-70);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 10px;
  line-height: 1;
  text-align: center;
  padding: 8px 0 8px 12px;
  background: var(--gradient-odds-header);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--white-15);
}

/* Grid layouts */
.fc-header.layout-3 {
  grid-template-columns: 4fr 1fr 1fr 1fr;
}

.fc-header.layout-2 {
  grid-template-columns: 3fr 1fr 1fr;
}

/* ========== TIME SECTION ========== */
.fc-time {
  text-align: start;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-star {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  margin-right: 4px;
}

.fc-star:hover {
  transform: scale(1.15);
}

.fc-live-badge {
  background-color: #e53935;
  background-color: var(--accent-red, #e53935);
  border-radius: 2px;
  color: var(--text-on-accent);
  font-size: 10px;
  font-weight: bold;
  padding: 1px 3px;
  line-height: 1;
  text-transform: capitalize;
}

/* Status badge variants */
.fc-live-badge.live {
  background-color: var(--color-live);
}
.fc-live-badge.soon {
  background-color: var(--accent-blue);
}
.fc-live-badge.prematch {
  background-color: transparent;
  color: var(--white-90);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.fc-live-badge.ended {
  background-color: var(--color-ended);
}
.fc-live-badge.postponed {
  background-color: var(--accent-orange);
}
.fc-live-badge.cancelled {
  background-color: var(--text-tertiary);
}
.fc-live-badge.interrupted,
.fc-live-badge.abandoned {
  background-color: var(--accent-red);
}

.fc-period-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.fc-period {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1;
}

/* Unified timer style for all sports (MM:SS) */
.fc-timer {
  color: var(--text-primary);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fc-timer-stopped {
  color: var(--white-50);
}

.fc-pause-icon {
  color: var(--white-50);
}

/* Basketball Timer */
.fc-basketball-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fc-basketball-timer .basketball-quarter {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1;
}

.fc-basketball-timer .basketball-time {
  color: var(--text-primary);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fc-basketball-timer .basketball-time.stopped {
  color: var(--white-50);
}

.fc-basketball-timer .basketball-pause-icon {
  color: var(--white-50);
}

.fc-basketball-timer.halftime,
.fc-basketball-timer.break,
.fc-basketball-timer.fulltime {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hockey timer styles */
.fc-hockey-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fc-hockey-timer .hockey-period {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1;
}

.fc-hockey-timer .hockey-time {
  color: var(--text-primary);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fc-hockey-timer .hockey-time.stopped {
  color: var(--white-50);
}

.fc-hockey-timer .hockey-pause-icon {
  color: var(--white-50);
}

.fc-hockey-timer.pause,
.fc-hockey-timer.fulltime,
.fc-hockey-timer.shootout {
  color: var(--text-primary);
  font-weight: 600;
}

.fc-hockey-timer.overtime .hockey-period {
  color: #ffa500;
}

/* Legacy minute style (fallback) */
.fc-minute {
  color: var(--text-primary);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Legacy countdown style (for backwards compat) */
.fc-countdown {
  color: var(--text-primary);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fc-countdown.fc-stopped {
  color: var(--white-50);
}

.fc-stopped-badge {
  display: flex;
  align-items: center;
  color: var(--white-50);
}

.fc-added-time {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--white-80);
  font-size: 11px;
  font-weight: 600;
}

/* Hockey power play indicator */
.fc-power-play {
  display: inline-flex;
  align-items: center;
  padding: 1px 4px;
  background: rgba(220, 80, 80, 0.5);
  border-radius: 3px;
  color: var(--text-on-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Futsal game format (2x20) */
.fc-game-format {
  display: inline-flex;
  align-items: center;
  padding: 1px 4px;
  background: rgba(100, 150, 255, 0.2);
  border-radius: 3px;
  color: rgba(150, 200, 255, 0.9);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Volleyball timeout */
.fc-timeout {
  display: inline-flex;
  align-items: center;
  padding: 1px 4px;
  background: rgba(255, 180, 50, 0.3);
  border-radius: 3px;
  color: #ffb832;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.fc-baseball-bases {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

/* Baseball Info Row - BSO + bases + extra info */
.fc-baseball-info-row {
  background: linear-gradient(90deg, rgba(74, 14, 20, 0.4) 0%, rgba(74, 14, 20, 0.25) 100%);
  border-bottom: 1px solid rgba(122, 30, 36, 0.3);
  padding: 6px 12px;
}

.fc-baseball-info-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--white-80);
}

.fc-baseball-bases-icon {
  display: flex;
  align-items: center;
}

.fc-bso {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Proxima Nova', monospace;
  font-weight: 600;
}

.fc-bso-item {
  color: var(--white-90);
}

.fc-baseball-extra {
  color: var(--accent-yellow);
  font-size: 10px;
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* Cricket overs display */
.fc-overs {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
}

/* ========== ODDS ROWS ========== */
.fc-row {
  display: grid;
  /* grid-gap: 1px; */
  grid-gap: 1px;
  gap: 1px;
  min-height: 40px;
  align-items: center;
  padding: 0 0 0 10px;
  background: var(--gradient-fixture);
  border-bottom: 1px solid var(--black-25);
}

.fc-row:last-of-type {
  border-bottom: none;
}

/* Draw label styling */
.fc-draw-label {
  color: #888 !important;
  color: var(--text-secondary, #888) !important;
  /* font-weight: 500 !important; */
  margin-left: 24px;
}

/* Empty cell placeholder */
.fc-bet-button.fc-empty {
  pointer-events: none;
}

.fc-row.layout-3 {
  grid-template-columns: 4fr 1fr 1fr 1fr;
}

.fc-row.layout-2 {
  grid-template-columns: 3fr 1fr 1fr;
}

/* ========== TEAM SECTION ========== */
.fc-team {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  cursor: pointer;
}

.fc-team-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
}

.fc-team-content > svg {
  flex-shrink: 0;
}

.fc-team-name {
  flex-grow: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  color: var(--text-primary, #fff);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.fc-red-card,
.fc-event-badge {
  background: var(--accent-red);
  color: var(--text-on-accent);
  font-size: 10px;
  padding: 2px 3px;
  border-radius: 2px;
  font-weight: 600;
  margin-left: 6px;
  flex-shrink: 0;
  min-width: 7px;
  text-align: center;
}

.fc-score {
  flex-shrink: 0;
  color: var(--score-color);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 14px;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  padding: 0 3px;
  min-width: 15px;
  text-align: center;
}

/* ========== BET BUTTONS ========== */
.fc-bet-button {
  align-items: center;
  font-family: 'Proxima Nova', sans-serif;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
  height: 100%;
  line-height: 13px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease;
}

@media (min-width: 1024px) {
  .fc-fixture {
    border-radius: 5px;
  }
  .fc-bet-button:hover:not(:disabled) {
    background: var(--hover-bg);
  }
}

.fc-bet-button.fc-locked {
  pointer-events: none;
  opacity: 0.3;
}

/* Suspended - коэффициент видно, но кнопка заблокирована */
.fc-bet-button.fc-suspended {
  pointer-events: none;
  opacity: 0.5;
  /* background: var(--white-10); */
}

.fc-bet-button.fc-suspended .fc-value {
  color: var(--text-tertiary);
}

/* Active state - bet is in slip */
.fc-bet-button.fc-active {
  background: var(--active-bg);
}

.fc-btn-lock {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-hdp {
  color: var(--accent-blue-hover);
  font-size: 11px;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.fc-value {
  font-size: 13px;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--white-95);
}

/* ========== MOBILE ========== */
@media (max-width: 480px) {
  .fc-header {
    padding: 6px 0 6px 10px;
    font-size: 10px;
  }

  .fc-row {
    min-height: 36px;
    padding: 0 0 0 8px;
  }

  .fc-team-name {
    font-size: 12px;
  }

  .fc-score {
    font-size: 13px;
  }

  .fc-bet-button {
    height: 36px;
    min-height: 36px;
  }

  .fc-hdp {
    font-size: 10px;
  }

  .fc-value {
    font-size: 12px;
  }
}

/* ========== TENNIS POINTS ========== */
.fc-tennis-points {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.fc-serving {
  color: #f5c542;
  filter: drop-shadow(0 0 2px rgba(245, 197, 66, 0.5));
}

.fc-points {
  color: rgb(245, 197, 66);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.fc-set-games {
  color: rgb(111, 177, 249);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 11px;
  font-weight: 600;
  min-width: 12px;
  text-align: center;
  padding-left: 3px;
  padding-left: 3px;
}

/* ========== FLASH ANIMATIONS ========== */
/* Flash up (green) - odds increased */
.fc-value.flash-up {
  animation: fcGlowGreen 1.5s ease-out forwards;
}

/* Flash down (red) - odds decreased */
.fc-value.flash-down {
  animation: fcGlowRed 1.5s ease-out forwards;
}

@keyframes fcGlowGreen {
  0% {
    color: #4caf50;
    font-weight: 800;
  }
  40% {
    color: #4caf50;
    font-weight: 800;
  }
  100% {
    color: var(--white-95);
    font-weight: 700;
  }
}

@keyframes fcGlowRed {
  0% {
    color: #f44336;
    font-weight: 800;
  }
  40% {
    color: #f44336;
    font-weight: 800;
  }
  100% {
    color: var(--white-95);
    font-weight: 700;
  }
}

