/**
 * ksp-theme.css
 * Theme Switcher Styles
 * カラーテーマ切り替えUI
 */

/* ===== Theme Switcher Container ===== */
.ksp-theme-switcher {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.ksp-theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid #52a9ff;
  border-radius: 50px;
  color: #52a9ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(82, 169, 255, 0.2);
}

.ksp-theme-toggle:hover {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  border-color: #00ff00;
  color: #00ff00;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(0, 255, 0, 0.3);
}

.ksp-theme-toggle i {
  font-size: 18px;
}

/* ===== Theme Menu ===== */
.ksp-theme-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.ksp-theme-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== Theme Options ===== */
.ksp-theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 15px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.ksp-theme-option:hover {
  background: #2a2a2a;
  border-color: #52a9ff;
  color: #52a9ff;
  transform: translateX(3px);
}

.ksp-theme-option.active {
  background: #2a2a2a;
  border-color: #00ff00;
  color: #00ff00;
}

.ksp-theme-option i {
  font-size: 16px;
}

/* ===== Theme Transition ===== */
body.ksp-theme-transitioning {
  transition: background 0.6s ease;
}

body.ksp-theme-transitioning * {
  transition: color 0.6s ease, background 0.6s ease, border-color 0.6s ease !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .ksp-theme-switcher {
    bottom: 20px;
    right: 20px;
  }

  .ksp-theme-toggle {
    padding: 10px 16px;
    font-size: 13px;
  }

  .ksp-theme-toggle span {
    display: none;
  }

  .ksp-theme-toggle i {
    font-size: 20px;
    margin: 0;
  }

  .ksp-theme-menu {
    right: auto;
    left: 0;
  }
}

/* ===== Floating Animation ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.ksp-theme-toggle {
  animation: float 3s ease-in-out infinite;
}

.ksp-theme-toggle:hover {
  animation: none;
}
