/* =========================================
   Grundlayout: Grid für Karten
   ========================================= */

.bball-suite {
  width: 100%;
}

/* WICHTIG: ul-Einzug vom Theme wegnehmen */
.bball-suite .bball-suite-list {
  list-style: none;
  margin: 0 !important;
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 Spalte */
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .bball-suite .bball-suite-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Desktop: 2 Spalten */
  }
}

/* =========================================
   Karten
   ========================================= */

.bball-suite-list .game-card {
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  display: block;
  margin: 0; /* keine extra Einrückung */
}

.bball-suite-list .game-tap {
  width: 100%;
}

/* =========================================
   Datum / Uhrzeit
   ========================================= */

.bball-suite-list .row.top {
  margin-bottom: 0.35rem;
}

.bball-suite-list .row.top .dt {
  font-size: 0.9rem;
  opacity: 0.65;
  display: block;
}

/* =========================================
   Matchup: Home | Score | Away (Grid)
   ========================================= */

.bball-suite-list .row.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Links | Mitte | Rechts */
  align-items: center;
  column-gap: 1.2rem;
  margin: 0.35rem 0;
}

/* Teamnamen */

.bball-suite-list .match-team {
  font-size: 1rem;
  line-height: 1.35;     /* mehr Zeilenabstand */
  hyphens: auto;
  word-break: break-word;
}

.bball-suite-list .match-team.home {
  text-align: left;
}

.bball-suite-list .match-team.away {
  text-align: right;
}

/* Team-Link */

.bball-suite-list .team-link {
  text-decoration: none;
  border-bottom: 0px solid currentColor;
}

.bball-suite-list .team-link:hover {
  opacity: 0.85;
}

/* Gewinner fett, Verlierer normal */

.bball-suite-list .match-team.emph,
.bball-suite-list .match-score .score.emph {
  font-weight: 700;
}

.bball-suite-list .match-team.deemph,
.bball-suite-list .match-score .score.deemph {
  font-weight: 400;
}

/* Score in der Mitte – NEBENEINANDER */

.bball-suite-list .match-score {
  text-align: center;
  min-width: 90px;
  display: flex;
  flex-direction: row;      /* nebeneinander, nicht Spalte */
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.bball-suite-list .match-score .score {
  font-size: 1.15rem;
  line-height: 1.1;
}

.bball-suite-list .match-score .colon {
  padding: 0 0.1rem;
}

/* Status unter Score (Gewonnen / Verloren) */

.bball-suite-list .match-score .status-below {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.bball-suite-list .status-below.won {
  color: #0a7b38;
  font-weight: 600;
}

.bball-suite-list .status-below.lost {
  color: #b00020;
  font-weight: 600;
}

/* =========================================
   Meta unten: Liga / Altersklasse
   ========================================= */

.bball-suite-list .row.meta {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.35rem;
}

.bball-suite-list .row.meta .sep {
  margin: 0 0.25rem;
}

/* =========================================
   Filter oben
   ========================================= */

.bball-suite-filters {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bball-suite-filters select {
  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

@media (min-width: 600px) {
  .bball-suite-filters {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }
}

/* =========================================
   Pagination
   ========================================= */

.bball-suite-pagination {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.bball-suite-pagination a {
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.bball-suite-pagination .num {
  padding: 0.4rem 0.8rem;
  opacity: 0.7;
}

/* ===== Favoriten-Button (Mannschaftsseite) ===== */
.bball-suite-favorite-wrap {
  margin-bottom: 1rem;
}

.bball-suite-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #555;
  transition: border-color 0.2s, color 0.2s;
}

.bball-suite-favorite-btn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

.bball-suite-favorite-btn.is-favorite {
  border-color: #f59e0b;
  color: #f59e0b;
  background: #fffbeb;
}

.bball-suite-star {
  font-size: 1.1em;
  line-height: 1;
}

/* ===== Meine Teams (Profilseite) ===== */
.bball-suite-meine-teams {
  margin: 1.5rem 0;
}

.bball-suite-team-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.bball-suite-team-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.bball-suite-team-item:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* Header: Teamname + Stern nebeneinander */
.bball-suite-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  gap: 0.5rem;
}

.bball-suite-team-title-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.bball-suite-team-title-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bball-suite-team-header .bball-suite-favorite-btn {
  flex-shrink: 0;
}

/* Sektionen innerhalb der Karte */
.bball-suite-team-section {
  border-top: 1px solid #f0f0f0;
  padding: 0.6rem 0.9rem;
}

.bball-suite-section-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Score-Anzeige (letztes Ergebnis) */
.bball-suite-score {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bball-suite-score-team {
  font-size: 0.85rem;
  color: #374151;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bball-suite-score-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  flex-shrink: 0;
}

.bball-suite-score-date {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Nächstes Spiel */
.bball-suite-next-game {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bball-suite-vs {
  color: #9ca3af;
  flex-shrink: 0;
}

/* Mini-Tabelle in der Karte */
.bball-suite-card-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.bball-suite-card-table th,
.bball-suite-card-table td {
  padding: 0.25rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
}

.bball-suite-card-table th {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  border-bottom: 1px solid #e5e7eb;
}

.bball-suite-card-table td:nth-child(2) {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 8rem;
}

.bball-suite-card-table tr.bball-suite-highlight td {
  background: #fffbeb;
  font-weight: 600;
  color: #92400e;
}

.bball-suite-login-hint {
  padding: 1rem;
  background: #f3f4f6;
  border-radius: 8px;
}

/* ===== Standings (Tabelle) ===== */
.bball-suite-standings {
  overflow-x: auto;
  margin: 1rem 0;
}

.bball-suite-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bball-suite-standings-table th,
.bball-suite-standings-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.bball-suite-standings-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.bball-suite-standings-table td:nth-child(2) {
  text-align: left;
}

.bball-suite-standings-table tr.bball-suite-highlight td {
  background: #fffbeb;
  font-weight: 600;
  color: #92400e;
}
