/* ===== ENHANCED THEME SWITCHER STYLES ===== */

/* Theme Switcher Container */
.style-switcher {
  position: fixed;
  right: -250px;
  top: 60px;
  padding: 20px;
  width: 250px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  z-index: 1001;
  border-radius: 15px 0 0 15px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.style-switcher.open {
  right: 0;
}

/* Enhanced Toggler Button */
.style-switcher-toggler {
  position: absolute;
  height: 50px;
  width: 50px;
  border: none;
  top: 20%;
  left: -50px;
  margin: auto;
  color: var(--primary-color);
  cursor: pointer;
  background: var(--bg-primary);
  border-radius: 15px 0 0 15px;
  border-right: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
}

.style-switcher-toggler:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(-5px);
}

.style-switcher-toggler i {
  transition: transform 0.3s ease;
}

/* Enhanced Day/Night Toggle */
.day-night {
  width: 50px;
  height: 30px;
  background: var(--border-color);
  border-radius: 25px;
  cursor: pointer;
  position: relative;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
}

.day-night:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.day-night i {
  font-size: 16px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.day-night:hover i {
  color: white;
}

/* Enhanced Color Options */
.style-switcher h4 {
  margin: 0 0 20px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  position: relative;
}

.style-switcher h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

.colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.colors span {
  display: inline-block;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
  opacity: 0.8;
}

.colors span:hover {
  opacity: 1;
  transform: scale(1.2) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.colors span.active {
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  border-color: var(--text-primary);
}

.colors span.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Theme Colors */
.color-1 { background-color: #2563eb; } /* Ocean Blue */
.color-2 { background-color: #ea580c; } /* Sunset Orange */
.color-3 { background-color: #16a34a; } /* Emerald Green */
.color-4 { background-color: #8b5cf6; } /* Royal Purple */
.color-5 { background-color: #ec4899; } /* Rose Pink */

/* Theme Feedback Toast */
.theme-feedback {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1002;
  transform: translateX(300px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.theme-feedback.show {
  transform: translateX(0);
  opacity: 1;
}

.theme-feedback::before {
  content: '🎨';
  margin-right: 8px;
}

/* Enhanced Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.style-switcher.open .colors span {
  animation: slideInRight 0.3s ease forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .style-switcher {
    width: 200px;
    right: -200px;
    top: 80px;
    padding: 15px;
  }
  
  .style-switcher-toggler {
    height: 45px;
    width: 45px;
    font-size: 16px;
  }
  
  .colors span {
    height: 30px;
    width: 30px;
  }
  
  .theme-feedback {
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 10px 16px;
  }
}

/* Dark Mode Specific Styles */
.dark .style-switcher {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dark .style-switcher-toggler {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.dark .day-night {
  background: var(--bg-primary);
  border-color: var(--primary-color);
}

.dark .colors span.active {
  border-color: var(--text-primary);
}

/* Smooth Transitions for All Theme Elements */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
