/**
 * BloomWave - Theme Switcher Styles
 */

/* ===== SWITCHER CONTAINER ===== */
.theme-switcher {
  position: fixed;
  bottom: 160px;
  right: 24px;
  z-index: 9990;
}

/* ===== TOGGLE BUTTON ===== */
.ts-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, #e8327a), var(--secondary, #7c3aed));
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 6px 24px rgba(232, 50, 122, 0.4);
  transition: var(--transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.ts-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(232, 50, 122, 0.6);
}

/* ===== PANEL ===== */
.ts-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 280px;
  background: rgba(15, 15, 26, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}
.ts-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ===== PANEL HEADER ===== */
.ts-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ts-panel-close {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  padding: 4px 6px;
  border-radius: 8px;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.ts-panel-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== PANEL BODY ===== */
.ts-panel-body {
  padding: 12px;
  max-height: 320px;
  overflow-y: auto;
}
.ts-loading {
  text-align: center;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
}

/* ===== THEME ITEM ===== */
.ts-theme-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.ts-theme-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ts-theme-item.active {
  background: rgba(232, 50, 122, 0.15);
  border: 1px solid rgba(232, 50, 122, 0.3);
}

/* ===== THEME PREVIEW ===== */
.ts-theme-preview {
  width: 44px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.ts-theme-dots {
  display: flex;
  gap: 4px;
  position: absolute;
  bottom: 5px;
  left: 6px;
}
.ts-theme-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ===== THEME INFO ===== */
.ts-theme-info {
  flex: 1;
  min-width: 0;
}
.ts-theme-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-theme-desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ===== ACTIVE CHECKMARK ===== */
.ts-theme-item.active::after {
  content: '✓';
  color: var(--primary, #e8327a);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .theme-switcher {
    bottom: 140px;
    right: 16px;
  }
  .ts-panel {
    width: 260px;
    right: 0;
  }
}
