/**
 * Fullscreen Game Styles - Styling for fullscreen game views
 * 
 * This file contains styles for fullscreen game layout including:
 * - Fullscreen container layout
 * - Floating game controls panel
 * - Form controls within the game bar
 * - Info button styling
 * 
 * This is used for more complex games that benefit from maximum screen space.
 */

/* Fullscreen game container */
.game-container,
#game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Fullscreen game board (overrides standard game board styles) */
#game-board {
  width: 100%;
  height: 100%;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* Floating game control panel for fullscreen mode */
#game-bar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 250px;
  padding: 0.5rem;
  font-size: 0.85rem;
  border-radius: 1rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  align-items: normal;
  display: flex;
  flex-direction: column;
}

/* Dark mode styling for game bar */
[data-bs-theme='dark'] #game-bar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Control groups with compact layout */
#game-bar .control-group {
  display: flex;
  gap: 0.25rem;
  min-width: 80px;
}

/* Vertical layout for range sliders */
#game-bar .control-group:has(.form-range) {
  flex-direction: column;
  gap: 0.25rem;
}

/* Horizontal layout for text inputs and selects */
#game-bar .control-group:has(.form-control),
#game-bar .control-group:has(.form-select) {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

/* Control labels in the game bar */
#game-bar label {
  font-size: 0.85rem;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
  color: var(--text-primary);
  min-width: auto;
  text-align: left;
}

/* Labels for horizontal layout (text inputs) */
#game-bar .control-group:has(.form-control) label,
#game-bar .control-group:has(.form-select) label {
  min-width: 70px;
  flex-shrink: 0;
}

/* Compact range sliders */
#game-bar .form-range {
  height: 0.5rem;
  margin: 0;
}

/* Compact form controls in the game bar */
#game-bar .form-control-sm,
#game-bar .form-select-sm {
  padding: 0.25rem 0.25rem;
  font-size: 0.875rem;
  text-align: left;
  flex-grow: 1;
}

/* Button groups for multiple control buttons */
#game-bar .button-group {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

#game-bar .button-group .btn {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

/* Information button styling */
.info-container {
  position: absolute;
  bottom: 10px;
  right: 10px;
  opacity: 0.6;
  transition: opacity var(--transition-standard);
  cursor: help;
}

.info-container svg {
  width: 14px;
  height: 14px;
}

/* Show info container more clearly on hover */
.info-container:hover {
  opacity: 1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  #game-bar {
    font-size: 0.65rem;
    padding: 0.25rem;
    gap: 0.25rem;
    width: 200px;
  }

  #game-bar .control-group {
    min-width: 60px;
  }

  #game-bar label {
    font-size: 0.6rem;
  }
}
