/* ============================================================
   FlairTips match cards — mobile-first fixture list
   Replaces the wide <table class="odds"> layout inside each
   league accordion body with responsive cards. Built to sit
   alongside styles.css / custom.css without touching them, so
   other pages still using table.odds are unaffected.
   ============================================================ */

.fc-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #fbfbfb;
  border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

[data-bs-theme='dark'] .fc-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

/* --- top row: kickoff / live / finished + confidence --- */
.fc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.fc-kick {
  font-weight: 700;
  color: var(--bs-secondary-color);
  font-variant-numeric: tabular-nums;
}

.fc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.06));
  color: var(--bs-secondary-color);
}

.fc-status.fc-live {
  background: rgba(217, 83, 79, 0.14);
  color: #c9433c;
}

[data-bs-theme='dark'] .fc-status.fc-live {
  color: #e0685f;
}

.fc-live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  animation: fc-pulse 1.4s ease-in-out infinite;
}

@keyframes fc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-live-dot { animation: none; }
}

.fc-trust {
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.fc-trust--hi  { background: rgba(25, 135, 84, 0.12);  color: #198754; }
.fc-trust--mid { background: rgba(201, 134, 43, 0.14); color: #a86a1f; }
.fc-trust--lo  { background: rgba(201, 75, 63, 0.12);   color: #c9433c; }

[data-bs-theme='dark'] .fc-trust--hi  { background: rgba(60, 165, 116, 0.16); color: #4acc8f; }
[data-bs-theme='dark'] .fc-trust--mid { background: rgba(224, 178, 92, 0.16); color: #e0b25c; }
[data-bs-theme='dark'] .fc-trust--lo  { background: rgba(224, 104, 95, 0.16); color: #e0685f; }

/* --- teams --- */
.fc-teams {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fc-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fc-team-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-team-score {
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--bs-body-color);
  flex: none;
}

.fc-logo {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.05));
}

.fc-badge {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fc-b0 { background: #6B4FA0; } .fc-b1 { background: #B0473E; }
.fc-b2 { background: #2E6B8A; } .fc-b3 { background: #7A8A2E; }
.fc-b4 { background: #A0574F; } .fc-b5 { background: #3D7A6E; }
.fc-b6 { background: #8A5A2E; } .fc-b7 { background: #4F5FA0; }

.fc-vs {
  font-size: 0.68rem;
  color: var(--bs-secondary-color);
  padding-left: 1.9rem; /* align under team names, past the badge column */
}

/* --- tip: full label + short code, own row so it can't be missed --- */
.fc-tip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: rgba(25, 135, 84, 0.08);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
}

[data-bs-theme='dark'] .fc-tip {
  background: rgba(60, 165, 116, 0.12);
}

.fc-tip-label {
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #198754;
  flex: none;
}

[data-bs-theme='dark'] .fc-tip-label { color: #4acc8f; }

.fc-tip-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #198754;
}

[data-bs-theme='dark'] .fc-tip-text { color: #4acc8f; }

.fc-tip-code {
  font-family: monospace;
  font-size: 0.66rem;
  color: #198754;
  opacity: 0.65;
  flex: none;
  margin-left: auto;
}

[data-bs-theme='dark'] .fc-tip-code { color: #4acc8f; }

.fc-tip--pending {
  background: none;
  border: 1px dashed var(--bs-border-color, rgba(0, 0, 0, 0.15));
}

.fc-tip--pending .fc-tip-text {
  color: var(--bs-secondary-color);
  font-style: italic;
  font-weight: 500;
}

/* --- secondary predictions: goals / btts / best tip, only if present --- */
.fc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fc-chip {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.05));
  color: var(--bs-secondary-color);
}

.fc-chip strong {
  color: var(--bs-body-color);
  font-weight: 600;
}

/* --- result tag on finished cards --- */
.fc-result {
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fc-result.fc-hit  { color: #198754; }
.fc-result.fc-miss { color: #c9433c; }

[data-bs-theme='dark'] .fc-result.fc-hit  { color: #4acc8f; }
[data-bs-theme='dark'] .fc-result.fc-miss { color: #e0685f; }

.fc-empty {
  text-align: center;
  padding: 1.6rem 1rem;
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
}

/* --- wide screens: give cards a bit more breathing room --- */
@media (min-width: 700px) {
  .fc-card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.6rem 0.9rem;
  }
  .fc-top {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.35rem;
    flex: none;
    width: 4.6rem;
  }
  .fc-teams {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0 1rem;
  }
  .fc-vs { display: none; }
  .fc-tip {
    flex: 1 1 12rem;
    min-width: 10rem;
    max-width: 16rem;
  }
  .fc-meta {
    flex: 0 1 auto;
    max-width: 12rem;
    justify-content: flex-end;
  }
}
