/* ====== MULTIPLAYER STYLES ====== */

/* Multiplayer section in settings */
#multiplayerSection {
  margin-top: 16px;
  padding-top: 16px;
}

.multiplayer-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

.multiplayer-buttons {
  display: flex;
  gap: 8px;
}

.multiplayer-buttons button {
  flex: 1;
}

/* Room status display */
.room-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.room-code {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  transition: color 0.15s ease;
  user-select: none;
}

.room-code:hover {
  color: var(--text-primary);
}

.room-code:active {
  color: var(--accent);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
}

.player-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

#playerCount {
  font-weight: 600;
  color: var(--text-primary);
}

/* Join input group */
.join-input-group {
  display: none;
  gap: 4px;
  align-items: center;
}

.join-input-group input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 1px;
  max-width: 100px;
}

.join-input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.1);
}

.join-input-group button {
  padding: 6px 10px;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .multiplayer-buttons {
    flex-direction: column;
  }
  
  .room-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .player-info {
    align-self: stretch;
    justify-content: space-between;
  }
}

/* Small buttons */
.btn-xs {
  padding: 4px 10px;
  font-size: 0.8rem;
  min-height: 28px;
}

/* Leave room button styling */
#leaveRoomBtn {
  background: #e0e0e0;
  color: var(--text-primary);
  margin-left: 8px;
}

#leaveRoomBtn:hover {
  background: #d4d4d4;
}

/* Disabled state for multiplayer buttons */
.multiplayer-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.multiplayer-buttons button:disabled:hover {
  transform: none;
  background: var(--accent);
}

/* Settings section small */
.settings-section-small {
  margin-bottom: 24px;
  padding-bottom: 12px;
}

.settings-section-small:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}