/* ============================================
   Detail Controls
   ============================================ */

.control-group {
  margin-bottom: var(--space-md);
}

.control-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.control-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* Generic control button */
.control-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.control-btn:hover:not(.unavailable) {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.control-btn.selected {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(218, 119, 86, 0.1);
}

.control-btn.unavailable {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Eye buttons — show the symbol larger */
.eye-btn {
  min-width: 2em;
  text-align: center;
  font-size: 0.85rem;
}

/* Rarity buttons — colored border */
.rarity-btn.selected {
  background: rgba(255, 255, 255, 0.05);
}

/* Hat buttons */
.hat-btn {
  font-size: 0.65rem;
}

/* ============================================
   Shiny Toggle Switch
   ============================================ */

.shiny-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.shiny-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.shiny-toggle input:focus-visible + .toggle-slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shiny-toggle input:checked + .toggle-slider {
  background: var(--accent-dim);
}

.shiny-toggle input:checked + .toggle-slider::before {
  transform: translateX(16px);
  background: var(--accent);
}

/* ============================================
   Mobile Controls
   ============================================ */

@media (max-width: 600px) {
  .control-label {
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
  }

  .control-group {
    margin-bottom: var(--space-lg);
  }

  .control-btn {
    font-size: 0.85rem;
    padding: 0.5em 0.8em;
    min-height: 40px;
  }

  .eye-btn {
    font-size: 1.1rem;
    min-width: 2.5em;
    min-height: 40px;
  }

  .hat-btn {
    font-size: 0.8rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .shiny-toggle {
    width: 48px;
    height: 26px;
  }

  .toggle-slider::before {
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
  }

  .shiny-toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
  }
}
