/* ===================================
   EXTENDED THEME SYSTEM
   Six premium themes with smooth transitions
   =================================== */

/* Cyberpunk Theme */
[data-theme="cyberpunk"] {
  --bg: #0a0e27;
  --bg-secondary: #1a1f3a;
  --panel: rgba(255, 0, 255, 0.05);
  --panel-hover: rgba(255, 0, 255, 0.1);
  --accent: #ff00ff;
  --accent-secondary: #00ffff;
  --accent-dim: rgba(255, 0, 255, 0.3);
  --text: #e0e0ff;
  --text-muted: #8888cc;
  --border: rgba(255, 0, 255, 0.2);
  --glow: 0 0 20px rgba(255, 0, 255, 0.4);
  --glow-strong: 0 0 30px rgba(255, 0, 255, 0.7);
  --shadow: 0 4px 20px rgba(255, 0, 255, 0.3);
}

/* Pastel Theme */
[data-theme="pastel"] {
  --bg: #fef6fb;
  --bg-secondary: #fff5fc;
  --panel: rgba(255, 182, 193, 0.1);
  --panel-hover: rgba(255, 182, 193, 0.2);
  --accent: #ff6b9d;
  --accent-dim: rgba(255, 107, 157, 0.3);
  --text: #2d2d2d;
  --text-muted: #6d6d6d;
  --border: rgba(255, 182, 193, 0.3);
  --glow: 0 0 20px rgba(255, 107, 157, 0.2);
  --glow-strong: 0 0 30px rgba(255, 107, 157, 0.4);
  --shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
}

/* Sunset Theme */
[data-theme="sunset"] {
  --bg: #1a1423;
  --bg-secondary: #2a1f33;
  --panel: rgba(255, 115, 0, 0.05);
  --panel-hover: rgba(255, 115, 0, 0.1);
  --accent: #ff7300;
  --accent-dim: rgba(255, 115, 0, 0.3);
  --text: #ffd4a3;
  --text-muted: #b8956a;
  --border: rgba(255, 115, 0, 0.2);
  --glow: 0 0 20px rgba(255, 115, 0, 0.3);
  --glow-strong: 0 0 30px rgba(255, 115, 0, 0.6);
  --shadow: 0 4px 20px rgba(255, 115, 0, 0.2);
}

/* Ocean Theme */
[data-theme="ocean"] {
  --bg: #0c1821;
  --bg-secondary: #1b2838;
  --panel: rgba(64, 224, 208, 0.05);
  --panel-hover: rgba(64, 224, 208, 0.1);
  --accent: #40e0d0;
  --accent-dim: rgba(64, 224, 208, 0.3);
  --text: #e0f4f4;
  --text-muted: #7eb3b3;
  --border: rgba(64, 224, 208, 0.2);
  --glow: 0 0 20px rgba(64, 224, 208, 0.3);
  --glow-strong: 0 0 30px rgba(64, 224, 208, 0.6);
  --shadow: 0 4px 20px rgba(64, 224, 208, 0.2);
}

/* Forest Theme */
[data-theme="forest"] {
  --bg: #0d1b0d;
  --bg-secondary: #1a2e1a;
  --panel: rgba(76, 175, 80, 0.05);
  --panel-hover: rgba(76, 175, 80, 0.1);
  --accent: #4caf50;
  --accent-dim: rgba(76, 175, 80, 0.3);
  --text: #d4e8d4;
  --text-muted: #7ea87e;
  --border: rgba(76, 175, 80, 0.2);
  --glow: 0 0 20px rgba(76, 175, 80, 0.3);
  --glow-strong: 0 0 30px rgba(76, 175, 80, 0.6);
  --shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
}

/* Smooth theme transitions */
:root,
[data-theme] {
  transition: background-color 0.5s ease, color 0.5s ease;
}

* {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Preserve specific transitions */
.btn,
.project-card,
.skill-chip,
.contact-method,
.timeline-content {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme switcher enhancements */
.theme-switcher {
  gap: 0.75rem;
  padding: 0.75rem;
}

.theme-btn {
  position: relative;
  overflow: hidden;
}

.theme-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.theme-btn.active::before {
  opacity: 0.2;
}

/* Auto theme switching indicator */
.theme-auto-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: var(--glow);
  animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}
