/* Theme Toggle Button Styles */

/* Theme toggle container */
.theme-toggle-container {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 999;
}

/* Toggle button */
.theme-toggle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 5px 15px var(--card-shadow-hover);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.theme-toggle:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--card-shadow-hover);
}

.theme-toggle:active {
  transform: translateY(-2px);
}

.theme-toggle:focus {
  outline: none;
}

/* Toggle icons */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--off-white);
  transition: opacity 0.3s ease, transform 0.5s ease;
}

/* Icon positioning for different themes */
[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 0;
  transform: translateY(20px);
}

[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: translateY(-20px);
}

[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Transition for theme change */
.theme-transition {
  transition: var(--theme-transition);
}

/* Responsive styles for small screens */
@media screen and (max-width: 768px) {
  .theme-toggle-container {
    bottom: 2rem;
    right: 2rem;
  }

  .theme-toggle {
    width: 4.5rem;
    height: 4.5rem;
  }

  .theme-toggle .sun-icon,
  .theme-toggle .moon-icon {
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media screen and (max-width: 576px) {
  .theme-toggle-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .theme-toggle {
    width: 4rem;
    height: 4rem;
  }

  .theme-toggle .sun-icon,
  .theme-toggle .moon-icon {
    width: 2rem;
    height: 2rem;
  }
}
