/* Container that stacks auth links above the icons */
.auth-links-and-theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Row of the two icons */
.theme-icon-switch {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

/* Icon appearance + subtle hover glow */
.theme-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.08s ease;
}

.theme-icon:hover {
  opacity: 0.8;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.35));
}

.theme-icon.active {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.55));
}

/* tiny press feedback */
.theme-icon:active {
  transform: scale(0.98);
}

/* New row below header */
.theme-switcher-container {
  display: flex;
  justify-content: flex-end;   /* right-align on desktop */
  padding: 6px 12px 0;
}

@media (max-width: 640px) {
  .theme-switcher-container {
    justify-content: flex-end; /* Keep right on mobile too */
    padding-top: 8px;
  }
}

/* The pill itself */
.theme-switcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--borders);
  backdrop-filter: saturate(120%) blur(2px);
}

/* Background reacts to theme */
.light-mode .theme-switcher-pill {
  background: rgba(0, 0, 0, 0.06);
}

.dark-mode .theme-switcher-pill {
  background: rgba(255, 255, 255, 0.06);
}

/* Size the PNGs */
.theme-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.08s ease;
}

.theme-icon:hover { opacity: 0.85; filter: drop-shadow(0 0 2px rgba(255,255,255,0.35)); }
.theme-icon.active { opacity: 1; filter: drop-shadow(0 0 4px rgba(255,255,255,0.55)); }
.theme-icon:active { transform: scale(0.98); }
