/* ===========================================================================
   urbanna — botão de toggle tema claro/escuro
   Estilos apenas para o botão e controle de visibilidade de ícones
   =========================================================================== */

/* ========== BOTÃO DE TOGGLE ========== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--panel);
  border-radius: 50%;
  cursor: pointer;
  color: var(--paper);
  font-size: 18px;
  transition: all 0.3s ease;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
  position: relative;
}

.theme-toggle:hover {
  background: var(--panel-2);
  transform: scale(1.08);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle .icon-sun {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-toggle .icon-moon {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Quando está em modo claro, mostra o ícone do sol e esconde a lua */
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
  opacity: 1;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
  opacity: 0;
}

/* ========== MODO REDUZIDO ========== */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle .icon-sun,
  .theme-toggle .icon-moon {
    transition: none;
  }
}
