/* ============================================================
   Westwind Games — Spielothek-Styles (ergänzt css/style.css)
   ============================================================ */

/* ---------- Filter-Tabs ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 34px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #e8ecf5);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.filter-btn:hover { transform: translateY(-1px); border-color: rgba(79, 140, 255, 0.6); }
.filter-btn.is-active {
  background: linear-gradient(135deg, #4f8cff, #a259ff);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

/* ---------- Spiele-Grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.game-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e1729;
  overflow: hidden;
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.game-card:hover .game-card__media img { transform: scale(1.04); }
.game-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #38e1c6, #4f8cff);
  color: #06281d;
}
.game-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
  flex: 1;
}
.game-card__title { font-size: 1.12rem; margin: 0; }
.game-card__text { font-size: 0.92rem; color: var(--text-muted, #9aa6bd); margin: 0; flex: 1; }
.game-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.game-tag {
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted, #9aa6bd);
}
.game-card__actions { margin-top: 4px; }

/* Leermeldung, falls ein Filter keine Treffer hat */
.games-empty {
  text-align: center;
  color: var(--text-muted, #9aa6bd);
  padding: 40px 0;
  display: none;
}

/* ---------- Spielseite (Detail) ---------- */
.play-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.play-head__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.game-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 9 / 13;
  max-height: 78vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #0b1220;
}
.game-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.play-info {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--text-muted, #9aa6bd);
  font-size: 0.95rem;
  line-height: 1.7;
}
.play-info strong { color: var(--text, #e8ecf5); }

/* ---------- Spielerkonto ---------- */
.konto-wrap { max-width: 480px; }
/* Passwort-Felder wie die übrigen Eingabefelder der Website stylen */
.form-field input[type="password"] {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--text, #e8ecf5);
  background: rgba(7, 11, 22, 0.6);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.konto-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.konto-form { display: flex; flex-direction: column; gap: 16px; }
.konto-hint { font-size: 0.78rem; color: var(--text-muted, #9aa6bd); margin: 4px 0 0; }
.konto-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.konto-danger {
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-muted, #9aa6bd);
  font-size: 0.92rem;
}
.konto-danger summary { cursor: pointer; color: #f87171; font-weight: 600; }
.konto-danger form { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Rangliste ---------- */
.rangliste-box {
  max-width: 720px;
  margin: 26px auto 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
}
.rangliste-box h2 { font-size: 1.15rem; margin: 0 0 14px; }
.rangliste { list-style: none; margin: 0; padding: 0; }
.rangliste li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}
.rangliste li:last-child { border-bottom: 0; }
.rangliste .platz { width: 34px; font-weight: 700; color: var(--text-muted, #9aa6bd); }
.rangliste li:nth-child(1) .platz { color: #fbbf24; }
.rangliste li:nth-child(2) .platz { color: #cbd5e1; }
.rangliste li:nth-child(3) .platz { color: #d97706; }
.rangliste .spieler { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rangliste .punkte { font-weight: 700; color: #38e1c6; font-variant-numeric: tabular-nums; }
.rangliste-hinweis { font-size: 0.85rem; color: var(--text-muted, #9aa6bd); margin: 12px 0 0; }
.rangliste-hinweis a { color: #7cc4ff; }

@media (max-width: 640px) {
  .game-frame-wrap { aspect-ratio: 9 / 14; border-radius: 12px; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.88rem; }
}
