/* Styles pour le plugin HotspotNavigator */

/* Panel avec effet glassmorphism */
#hotspot-navigator {
  user-select: none;
  -webkit-user-select: none;
  position: fixed;
      right: 0px;
      top: 50%;
      transform: translateY(-50%);
      padding: 10px;
      border-radius: 12px 0 0 12px;
      z-index: 100;
      width: auto;
      max-height: 80vh;
      /*overflow: hidden;*/
      box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(10px);
      transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#hotspot-navigator.collapsed {
  transform: translateY(-50%) translateX(100%) !important;
}

/* Support pour les navigateurs qui ne supportent pas backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  #hotspot-navigator {
    background: rgba(0, 0, 0, 0.8) !important;
  }
  
  #hotspot-navigator button {
    background: rgba(0, 0, 0, 0.7) !important;
  }
}

/* Scrollbar personnalisée */
#hotspot-navigator *::-webkit-scrollbar {
  width: 6px;
}

#hotspot-navigator *::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

#hotspot-navigator *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

#hotspot-navigator *::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Carte hotspot */
.hotspot-card {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Animation au survol */
.hotspot-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.hotspot-card:hover::after {
  width: 100%;
  height: 100%;
}

/* État désactivé (navigation en cours) */
.hotspot-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Animation de pulsation pour le jour actuel */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 165, 0, 0);
  }
}

.hotspot-card[data-today="true"] {
  animation: pulse 2s infinite;
}

/* Responsive - Desktop */
@media (min-width: 1025px) {
  #hotspot-navigator {
    padding: 15px !important;
  }
  
  .hotspot-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 8px !important;
  }
  
  .hotspot-card {
    min-width: 45px !important;
    padding: 12px !important;
  }
}

/* Responsive - Tablette */
@media (max-width: 1024px) and (min-width: 769px) {
  #hotspot-navigator {
    padding: 12px !important;
  }
  
  .hotspot-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 6px !important;
  }
  
  .hotspot-card {
    min-width: 40px !important;
    padding: 10px !important;
  }
  
  .hotspot-card div {
    font-size: 1.2em !important;
  }
}

/* Responsive - Mobile paysage */
@media (max-width: 768px) and (min-width: 481px) {
  #hotspot-navigator {
    padding: 10px !important;
    max-height: 70vh !important;
  }
  
  .hotspot-grid {
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 5px !important;
  }
  
  .hotspot-card {
    min-width: 35px !important;
    padding: 8px !important;
  }
  
  .hotspot-card div {
    font-size: 1.1em !important;
  }
  
  #hotspot-navigator button {
    height: 50px !important;
    width: 25px !important;
    left: -25px !important;
  }
}

/* Responsive - Mobile portrait */
@media (max-width: 480px) {
  #hotspot-navigator {
    padding: 8px !important;
    max-height: 60vh !important;
    border-radius: 12px !important;
  }
  
  .hotspot-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 4px !important;
  }
  
  .hotspot-card {
    min-width: 32px !important;
    padding: 6px !important;
    border-radius: 6px !important;
  }
  
  .hotspot-card div {
    font-size: 1em !important;
  }
  
  #hotspot-navigator button {
    height: 50px !important;
    width: 25px !important;
    left: -25px !important;
    font-size: 1em !important;
  }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .hotspot-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3px !important;
  }
  
  .hotspot-card {
    min-width: 30px !important;
    padding: 5px !important;
  }
}

/* Mode sombre forcé */
@media (prefers-color-scheme: dark) {
  #hotspot-navigator {
    border-color: rgba(255, 255, 255, 0.15);
  }
}