/* ========================================
   LOBBY - Lobby et salle d'attente
   ======================================== */

.lobby-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
}

.lobby-container h1 {
  color: #667eea;
  text-align: center;
  margin-bottom: 30px;
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 20px;
}

.user-info span {
  font-weight: bold;
  color: #333;
}

.user-info button {
  padding: 8px 15px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.user-info button:hover {
  background: #c0392b;
}

.lobby-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-primary {
  padding: 15px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #5568d3;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.join-room {
  display: flex;
  gap: 10px;
}

.join-room input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  text-transform: uppercase;
}

.btn-secondary {
  flex: 1;
  padding: 12px;
  background: #95a5a6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

/* Waiting Room - Style original simple */
.waiting-room-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
}

.waiting-room-container h1 {
  color: #667eea;
  text-align: center;
  margin-bottom: 30px;
}

.room-code {
  background: #2c3e50;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
  border: 2px solid #34495e;
}

.room-code h3 {
  color: #ecf0f1;
  margin: 0 0 10px 0;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

.room-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.room-code-value {
  font-size: 28px;
  font-weight: bold;
  color: #ffd700;
  background: #1a252f;
  padding: 12px 25px;
  border-radius: 8px;
  letter-spacing: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.room-code-value:hover {
  background: #243442;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.room-code-value:active {
  transform: translateY(0);
}

.players-list {
  margin-bottom: 25px;
}

.players-list h3 {
  color: #2c3e50;
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #34495e;
}

.players-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.player-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #34495e;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
  color: #ecf0f1;
}

.player-item:hover {
  background: #2c3e50;
  transform: translateX(3px);
}

.player-item.ready {
  background: #27ae60;
  border-left: 4px solid #1e8449;
  color: white;
}

.player-item.ready:hover {
  background: #229954;
}

.player-name {
  flex: 1;
  font-weight: bold;
  color: #ecf0f1;
}

.host-badge {
  background: #ffd700;
  color: #333;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 10px;
}

.ready-badge {
  background: #27ae60;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* Configuration de la partie */
.game-settings {
  background: #34495e;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border: 2px solid #2c3e50;
}

.game-settings h3 {
  color: #ecf0f1;
  margin-bottom: 15px;
  margin-top: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.setting-item {
  display: flex;
  flex-direction: column;
}

.setting-item label {
  font-weight: bold;
  color: #ecf0f1;
  margin-bottom: 8px;
  font-size: 14px;
}

.setting-item input,
.setting-item select {
  padding: 10px;
  border: 1px solid #2c3e50;
  border-radius: 6px;
  font-size: 14px;
  background: #2c3e50;
  color: #ecf0f1;
}

.setting-item input:focus,
.setting-item select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

.map-selection {
  background: #34495e;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border: 2px solid #2c3e50;
}

.map-selection h3 {
  color: #ecf0f1;
  margin-bottom: 15px;
  margin-top: 0;
}

.map-selection select {
  width: 100%;
  padding: 10px;
  border: 1px solid #2c3e50;
  border-radius: 6px;
  font-size: 14px;
  background: #2c3e50;
  color: #ecf0f1;
  margin-bottom: 15px;
}

.map-selection select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

.map-selection select:disabled {
  background: #1a252f;
  color: #7f8c8d;
  cursor: not-allowed;
}

.map-info {
  background: #2c3e50;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #667eea;
}

.map-info p {
  margin: 5px 0;
  color: #ecf0f1;
}

.map-info p:first-child {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: #ffd700;
}

.room-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.room-actions button {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.room-actions .btn-primary {
  background: #667eea;
  color: white;
}

.room-actions .btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.room-actions .btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.room-actions .btn-secondary {
  background: #95a5a6;
  color: white;
}

.room-actions .btn-secondary:hover {
  background: #7f8c8d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4);
}
