/* ==========================================================================
   Interactive Live Theme Switcher Widget Styling
   ========================================================================== */

.hr-theme-switcher-toggle,
.hr-theme-switcher-panel {
  display: none !important;
}

.hr-theme-switcher-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--hr-primary-brand);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), var(--hr-glow-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hr-theme-switcher-toggle:hover {
  transform: scale(1.1) rotate(45deg);
  background: var(--hr-primary-hover);
}

.hr-theme-switcher-panel {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 320px;
  max-height: 480px;
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  padding: 20px;
  z-index: 9998;
  display: none;
  flex-direction: column;
  color: #ffffff;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.hr-theme-switcher-panel.active {
  display: flex;
  animation: panelSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelSlideUp {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hr-theme-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hr-theme-switcher-title {
  font-family: var(--hr-font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hr-theme-switcher-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.hr-theme-switcher-close:hover {
  color: #ffffff;
}

.hr-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hr-theme-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hr-theme-swatch:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hr-theme-swatch.active {
  border-color: var(--hr-primary-brand);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 12px rgba(var(--hr-primary-rgb), 0.5);
}

.hr-swatch-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.hr-swatch-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
