/* Buttons */
button,
.button {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 0.65rem 1.3rem;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

button:hover,
.button:hover {
  background-color: var(--color-accent-strong);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.button.secondary:hover {
  background: var(--color-border);
}

.button.danger {
  background-color: #e74c3c;
}
.button.danger:hover {
  background-color: #c0392b;
}

/* Input fields */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius);
  width: 100%;
}

input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Style für number inputs und radio buttons im Menü */
input[type="number"] {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 1rem;
  margin: 2px 0;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
  appearance: textfield; /* Entfernt die Browser-eigenen Pfeile in Chrome */
}

input[type="number"]:focus {
  border-color: var(--color-accent-strong);
}

input[type="radio"] {
  accent-color: var(--color-accent-strong);
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Optional: Entferne die Pfeile in number inputs für Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

/* Cards */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Messages */
.message {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-weight: bold;
  text-align: center;
  margin: 1rem 0;
}

.message.info {
  background-color: #2c3e50;
  color: #ecf0f1;
}

.message.success {
  background-color: #2ecc71;
  color: white;
}

.message.error {
  background-color: #e74c3c;
  color: white;
}

/* Badges (z. B. Status, Level) */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
  background: var(--color-muted);
}

/* Header-Navigation */
.enhanced-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.left-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--color-border);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-btn:hover {
  background: var(--color-accent);
  color: white;
}

.arena-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #a970ff, #7a44ff);
  color: white;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.arena-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
/* Search Bar */
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  margin-right: 10rem;
  flex-wrap: wrap;
}
.search-bar input {
  flex: 1;
  min-width: 240px;
  max-width: 400px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px 0 0 8px;
  background: var(--color-surface);
  color: var(--color-text);
}
.search-btn {
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}
.search-btn:hover {
  background: var(--color-accent-strong);
}

.user-header {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.user-name {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.user-rank {
  font-size: 1.1rem;
  color: var(--color-muted);
  font-weight: bold;
}

.user-elo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-skin {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.user-meta {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-top: 1rem;
}

.invest-tier {
  font-size: 3rem;
  font-weight: bold;
}

.user-ff {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
}

#profileContainer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 1rem; /* falls gewünscht */
}

#profileButton {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

#profileButton img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

#profileButton:hover {
  transform: scale(1.1);
}

/* Style für das Wetten-Menü selbst */
#match-menu {
  border: 2px solid var(--color-accent-strong);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Style für die Coin-Anzeige */
#match-menu .coin-info {
  color: var(--color-accent-strong);
  font-weight: bold;
}

.playoffs-btn {
  background: linear-gradient(90deg, var(--color-accent-strong) 0%, var(--color-accent) 100%);
  color: #191b3a;
  font-weight: bold;
  border: 2px solid var(--color-accent-strong);
  box-shadow: 0 2px 12px 0 var(--color-accent-strong);
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.playoffs-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 24px 0 var(--color-accent-strong);
  color: #fff;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
}
