/* Team Selection Component Styles */

.team-selection-container {
  background-color: rgba(20, 20, 20, 0.95);
  border-radius: var(--border-radius);
  text-align: center;
  color: var(--light-color);
  width: 100%;
  height: 100vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(20px + var(--sat)) 20px calc(20px + var(--sab));
  position: relative;
  overflow: hidden;
}

.team-selection-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  animation: menuGlow 2s linear infinite;
}

.team-selection-header {
  margin-bottom: 40px;
  text-align: center;
}

.team-selection-header h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: var(--light-color);
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.team-selection-subtitle {
  font-size: 16px;
  color: #aaa;
  letter-spacing: 1px;
}

.teams-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 800px;
  width: 100%;
}

.team-card {
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: var(--border-radius);
  padding: 25px;
  width: 280px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.team-card:hover .team-color {
  transform: scale(1.1);
}

.team-color {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
  position: relative;
}

.team-color::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: inherit;
  filter: blur(15px);
  opacity: 0.5;
  z-index: -1;
}

.team-info {
  text-align: center;
}

.team-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.team-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-label {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-count, .team-score {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
}

.team-score {
  color: #FFD700; /* Gold color for score */
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.team-card.selected {
  border: 2px solid var(--accent-color);
  transform: scale(1.05);
  background-color: rgba(40, 40, 40, 0.8);
}

.team-card.selected .team-color {
  box-shadow: 0 0 30px rgba(231, 76, 60, 0.5);
}

/* Disabled state for team cards (guest mode and restrictions) */
.team-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.3);
  cursor: default;
  transition: none !important;
  transform: none !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Ensure no child transitions/animations on disabled */
.team-card.disabled * {
  transition: none !important;
}

/* Neutralize hover/active/selected visual states when disabled */
.team-card.disabled:hover,
.team-card.disabled:active {
  transform: none !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.team-card.disabled .team-color,
.team-card.disabled:hover .team-color {
  transform: none !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2) !important;
}

/* If card is both disabled and selected, keep it looking disabled */
.team-card.disabled.selected {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transform: none !important;
  background-color: rgba(30, 30, 30, 0.7) !important;
}

.team-card.disabled.selected .team-color {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2) !important;
}

.team-card[data-team-id="1"] .team-color {
  background: linear-gradient(135deg, #0066ff, #003399);
}

.team-card[data-team-id="2"] .team-color {
  background: linear-gradient(135deg, #ff3333, #990000);
}

/* Share container styles */
.share-container {
  margin-top: 30px;
  padding: 20px;
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 400px;
  width: 100%;
}

.share-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--light-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.copy-button, .telegram-button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: var(--accent-color);
  color: var(--light-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.telegram-button {
  background-color: #0088cc;
}

.copy-button:hover, .telegram-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copy-button:active, .telegram-button:active {
  transform: translateY(0);
}

.copy-success {
  color: #4CAF50;
  font-size: 14px;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-success.show {
  opacity: 1;
} 

/* Guest mode UI */
.guest-mode {
  margin-top: 24px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.guest-text {
  color: #ddd;
  font-size: 16px;
}

.guest-enter-container {
  width: 100%;
}

/* Make Enter Game button white variant when used here */
/* White button variant for guest CTA */
.tez-button.white {
  background-color: #ffffff;
  color: #111111;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}
.tez-button-container:not(.disabled):hover .tez-button.white {
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}