/* FootyMind — Premium Groen Theme */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Header ─────────────────────────────────────────────────────────────────*/
.app-header {
  background: linear-gradient(180deg, #0d2214 0%, #0a1a10 100%) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
@media (max-width: 640px) {
  .app-header .max-w-7xl { flex-wrap: wrap; }
  .nav-pill-wrap { width: 100%; }
}

/* Logo icon square */
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #166534, #14532d);
  border: 1px solid #166534;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(22,101,52,0.35);
  flex-shrink: 0;
}

/* Nav pill container */
.nav-pill-wrap {
  background: rgba(0,0,0,0.35);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #122018;
  display: flex; gap: 2px; align-items: center; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.nav-pill-wrap::-webkit-scrollbar { display: none; }
.nav-pill-wrap { scrollbar-width: none; }

/* Nav buttons */
.nav-btn {
  color: #4b5563;
  background: transparent;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-btn:hover {
  color: #9ca3af;
  background: rgba(255,255,255,0.04);
}
.nav-btn.active {
  color: #fff !important;
  background: linear-gradient(135deg, #166534, #14532d) !important;
  box-shadow: 0 2px 8px rgba(22,101,52,0.4);
}

/* ─── Filter bar ─────────────────────────────────────────────────────────────*/
.filter-stat {
  display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.filter-stat-val {
  font-size: 18px; font-weight: 800; line-height: 1;
}
.filter-stat-label {
  font-size: 9px; color: #374151; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px;
}

/* Date nav buttons */
.date-nav-btn {
  background: #0d1a10;
  border: 1px solid #122018;
  color: #6b7280;
  border-radius: 0;
  padding: 7px 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.date-nav-btn:first-child { border-radius: 9px 0 0 9px; }
.date-nav-btn:last-child  { border-radius: 0 9px 9px 0; border-left: none; }
.date-nav-btn:hover { background: #122018; color: #e5e7eb; }

/* ─── Spinner ────────────────────────────────────────────────────────────────*/
.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(34,197,94,0.2);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Country header ─────────────────────────────────────────────────────────*/
.country-section {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #122018;
  background: #090e0b;
}
.country-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #0d1f12 0%, #090e0b 100%);
  border-bottom: 1px solid #122018;
  cursor: pointer; user-select: none;
}
.country-flag-img {
  width: 24px; height: 16px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.country-name {
  font-size: 13px; font-weight: 800;
  color: #e5e7eb; letter-spacing: 0.02em; flex: 1;
  text-transform: uppercase;
}
.country-match-count {
  font-size: 11px; font-weight: 700;
  background: rgba(22,163,74,0.15); color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 20px; padding: 1px 8px;
}
.country-chevron {
  font-size: 12px; color: #374151;
  transition: transform 0.2s;
}

/* ─── League sub-header (inside country group) ───────────────────────────────*/
.league-sub-section {
  border-top: 1px solid #0f1a11;
}
.league-sub-section:first-child { border-top: none; }
.league-sub-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 22px;
  cursor: pointer; user-select: none;
  background: transparent;
  transition: background 0.15s;
}
.league-sub-header:hover { background: rgba(255,255,255,0.02); }

/* Legacy – keep for any fallback references */
.league-section-header {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0 8px 12px;
  border-left: 3px solid #16a34a;
  cursor: pointer; user-select: none;
}
.league-country-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: #6b7280;
  background: #0d1510; border: 1px solid #122018;
  border-radius: 6px; padding: 2px 8px 2px 5px;
  font-weight: 600;
}
.league-flag-img {
  width: 16px; height: 11px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─── Bulk checkbox ──────────────────────────────────────────────────────────*/
.bulk-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 3px;
}

/* ─── Match card ─────────────────────────────────────────────────────────────*/
.match-card {
  background: #0c1610;
  border: 1px solid #122018;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.match-card:hover {
  border-color: #1e3a22;
  background: #0f1c13;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
.match-card.bulk-selected {
  border-color: #16a34a;
  background: #0c1f10;
}

/* BTTS-regel onderin de match-card — eigen regel zodat teamnamen leesbaar blijven */
.btts-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 14px 10px;
}
.btts-row:empty { display: none; }
.btts-row-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #4b5563;
  text-transform: uppercase;
}

/* BTTS-badge op de match-card (Ja/Nee + voorspeld percentage) */
.btts-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.btts-badge-groen  { background: rgba(34,197,94,0.14);  color: #4ade80; border: 1px solid rgba(34,197,94,0.30); }
.btts-badge-oranje { background: rgba(249,115,22,0.14); color: #fb923c; border: 1px solid rgba(249,115,22,0.30); }
.btts-badge-rood   { background: rgba(239,68,68,0.14);  color: #f87171; border: 1px solid rgba(239,68,68,0.30); }

/* AI-scan model-keuze knoppen */
.scan-model-btn {
  padding: 5px 10px; font-size: 11px; font-weight: 600;
  background: transparent; color: #6b7280;
  cursor: pointer; transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.scan-model-btn:hover { color: #c4b5fd; background: rgba(139,92,246,0.08); }
.scan-model-active { background: rgba(139,92,246,0.22) !important; color: #c4b5fd !important; }

/* AI-scan badges op top-pick kaarten */
.tp-scan-ok   { font-size:10px; font-weight:700; color:#a78bfa; background:rgba(139,92,246,0.15); border:1px solid rgba(139,92,246,0.30); border-radius:999px; padding:2px 7px; white-space:nowrap; flex-shrink:0; }
.tp-scan-dim  { opacity:.38; }

/* Selecteer-checkbox op top-pick kaarten */
.tp-cb {
  width: 24px; height: 24px; min-width: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 12px; font-weight: 700; color: transparent;
}
.tp-cb:hover { border-color: rgba(34,197,94,0.5); }
.top-pick-card.tp-selected { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.35); }
.top-pick-card.tp-selected .tp-cb { background: #16a34a; border-color: #16a34a; color: #fff; }

/* Top Picks kaart in de "Meest Kansrijke" sectie onderaan de hoofdpagina */
.top-pick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.top-pick-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
}

/* vs badge */
.vs-badge {
  padding: 2px 8px;
  background: #0f1a11;
  border: 1px solid #1a2a1a;
  border-radius: 5px;
  font-size: 11px; color: #374151; font-weight: 600;
}

/* ─── Signal badges ───────────────────────────────────────────────────────────*/
.signal-groen  { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.signal-oranje { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.signal-rood   { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* ─── Modal tab ──────────────────────────────────────────────────────────────*/
.modal-tab {
  flex: 1; padding: 12px; font-size: 14px; font-weight: 500;
  color: #6b7280; background: transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.15s; cursor: pointer;
}
.modal-tab:hover { color: #e5e7eb; }
.modal-tab.active { color: #22c55e; border-bottom-color: #22c55e; }

/* ─── Market card ────────────────────────────────────────────────────────────*/
.market-card {
  background: #0f1a11;
  border: 1px solid #122018;
  border-radius: 12px; padding: 14px;
}

/* ─── Chat bubbles ───────────────────────────────────────────────────────────*/
.chat-bubble-user {
  background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 12px 12px 4px 12px; padding: 10px 14px;
  font-size: 14px; max-width: 85%; margin-left: auto; color: #e5e7eb;
}
.chat-bubble-ai {
  background: #0f1a11; border: 1px solid #122018;
  border-radius: 12px 12px 12px 4px; padding: 10px 14px;
  font-size: 14px; max-width: 90%; color: #d1fae5;
}

/* ─── Competition tag ────────────────────────────────────────────────────────*/
.comp-tag {
  display: inline-flex; align-items: center;
  background: rgba(34,197,94,0.1); color: #22c55e;
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 999px; padding: 2px 10px;
  font-size: 11px; font-weight: 600;
}

/* ─── Value bet card ─────────────────────────────────────────────────────────*/
.value-card {
  background: #0c1610; border: 1px solid #122018;
  border-radius: 14px; padding: 16px;
  border-left: 3px solid #22c55e;
}

/* ─── Combi pick ─────────────────────────────────────────────────────────────*/
.combi-pick {
  background: #0c1610; border: 1px solid #122018;
  border-radius: 12px; padding: 12px;
  display: flex; justify-content: space-between; align-items: center;
}

/* ─── History: hit-rate banner ───────────────────────────────────────────────*/
.hitrate-banner {
  display: flex; align-items: center; gap: 20px;
  background: #090e0b; border: 1px solid #122018;
  border-radius: 14px; padding: 16px 20px;
  margin-bottom: 16px;
}
.hitrate-main { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.hitrate-val  { font-size: 36px; font-weight: 900; line-height: 1; }
.hitrate-label{ font-size: 10px; color: #374151; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 3px; }
.hitrate-detail{ flex: 1; font-size: 12px; color: #6b7280; }
.hitrate-bar-track{ height: 4px; background: #122018; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.hitrate-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.hitrate-sep  { width: 1px; height: 40px; background: #122018; flex-shrink: 0; }

/* ─── History: prediction card ───────────────────────────────────────────────*/
.hist-card {
  background: #0c1610; border: 1px solid #122018;
  border-radius: 14px; padding: 14px; margin-bottom: 10px;
}
.hist-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.hist-summary {
  font-size: 12px; color: #6b7280; line-height: 1.5;
  margin-bottom: 10px; padding-bottom: 10px;
  border-bottom: 1px solid #0f1a11;
}
.pick-list { display: flex; flex-direction: column; gap: 6px; }
.pick-row  { display: flex; align-items: center; gap: 8px; }
.pick-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pick-label{ font-size: 11px; color: #6b7280; width: 56px; flex-shrink: 0; }
.pick-verdicht{ font-size: 12px; font-weight: 700; color: #d1fae5; flex: 1; }
.pick-btns { display: flex; gap: 4px; }
.pick-btn  {
  font-size: 13px; padding: 2px 6px; border-radius: 6px;
  border: 1px solid #122018; background: #0d1a10;
  cursor: pointer; transition: all 0.15s; opacity: 0.35;
}
.pick-btn:hover { opacity: 0.7; }
.pick-btn-win-active  { opacity: 1; background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); }
.pick-btn-loss-active { opacity: 1; background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); }

/* ─── Live pulse animation ───────────────────────────────────────────────────*/
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────────*/
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060d08; }
::-webkit-scrollbar-thumb { background: #1a2a1a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #16a34a; }


/* ─── Global Search ──────────────────────────────────────────────────────────*/
.search-result-row {
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid #0f1a11;
  transition: background 0.12s;
}
.search-result-row:hover { background: #111f15; }
.search-result-row:last-child { border-bottom: none; }
