/**
 * Lin Teas - Navigation Thématique Rapide
 * Phase 2.2: Icônes familles de thés horizontales
 * Inspiré du mockup catalogue-premium.html
 */

/* ==========================================================================
   Navigation Thématique Rapide (sous la nav principale)
   ========================================================================== */

.thematic-quick-nav {
  background: linear-gradient(135deg, #F8F9FA 0%, var(--color-white, #FEFEFE) 100%);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(127, 179, 163, 0.2);
  position: relative;
  z-index: 100;
  margin-top: 0;
  margin-bottom: 0;
}

.thematic-icons-quick {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1.5rem;
  
  /* Smooth scrolling sur mobile */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  
  /* Masquer scrollbar mais garder fonctionnalité */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.thematic-icons-quick::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ==========================================================================
   Icône Thématique
   ========================================================================== */

.thematic-quick-nav .thematic-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 70px;
  position: relative;
}

.thematic-quick-nav .thematic-icon:hover {
  transform: translateY(-2px);
  background: rgba(127, 179, 163, 0.05);
}

.thematic-quick-nav .thematic-icon:focus {
  outline: 2px solid var(--color-primary, #7FB3A3);
  outline-offset: 2px;
}

.thematic-quick-nav .thematic-icon:active {
  transform: translateY(0);
}

/* ==========================================================================
   Cercle avec Icône
   ========================================================================== */

.thematic-quick-nav .thematic-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white, #FEFEFE);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--icon-color, var(--color-primary, #7FB3A3));
  border: 2px solid transparent;
  position: relative;
}

.thematic-quick-nav .thematic-icon:hover .thematic-circle {
  border-color: var(--icon-color, var(--color-accent, #B85450));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: linear-gradient(
    135deg, 
    var(--icon-color, var(--color-accent, #B85450)), 
    color-mix(in srgb, var(--icon-color, var(--color-accent, #B85450)) 80%, white)
  );
  color: var(--color-white, #FFFFFF);
  transform: scale(1.1);
}

.thematic-quick-nav .thematic-circle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.thematic-quick-nav .thematic-icon:hover .thematic-circle svg {
  transform: scale(1.05);
}

/* État actif */
.thematic-quick-nav .thematic-icon.active .thematic-circle {
  border-color: var(--icon-color, var(--color-primary, #7FB3A3));
  background: linear-gradient(
    135deg, 
    var(--icon-color, var(--color-primary, #7FB3A3)), 
    color-mix(in srgb, var(--icon-color, var(--color-primary, #7FB3A3)) 80%, white)
  );
  color: var(--color-white, #FFFFFF);
  box-shadow: 0 4px 16px rgba(127, 179, 163, 0.3);
}

/* Badge indicateur (optionnel - pour nombre de produits) */
.thematic-quick-nav .thematic-icon::after {
  content: attr(data-count);
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent, #B85450);
  color: var(--color-white, #FFFFFF);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  pointer-events: none;
}

.thematic-quick-nav .thematic-icon[data-count]:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   Label
   ========================================================================== */

.thematic-quick-nav .thematic-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text, #2C3E50);
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.thematic-quick-nav .thematic-icon:hover .thematic-label {
  color: var(--icon-color, var(--color-accent, #B85450));
  font-weight: 600;
}

.thematic-quick-nav .thematic-icon.active .thematic-label {
  color: var(--icon-color, var(--color-primary, #7FB3A3));
  font-weight: 600;
}

/* ==========================================================================
   Indicateurs de scroll (optionnel)
   ========================================================================== */

.thematic-quick-nav::before,
.thematic-quick-nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thematic-quick-nav::before {
  left: 0;
  background: linear-gradient(to right, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
}

.thematic-quick-nav::after {
  right: 0;
  background: linear-gradient(to left, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0));
}

.thematic-quick-nav.has-scroll-left::before {
  opacity: 1;
}

.thematic-quick-nav.has-scroll-right::after {
  opacity: 1;
}

/* ==========================================================================
   Responsive - Tablette
   ========================================================================== */

@media (max-width: 1024px) {
  .thematic-icons-quick {
    gap: 1.5rem;
    justify-content: flex-start;
  }

  .thematic-quick-nav .thematic-icon {
    min-width: 65px;
  }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 768px) {
  .thematic-quick-nav {
    padding: 0.5rem 0;
  }

  .thematic-icons-quick {
    gap: 1rem;
    padding: 0 1rem;
  }

  .thematic-quick-nav .thematic-circle {
    width: 35px;
    height: 35px;
  }

  .thematic-quick-nav .thematic-circle svg {
    width: 18px;
    height: 18px;
  }

  .thematic-quick-nav .thematic-label {
    font-size: 0.65rem;
  }

  .thematic-quick-nav .thematic-icon {
    min-width: 60px;
    padding: 0.375rem;
  }

  /* Indicateurs de scroll plus visibles sur mobile */
  .thematic-quick-nav::before,
  .thematic-quick-nav::after {
    width: 30px;
  }
}

/* ==========================================================================
   Animations d'entrée
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thematic-quick-nav .thematic-icon {
  animation: fadeInUp 0.4s ease-out backwards;
}

.thematic-quick-nav .thematic-icon:nth-child(1) { animation-delay: 0.05s; }
.thematic-quick-nav .thematic-icon:nth-child(2) { animation-delay: 0.1s; }
.thematic-quick-nav .thematic-icon:nth-child(3) { animation-delay: 0.15s; }
.thematic-quick-nav .thematic-icon:nth-child(4) { animation-delay: 0.2s; }
.thematic-quick-nav .thematic-icon:nth-child(5) { animation-delay: 0.25s; }
.thematic-quick-nav .thematic-icon:nth-child(6) { animation-delay: 0.3s; }
.thematic-quick-nav .thematic-icon:nth-child(7) { animation-delay: 0.35s; }

