/* Mode Switch Styles */
:root {
  --switch-width: 60px;
  --switch-height: 30px;
  --switch-padding: 3px;
  --switch-animation-duration: 0.4s;
}

/* Mode Switch Container */
.mode-switch-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(22, 25, 34, 0.8);
  -webkit-backdrop-filter: var(--glass-backdrop-filter);
  backdrop-filter: var(--glass-backdrop-filter);
  border-radius: 30px;
  padding: 10px 20px;
  box-shadow: var(--elevation-2);
  border: 1px solid rgba(138, 99, 210, 0.2);
  z-index: var(--z-above);
  transition: all 0.3s ease;
}

.mode-switch-container:hover {
  box-shadow: var(--elevation-3);
  border-color: rgba(138, 99, 210, 0.4);
}

/* Mode Labels */
.mode-label {
  font-size: var(--font-size-sm);
  color: var(--light-gray-1);
  cursor: pointer;
  transition: color 0.3s ease;
}

.mode-label.active {
  color: var(--accent);
  font-weight: var(--font-weight-medium);
}

/* Switch Control */
.switch {
  position: relative;
  display: inline-block;
  width: var(--switch-width);
  height: var(--switch-height);
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(45, 27, 78, 0.5);
  transition: var(--switch-animation-duration);
  border-radius: var(--switch-height);
  border: 1px solid rgba(138, 99, 210, 0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: calc(var(--switch-height) - 2 * var(--switch-padding));
  width: calc(var(--switch-height) - 2 * var(--switch-padding));
  left: var(--switch-padding);
  bottom: var(--switch-padding);
  background-color: var(--white);
  transition: var(--switch-animation-duration);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  transform: translateX(calc(var(--switch-width) - var(--switch-height)));
}

/* Icons inside the slider */
.slider .landing-icon,
.slider .full-site-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: var(--switch-animation-duration);
}

.slider .landing-icon {
  left: calc(var(--switch-padding) + 2px);
  color: var(--accent);
  opacity: 0;
}

.slider .full-site-icon {
  right: calc(var(--switch-padding) + 2px);
  color: var(--white);
  opacity: 1;
}

input:checked + .slider .landing-icon {
  opacity: 1;
}

input:checked + .slider .full-site-icon {
  opacity: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .mode-switch-container {
    bottom: 70px;
    padding: 8px 15px;
  }

  .mode-label {
    font-size: 12px;
  }

  :root {
    --switch-width: 50px;
    --switch-height: 26px;
  }
}

@media (max-width: 480px) {
  .mode-switch-container {
    bottom: 60px;
    padding: 6px 12px;
  }

  .mode-label {
    display: none;
  }

  :root {
    --switch-width: 44px;
    --switch-height: 22px;
  }
}
