/* ================================================================
   BASKET PAGE — BATOUCODE.OVH
   Ubuntu · thème orange SaaS
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Ubuntu+Mono:wght@400;700&display=swap');

.bk-page,
.bk-page * { font-family: 'Ubuntu', 'Inter', system-ui, sans-serif; }
.bk-mono   { font-family: 'Ubuntu Mono', monospace !important; }

/* ── ORANGE BASKETBALL NAV LINK ──────────────────────────────── */
.nav-links a.nav-basket {
  color: #FF6200 !important;
  animation: bk-glow-pulse 2.8s ease-in-out infinite;
}

@keyframes bk-glow-pulse {
  0%,100% { box-shadow: 0 0 8px rgba(255,98,0,0.15); }
  50%      { box-shadow: 0 0 20px rgba(255,98,0,0.45); }
}

.nav-links a.nav-basket:hover,
.nav-links a.nav-basket.active {
  color: #FF6200 !important;
  border-color: #FF6200 !important;
  background: rgba(255,98,0,0.12) !important;
  box-shadow: 0 0 20px rgba(255,98,0,0.40) !important;
  animation: none;
}

/* Mobile basket icon orange */
.mob-item[data-page="basket"] .mob-ico svg {
  stroke: #FF6200;
  filter: drop-shadow(0 0 5px rgba(255,98,0,0.75));
}
.mob-item[data-page="basket"].active .mob-ico {
  color: #FF6200 !important;
  filter: drop-shadow(0 2px 12px rgba(255,98,0,0.9)) !important;
  animation: bk-bounce 1.3s cubic-bezier(0.36,0.07,0.19,0.97) infinite;
}
.mob-item[data-page="basket"] .mob-lbl { color: #FF6200 !important; }
.mob-item[data-page="basket"].active::before {
  border-color: rgba(255,98,0,0.30) !important;
}

@keyframes bk-bounce {
  0%,100% { transform: translateY(-22px) scale(1); }
  40%      { transform: translateY(-29px) scale(1.12); }
  70%      { transform: translateY(-19px) scale(0.94); }
}

/* ── PAGE LAYOUT ─────────────────────────────────────────────── */
.bk-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

/* Glow ambiant orange en haut de page */
.bk-ambient {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 360px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,98,0,0.13) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* ── SECTIONS ─────────────────────────────────────────────────── */
.bk-section {
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

/* En-tête de section — style SaaS avec bordure gauche colorée */
.bk-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  border-left-width: 4px;
  border-left-style: solid;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.bk-section-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}

.bk-section-badge {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bk-section-spacer { flex: 1; }

/* NBA — orange */
.bk-section-header--nba {
  background: linear-gradient(105deg, rgba(255,98,0,0.10) 0%, rgba(255,98,0,0.02) 60%, transparent 100%);
  border-left-color: #FF6200;
  border-top-color: rgba(255,98,0,0.14);
  border-right-color: rgba(255,98,0,0.06);
  border-bottom-color: rgba(255,98,0,0.14);
  box-shadow: inset 4px 0 18px rgba(255,98,0,0.05);
}
.bk-section-header--nba h2 { color: #FF6200; }

.bk-section-badge--nba {
  background: rgba(255,98,0,0.12);
  border: 1px solid rgba(255,98,0,0.30);
  color: #FF6200;
}

/* TMB — rouge */
.bk-section-header--tmb {
  background: linear-gradient(105deg, rgba(204,34,34,0.10) 0%, rgba(204,34,34,0.02) 60%, transparent 100%);
  border-left-color: #CC2222;
  border-top-color: rgba(204,34,34,0.14);
  border-right-color: rgba(204,34,34,0.06);
  border-bottom-color: rgba(204,34,34,0.14);
  box-shadow: inset 4px 0 18px rgba(204,34,34,0.05);
}
.bk-section-header--tmb h2 { color: #CC2222; }

.bk-section-badge--tmb {
  background: rgba(204,34,34,0.12);
  border: 1px solid rgba(204,34,34,0.30);
  color: #CC2222;
}

.bk-tmb-logo-sm {
  width: 34px; height: 34px;
  object-fit: contain;
  border-radius: 6px;
}

/* ── NBA GAMES GRID ───────────────────────────────────────────── */
.bk-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

@keyframes bk-fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cards avec accent orange intégré */
.bk-game-card {
  background: linear-gradient(145deg, rgba(255,98,0,0.06) 0%, var(--bg-glass) 50%);
  border: 1px solid rgba(255,98,0,0.16);
  border-bottom: 2px solid rgba(255,98,0,0.24);
  border-radius: 16px;
  padding: 20px 18px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.22s;
  animation: bk-fadeIn 0.4s ease both;
}

.bk-game-card:hover {
  border-color: rgba(255,98,0,0.45);
  border-bottom-color: #FF6200;
  box-shadow: 0 8px 32px rgba(255,98,0,0.16), 0 0 0 1px rgba(255,98,0,0.10);
  transform: translateY(-2px);
}

.bk-game-date {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 0.60rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,98,0,0.70);
  margin-bottom: 16px;
}

.bk-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.bk-team { text-align: center; }

.bk-team-abbr {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.bk-team-score {
  display: block;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-color);
  transition: color 0.2s;
}
.bk-team-score.winner {
  color: #FF6200;
  text-shadow: 0 0 18px rgba(255,98,0,0.35);
}

.bk-vs {
  font-size: 0.60rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.bk-game-status {
  margin-top: 14px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bk-status-final     { color: #52FFA8; }
.bk-status-scheduled { color: var(--text-muted); }
.bk-status-live      { color: #FF6200; animation: bk-livepulse 1.2s ease-in-out infinite; }

@keyframes bk-livepulse {
  0%,100% { opacity:1; }
  50%      { opacity:0.40; }
}

/* Loading / Error */
.bk-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-family: 'Ubuntu Mono', monospace;
  font-size: 0.80rem;
  letter-spacing: 0.06em;
  padding: 44px 20px;
}

.bk-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--accent-red);
  font-size: 0.80rem;
  padding: 28px;
}

/* ── HISTORIQUE ÉQUIPE ────────────────────────────────────────── */
.bk-subsection { margin-top: 44px; }

.bk-subsection-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,98,0,0.80);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bk-subsection-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,98,0,0.25), transparent);
}

/* Team pills */
.bk-team-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bk-team-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,98,0,0.18);
  background: rgba(255,98,0,0.04);
  color: var(--text-muted);
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.bk-team-pill:hover {
  color: var(--text-color);
  border-color: rgba(255,98,0,0.45);
  background: rgba(255,98,0,0.08);
}
.bk-team-pill.active {
  background: rgba(255,98,0,0.15);
  border-color: #FF6200;
  color: #FF6200;
}

/* History table */
.bk-history-wrap {
  background: linear-gradient(145deg, rgba(255,98,0,0.04) 0%, var(--bg-glass) 40%);
  border: 1px solid rgba(255,98,0,0.14);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bk-history-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.bk-history-head {
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(255,98,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bk-history-head-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-color);
}
.bk-history-head-record {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 0.68rem;
}
.bk-history-head-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-left: auto;
}

.bk-history-wrap thead th {
  padding: 11px 16px;
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid rgba(255,98,0,0.10);
}

.bk-history-wrap tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s;
  animation: bk-fadeIn 0.3s ease both;
}
.bk-history-wrap tbody tr:last-child { border-bottom: none; }
.bk-history-wrap tbody tr:hover      { background: rgba(255,98,0,0.05); }

.bk-history-wrap tbody td {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-color);
}

.bk-badge-w {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(82,255,168,0.14);
  color: #52FFA8;
  border: 1px solid rgba(82,255,168,0.24);
  font-weight: 700;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}
.bk-badge-l {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,51,102,0.12);
  color: var(--accent-red);
  border: 1px solid rgba(255,51,102,0.24);
  font-weight: 700;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

/* ── TMB PLANNING CARD ────────────────────────────────────────── */
.bk-tmb-card {
  background: linear-gradient(135deg, #0D1B2A 0%, #152336 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(204,34,34,0.20);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  max-width: 640px;
}

.bk-tmb-hd {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0d0d 42%, #1a1a2e 100%);
  padding: 20px 24px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 2px solid #CC2222;
}

.bk-tmb-hd::before {
  content: '';
  position: absolute;
  top: -50px; right: -30px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 32px solid rgba(204,34,34,0.08);
  pointer-events: none;
}
.bk-tmb-hd::after {
  content: '';
  position: absolute;
  bottom: -70px; right: 100px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 26px solid rgba(204,34,34,0.05);
  pointer-events: none;
}

.bk-tmb-hd-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #CC2222, transparent);
}

.bk-tmb-logo {
  flex-shrink: 0;
  width: 64px; height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
  border-radius: 8px;
  position: relative; z-index: 2;
}

.bk-tmb-hd-text { position: relative; z-index: 2; flex: 1; }

.bk-tmb-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #CC2222;
  margin-bottom: 3px;
}

.bk-tmb-hd h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #F4F7F9;
  letter-spacing: 1.5px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.bk-tmb-hd-sub {
  color: rgba(255,255,255,0.42);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* TMB table */
.bk-tmb-tb-wrap { padding: 16px 20px 18px; }

.bk-tmb-tb {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
}

.bk-tmb-tb thead th {
  font-size: 0.64rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #8DA0B5;
  padding: 0 12px 8px;
  font-weight: 700;
  text-align: left;
}
.bk-tmb-tb thead th:last-child { text-align: right; }

@keyframes bk-row {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.bk-tmb-tb tbody tr { animation: bk-row 0.5s ease both; }
.bk-tmb-tb tbody tr:nth-child(1) { animation-delay: 0.08s; }
.bk-tmb-tb tbody tr:nth-child(2) { animation-delay: 0.16s; }
.bk-tmb-tb tbody tr:nth-child(3) { animation-delay: 0.24s; }
.bk-tmb-tb tbody tr:nth-child(4) { animation-delay: 0.32s; }
.bk-tmb-tb tbody tr:nth-child(5) { animation-delay: 0.40s; }

.bk-tmb-tb tbody td {
  background: #1E3352;
  padding: 10px 12px;
  transition: background 0.18s;
}
.bk-tmb-tb tbody tr:hover td { background: #243d59; }
.bk-tmb-tb tbody td:first-child { border-radius: 10px 0 0 10px; padding-left: 14px; }
.bk-tmb-tb tbody td:last-child  { border-radius: 0 10px 10px 0; text-align: right; padding-right: 14px; }

.bk-day { display: inline-flex; align-items: center; gap: 8px; }
.bk-day-dot { width: 6px; height: 6px; border-radius: 50%; background: #CC2222; flex-shrink: 0; }
.bk-day-name { font-weight: 700; color: #F4F7F9; font-size: 0.86rem; }

.bk-time-col { display: flex; flex-direction: column; gap: 2px; }
.bk-time {
  color: #FFD166;
  font-weight: 600;
  font-size: 0.82rem;
  font-family: 'Ubuntu Mono', monospace;
  letter-spacing: 0.3px;
}
.bk-salle { font-size: 0.65rem; font-weight: 500; color: #8DA0B5; }

.bk-grp {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.bk-grp--cec { background: rgba(99,210,255,0.15); color: #63D2FF; border: 1px solid rgba(99,210,255,0.25); }
.bk-grp--23  { background: rgba(204,34,34,0.15);  color: #ff6b6b; border: 1px solid rgba(204,34,34,0.30); }
.bk-grp--r   { background: rgba(82,255,168,0.12); color: #52FFA8; border: 1px solid rgba(82,255,168,0.22); }

.bk-tmb-ft {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bk-tmb-ft span {
  font-size: 0.66rem;
  color: #8DA0B5;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bk-tmb-ft strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: #CC2222;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── LOGOS ÉQUIPES ───────────────────────────────────────────── */
.bk-team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
  filter: drop-shadow(0 1px 5px rgba(0,0,0,0.55));
  transition: transform 0.2s;
}
.bk-game-card:hover .bk-team-logo { transform: scale(1.08); }

.bk-game-card--upcoming .bk-team-logo {
  width: 52px;
  height: 52px;
}

/* ── CARDS PROCHAIN MATCH ─────────────────────────────────────── */
.bk-game-card--upcoming {
  background: linear-gradient(145deg, rgba(255,98,0,0.10) 0%, rgba(255,98,0,0.03) 60%, var(--bg-glass) 100%);
  border-color: rgba(255,98,0,0.28);
  border-bottom-color: rgba(255,98,0,0.40);
}

.bk-upcoming-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FF6200;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bk-upcoming-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FF6200;
  flex-shrink: 0;
  animation: bk-livepulse 1.6s ease-in-out infinite;
}

/* Layout matchup pour prochains matchs */
.bk-matchup--upcoming {
  align-items: center;
}

.bk-vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 0 6px;
}

.bk-next-time {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 1.7rem;
  font-weight: 700;
  color: #FF6200;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255,98,0,0.30);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .bk-games-grid { grid-template-columns: 1fr; }
  .bk-tmb-card { max-width: 100%; }
  .bk-section-header { padding: 14px 16px; }
  .bk-section-header h2 { font-size: 1.05rem; }
  .bk-tmb-hd h3 { font-size: 1.5rem; }
}
