/* ═══════════════════════════════════════════════════════════════════════════
   MES CRÉATIONS - Dashboard Personnel 2025
   Design: Glassmorphism, Neon Glow, Progressive Disclosure

   Trends intégrés:
   - Glassmorphism avec blur multicouche
   - Gradients animés et orbes flottants
   - Neon glow sur hover avec couleurs vives
   - Micro-animations et transitions fluides
   - Cards avec depth effect et parallax
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   SEGMENTED CONTROL 2025 - Design Moderne Triple Onglets
   ─────────────────────────────────────────────────────────────────────────────
   Trends: Pill-shape, Smooth Transitions, Subtle Glow, Unified Badge Style
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container Principal - Fond glassmorphism subtil */
.mode-toggle-hero {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.mode-toggle-triple .toggle-container-triple {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px;
  background: linear-gradient(135deg,
    rgba(30, 32, 45, 0.9) 0%,
    rgba(20, 22, 35, 0.95) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Slider Actif - La pilule qui glisse */
/* Calcul: (100% - 10px padding - 10px dividers) / 3 = 33.33% - ~6.67px */
.mode-toggle-triple .toggle-slider-triple {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(33.333% - 7px);
  height: calc(100% - 10px);
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.9) 0%,
    rgba(139, 92, 246, 0.85) 100%
  );
  border-radius: 12px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.15, 1);
  z-index: 0;
  box-shadow:
    0 2px 12px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Position centre (Nouveau thème) - ajoute espace pour le divider (5px) */
.mode-toggle-triple .toggle-slider-triple.pos-center {
  transform: translateX(calc(100% + 5px));
}

/* Position droite (Mes créations) - ajoute espace pour 2 dividers (10px) */
.mode-toggle-triple .toggle-slider-triple.pos-right {
  transform: translateX(calc(200% + 10px));
}

/* Boutons Individuels - Même largeur pour tous (flex: 1) */
.mode-toggle-triple .toggle-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.mode-toggle-triple .toggle-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
}

/* Icon Wrapper - Simplifié */
.mode-toggle-triple .toggle-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-toggle-triple .toggle-icon {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.mode-toggle-triple .toggle-btn:hover .toggle-icon {
  transform: scale(1.1);
}

.mode-toggle-triple .toggle-btn.active .toggle-icon {
  transform: scale(1.15);
}

/* Cacher le glow séparé - plus nécessaire */
.mode-toggle-triple .toggle-glow,
.mode-toggle-triple .toggle-glow.creations-glow {
  display: none;
}

/* Texte des boutons */
.mode-toggle-triple .toggle-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
  letter-spacing: 0.01em;
}

.mode-toggle-triple .toggle-btn:hover:not(.active) .toggle-text {
  color: rgba(255, 255, 255, 0.75);
}

.mode-toggle-triple .toggle-btn.active .toggle-text {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Badge Unifié - Style cohérent pour tous */
.mode-toggle-triple .toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.25s ease;
}

/* Badge inactif - discret */
.mode-toggle-triple .toggle-btn:not(.active) .toggle-badge {
  background: rgba(99, 102, 241, 0.2);
  color: rgba(165, 180, 252, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Badge actif - visible mais pas flashy */
.mode-toggle-triple .toggle-btn.active .toggle-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 6px rgba(255, 255, 255, 0.15);
}

/* Creations badge - même style unifié, pas d'orange */
.mode-toggle-triple .toggle-badge.creations-badge {
  /* Hérite du style standard - plus de orange flashy */
}

/* ═══════════════════════════════════════════════════════════════════════════
   EFFETS PREMIUM - Hover Glow, Animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* Effet glow subtil au hover sur container */
.mode-toggle-triple .toggle-container-triple:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(99, 102, 241, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Animation pulse subtile sur le slider */
@keyframes sliderPulse {
  0%, 100% {
    box-shadow:
      0 2px 12px rgba(99, 102, 241, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow:
      0 2px 16px rgba(99, 102, 241, 0.55),
      0 0 8px rgba(139, 92, 246, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.mode-toggle-triple .toggle-slider-triple {
  animation: sliderPulse 3s ease-in-out infinite;
}

/* Effet ripple au click */
.mode-toggle-triple .toggle-btn:active {
  transform: scale(0.98);
}

/* Effet hover avec underline animé */
.mode-toggle-triple .toggle-btn::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(99, 102, 241, 0.5),
    rgba(139, 92, 246, 0.5)
  );
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.mode-toggle-triple .toggle-btn:hover:not(.active)::after {
  width: 40%;
}

/* Transition fluide pour changement d'onglet */
.mode-toggle-triple .toggle-btn * {
  transition: all 0.25s ease;
}

/* Dividers - Lignes subtiles (taille fixe pour calculs slider) */
.mode-toggle-triple .toggle-divider {
  display: flex;
  flex: 0 0 5px;
  align-items: center;
  justify-content: center;
  width: 5px;
  height: 24px;
  margin: 0;
}

.mode-toggle-triple .divider-dot {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.1) 70%,
    transparent 100%
  );
  border-radius: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - Mobile First
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablettes et petits écrans */
@media (max-width: 900px) {
  .mode-toggle-triple .toggle-btn {
    min-width: 120px;
    padding: 0.6rem 0.8rem;
  }

  .mode-toggle-triple .toggle-text {
    font-size: 0.8rem;
  }
}

/* Mobile - Layout vertical */
@media (max-width: 700px) {
  .mode-toggle-hero {
    padding: 0.25rem 0;
  }

  .mode-toggle-triple .toggle-container-triple {
    flex-direction: column;
    gap: 0;
    padding: 6px;
    width: 100%;
    max-width: 320px;
  }

  .mode-toggle-triple .toggle-btn {
    width: 100%;
    min-width: auto;
    padding: 0.7rem 1rem;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .mode-toggle-triple .toggle-badge {
    margin-left: auto;
  }

  /* Slider vertical */
  .mode-toggle-triple .toggle-slider-triple {
    width: calc(100% - 12px);
    height: calc(33.333% - 4px);
    left: 6px;
    top: 6px;
    transform: none;
  }

  .mode-toggle-triple .toggle-slider-triple.pos-center {
    transform: translateY(100%);
  }

  .mode-toggle-triple .toggle-slider-triple.pos-right {
    transform: translateY(200%);
  }

  /* Cacher les dividers en mobile */
  .mode-toggle-triple .toggle-divider {
    display: none;
  }
}

/* Très petits écrans */
@media (max-width: 400px) {
  .mode-toggle-triple .toggle-container-triple {
    max-width: 280px;
  }

  .mode-toggle-triple .toggle-text {
    font-size: 0.78rem;
  }

  .mode-toggle-triple .toggle-icon {
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT MODE - Adaptation pour thème clair
   ═══════════════════════════════════════════════════════════════════════════ */

.light-mode .mode-toggle-triple .toggle-container-triple {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .mode-toggle-triple .toggle-slider-triple {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 1) 0%,
    rgba(139, 92, 246, 0.95) 100%
  );
  box-shadow:
    0 2px 12px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.light-mode .mode-toggle-triple .toggle-text {
  color: rgba(30, 41, 59, 0.6);
}

.light-mode .mode-toggle-triple .toggle-btn:hover:not(.active) .toggle-text {
  color: rgba(30, 41, 59, 0.85);
}

.light-mode .mode-toggle-triple .toggle-btn.active .toggle-text {
  color: #ffffff;
}

.light-mode .mode-toggle-triple .toggle-btn:not(.active) .toggle-badge {
  background: rgba(99, 102, 241, 0.1);
  color: rgba(99, 102, 241, 0.85);
  border-color: rgba(99, 102, 241, 0.2);
}

.light-mode .mode-toggle-triple .toggle-btn.active .toggle-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.light-mode .mode-toggle-triple .divider-dot {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.15) 30%,
    rgba(99, 102, 241, 0.2) 50%,
    rgba(99, 102, 241, 0.15) 70%,
    transparent 100%
  );
}

.light-mode .mode-toggle-triple .toggle-btn::after {
  background: linear-gradient(90deg,
    rgba(99, 102, 241, 0.4),
    rgba(139, 92, 246, 0.4)
  );
}

/* Animation pulse adaptée au light mode */
@keyframes sliderPulseLight {
  0%, 100% {
    box-shadow:
      0 2px 12px rgba(99, 102, 241, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 2px 18px rgba(99, 102, 241, 0.45),
      0 0 10px rgba(139, 92, 246, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.light-mode .mode-toggle-triple .toggle-slider-triple {
  animation: sliderPulseLight 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO BANNER - Glassmorphism avec orbes animés
   ═══════════════════════════════════════════════════════════════════════════ */

.creations-mode-content {
  animation: fadeInUp 0.5s ease-out;
}

.creations-hero-banner {
  position: relative;
  padding: 2rem;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: linear-gradient(135deg,
    rgba(88, 101, 242, 0.15) 0%,
    rgba(124, 58, 237, 0.1) 50%,
    rgba(236, 72, 153, 0.1) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Effets de fond animés */
.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.gradient-orb.orb-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #5865F2 0%, #7c3aed 100%);
  top: -100px;
  left: -50px;
  animation-delay: 0s;
}

.gradient-orb.orb-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  top: -50px;
  right: -100px;
  animation-delay: 2s;
}

.gradient-orb.orb-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  bottom: -80px;
  left: 30%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10px, -20px) scale(1.05); }
  50% { transform: translate(-15px, 10px) scale(0.95); }
  75% { transform: translate(20px, 15px) scale(1.02); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Contenu du hero */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.hero-main-icon {
  font-size: 2rem;
}

.icon-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 2px solid rgba(245, 158, 11, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hero-text .hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 0.25rem 0;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .hero-subtitle {
  margin: 0;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  font-size: 0.95rem;
}

/* Stats Cards Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-glass-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.stat-icon-bg {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5865F2 0%, #7c3aed 100%);
  border-radius: 12px;
  font-size: 1.25rem;
}

.stat-icon-bg.published { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-icon-bg.drafts { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.stat-icon-bg.downloads { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary, rgba(255,255,255,0.6));
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATE - Illustration animée
   ═══════════════════════════════════════════════════════════════════════════ */

.empty-creations-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.empty-visual {
  margin-bottom: 1.5rem;
}

.empty-canvas {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brush-animation {
  position: relative;
}

.brush-animation .brush {
  font-size: 4rem;
  animation: brush-stroke 3s ease-in-out infinite;
}

@keyframes brush-stroke {
  0%, 100% { transform: rotate(-15deg) translateX(-10px); }
  50% { transform: rotate(15deg) translateX(10px); }
}

.brush-trail {
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #f59e0b, #ec4899, transparent);
  border-radius: 4px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: trail-fade 3s ease-in-out infinite;
}

@keyframes trail-fade {
  0%, 100% { opacity: 0; width: 0; }
  50% { opacity: 1; width: 80px; }
}

.sparkles {
  position: absolute;
  inset: 0;
}

.sparkles .sparkle {
  position: absolute;
  animation: sparkle-pop 2s ease-in-out infinite;
  animation-delay: var(--delay);
}

.sparkles .sparkle:nth-child(1) { top: 10%; left: 20%; }
.sparkles .sparkle:nth-child(2) { top: 5%; right: 25%; }
.sparkles .sparkle:nth-child(3) { top: 30%; left: 5%; }
.sparkles .sparkle:nth-child(4) { top: 25%; right: 10%; }
.sparkles .sparkle:nth-child(5) { bottom: 20%; left: 15%; }
.sparkles .sparkle:nth-child(6) { bottom: 15%; right: 20%; }
.sparkles .sparkle:nth-child(7) { top: 50%; left: 0%; }
.sparkles .sparkle:nth-child(8) { top: 45%; right: 5%; }

@keyframes sparkle-pop {
  0%, 100% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 0.5rem 0;
}

.empty-desc {
  color: var(--text-secondary, rgba(255,255,255,0.6));
  margin: 0 0 1.5rem 0;
}

.btn-create-first {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-create-first:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

.btn-create-first .btn-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #f59e0b, #f97316, #ec4899);
  border-radius: 14px;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-create-first:hover .btn-glow {
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOOLBAR - Filtres et options
   ═══════════════════════════════════════════════════════════════════════════ */

.creations-grid-section {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.creations-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #fff);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--primary, #5865F2) 0%, #7c3aed 100%);
  border-color: transparent;
  color: white;
}

.chip-icon {
  font-size: 0.9rem;
}

.chip-count {
  padding: 0.125rem 0.375rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-select {
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary, #fff);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.sort-select option {
  background: var(--bg-primary, #1a1b1e);
  color: var(--text-primary, #fff);
}

.btn-view-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #fff);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS MASONRY GRID - Design 2025 avec glow
   ═══════════════════════════════════════════════════════════════════════════ */

.creations-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.creation-card-2025 {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: card-appear 0.5s ease-out backwards;
  animation-delay: calc(var(--card-index, 0) * 0.08s);
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.creation-card-2025:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-6px);
}

.creation-card-2025:hover .card-glow {
  opacity: 1;
}

/* Glow Effect */
.card-glow {
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg,
    rgba(245, 158, 11, 0.2) 0%,
    rgba(236, 72, 153, 0.2) 50%,
    rgba(88, 101, 242, 0.2) 100%
  );
  border-radius: 21px;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* Card Header */
.creation-card-2025 .card-header {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creation-card-2025 .card-header .header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

/* Status Badges */
.status-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.status-badges .badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.badge-draft {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-public {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-private {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.badge-featured {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(249, 115, 22, 0.9));
  color: white;
  border: none;
}

.badge-fork {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Theme Icon */
.theme-icon-large {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  font-size: 2rem;
  backdrop-filter: blur(10px);
  z-index: 1;
}

/* Quick Stats */
.quick-stats {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}

.qs-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
}

.qs-icon {
  font-size: 0.8rem;
}

.qs-val {
  color: white;
  font-weight: 600;
}

/* Card Body */
.creation-card-2025 .card-body {
  padding: 1.25rem;
}

/* Title Row with ID Badge */
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Theme ID Badge - Modern Code Style (Cliquable - Copie l'ID) */
.theme-id-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.18) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: #a78bfa;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.theme-id-badge:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.38) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

.theme-id-badge:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.theme-id-badge .id-hash {
  color: rgba(167, 139, 250, 0.5);
  margin-right: 2px;
  font-weight: 400;
}

.card-desc {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  line-height: 1.5;
}

/* Content Stats */
.content-stats {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.cs-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.8rem;
}

.cs-icon {
  font-size: 0.85rem;
}

.cs-val {
  color: var(--text-primary, #fff);
  font-weight: 600;
}

/* Card Meta */
.card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted, rgba(255,255,255,0.4));
}

.meta-date, .meta-updated {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag-chip {
  padding: 0.25rem 0.5rem;
  background: rgba(88, 101, 242, 0.15);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--primary, #5865F2);
  font-weight: 500;
}

.tag-more {
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-muted, rgba(255,255,255,0.4));
}

/* Card Actions - Premium Design */
.card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-height: 56px;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.action-btn:hover::before {
  opacity: 1;
}

.action-btn .btn-icon {
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover .btn-icon {
  transform: scale(1.15);
}

.action-btn .btn-text {
  line-height: 1.2;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Modifier - Glass Style */
.action-edit {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.action-edit:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Déployer - Emerald Glow */
.action-deploy {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  color: white;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow:
    0 2px 8px rgba(16, 185, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.action-deploy:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(16, 185, 129, 0.4),
    0 0 0 1px rgba(16, 185, 129, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.action-deploy:active {
  transform: translateY(0);
}

/* Page du thème - Violet Premium */
.action-share {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  color: white;
  text-decoration: none;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow:
    0 2px 8px rgba(139, 92, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.action-share:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(139, 92, 246, 0.45),
    0 0 0 1px rgba(139, 92, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: white;
}

.action-share:active {
  transform: translateY(0);
}

.action-more {
  position: relative;
  flex: 0 0 auto !important;
}

.more-trigger {
  width: 44px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.more-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Dropdown Menu */
.more-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 180px;
  margin-bottom: 8px;
  background: var(--bg-secondary, #2a2b2e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 100;
  animation: dropdown-appear 0.2s ease-out;
}

@keyframes dropdown-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.more-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary, #fff);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.more-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dd-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.25rem 0;
}

.dd-danger {
  color: #f43f5e !important;
}

.dd-danger:hover {
  background: rgba(244, 63, 94, 0.1) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIST VIEW
   ═══════════════════════════════════════════════════════════════════════════ */

.creations-list-view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.creation-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.creation-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.creation-list-item.is-draft {
  border-left: 3px solid #f59e0b;
}

.list-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.list-info {
  flex: 1;
  min-width: 0;
}

.list-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary, rgba(255,255,255,0.6));
}

.meta-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.meta-badge.draft { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.meta-badge.public { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.meta-badge.private { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }
.meta-badge.fork { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.list-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary, rgba(255,255,255,0.6));
}

.list-actions {
  display: flex;
  gap: 0.5rem;
}

.list-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.list-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.list-btn.deploy {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.list-btn.deploy:hover {
  background: rgba(16, 185, 129, 0.25);
}

.list-btn.share {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.list-btn.share:hover {
  background: rgba(139, 92, 246, 0.25);
  text-decoration: none;
  color: #a78bfa;
}

.list-btn.danger:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .creations-masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .creations-hero-banner {
    padding: 1.5rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-glass-card {
    padding: 0.875rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .creations-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-left, .toolbar-right {
    justify-content: center;
  }

  .filter-chips {
    flex-wrap: wrap;
    justify-content: center;
  }

  .creations-masonry-grid {
    grid-template-columns: 1fr;
  }

  .creation-list-item {
    flex-wrap: wrap;
  }

  .list-info {
    width: 100%;
    order: 2;
    margin-top: 0.5rem;
  }

  .list-icon {
    order: 1;
  }

  .list-stats {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .list-actions {
    order: 4;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .filter-chip span:not(.chip-icon) {
    display: none;
  }

  .filter-chip.active span:not(.chip-icon) {
    display: inline;
  }
}
