/* ========================================
   THEME TOGGLE - Mode Clair/Sombre
   ======================================== */

/* Variables Light Mode */
:root.light-mode {
  /* Dashboard */
  --dashboard-bg: #f8fafc;
  --dashboard-card: #ffffff;
  --dashboard-card-hover: #f1f5f9;
  --dashboard-text: #1e293b;
  --dashboard-text-muted: #64748b;
  --dashboard-primary: #3b82f6;
  --dashboard-primary-hover: #2563eb;
  --dashboard-accent: #8b5cf6;
  --dashboard-success: #10b981;
  --dashboard-danger: #ef4444;
  --dashboard-warning: #f59e0b;
  
  /* Navbar */
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --navbar-text: #1e293b;
  --navbar-text-muted: #64748b;
  --navbar-shadow: rgba(0, 0, 0, 0.1);
  
  /* Profiles */
  --profile-bg: #ffffff;
  --profile-border: #e2e8f0;
  --profile-text: #1e293b;
  --profile-shadow: rgba(0, 0, 0, 0.1);
}

/* Variables Dark Mode */
:root.dark-mode {
  /* Dashboard */
  --dashboard-bg: #0f172a;
  --dashboard-card: #1e293b;
  --dashboard-card-hover: #334155;
  --dashboard-text: #f1f5f9;
  --dashboard-text-muted: #94a3b8;
  --dashboard-primary: #3b82f6;
  --dashboard-primary-hover: #2563eb;
  --dashboard-accent: #8b5cf6;
  --dashboard-success: #10b981;
  --dashboard-danger: #ef4444;
  --dashboard-warning: #f59e0b;
  
  /* Navbar */
  --navbar-bg: rgba(15, 23, 42, 0.95);
  --navbar-text: #f1f5f9;
  --navbar-text-muted: #94a3b8;
  --navbar-shadow: rgba(0, 0, 0, 0.3);
  
  /* Profiles */
  --profile-bg: #1e293b;
  --profile-border: #334155;
  --profile-text: #f1f5f9;
  --profile-shadow: rgba(0, 0, 0, 0.3);
}

/* Light Mode - Dashboard Cards */
.light-mode .playlist-item {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.light-mode .playlist-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.light-mode .stat-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.light-mode .form-field input {
  background: #ffffff;
  border-color: #e2e8f0;
}

.light-mode .search-box input {
  background: #ffffff;
  border-color: #e2e8f0;
}

.light-mode .add-playlist-section {
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.light-mode .playlist-url {
  background: #f1f5f9;
}

/* Toggle Button */
.theme-toggle {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.2);
  color: var(--dashboard-text);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  max-width: 65px;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.light-mode .theme-toggle {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.light-mode .theme-toggle:hover {
  background: rgba(139, 92, 246, 0.2);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Navigation Light Mode */
.light-mode .navbar {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Profile Selection Light Mode */
.light-mode .profile-selection-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.light-mode .profile-selection-card {
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Animations du toggle */
@keyframes rotate-sun {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-moon {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.theme-toggle.animating .icon-sun {
  animation: rotate-sun 0.5s ease;
}

.theme-toggle.animating .icon-moon {
  animation: rotate-moon 0.5s ease;
}

/* Transition douce du thème */
body,
.playlist-container,
.navbar,
.playlist-item,
.stat-card,
.add-playlist-section,
.form-field input,
.search-box input {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Mode clair - Auth Container */
.light-mode .auth-container {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.light-mode .auth-container input {
  background: white;
  border-color: #e2e8f0;
  color: #1e293b;
}

/* Mode clair - Playlists 
.light-mode .playlists-grid {
  
Grille identique 
}*/

.light-mode .playlists-empty {
  background: white;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Mode clair - Subscription Banner */
.light-mode .subscription-banner {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Mode clair - Hero & Landing Pages */
.light-mode .hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.light-mode .features {
  background: #ffffff;
}

.light-mode .feature-card {
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.light-mode .pricing {
  background: #f8fafc;
}

.light-mode .pricing-card {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.light-mode .footer {
  background: #344765;
}

/* Mode clair - Auth Container */
.light-mode .auth-container {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.light-mode .auth-container input {
  background: white;
  border-color: #e2e8f0;
  color: #1e293b;
}

/* Mode sombre - Landing pages */
.dark-mode .features {
  background: #0f172a;
}

.dark-mode .feature-card {
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .pricing {
  background: #0f172a;
}

.dark-mode .pricing-card {
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.light-mode .contact-content {
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.light-mode .info-card {
  background: #f8fafc;
}

.light-mode .faq-item {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.light-mode .faq-question:hover {
  background: #f8fafc;
}

/* Navigation - Position du toggle */
.nav-container {
  position: relative;
}

.theme-toggle {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 968px) {
  .theme-toggle {
    padding: 8px 12px;
    font-size: 18px;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .nav-toggle {
    position: absolute;
    right: 0;
  }
}

