/* --- css/menu_sidebar.css --- */

/* 1. IL CONTENITORE INVISIBILE (ZONA SENSIBILE) */
#main-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    
    /* Area sensibile larga 150px: appena il mouse entra qui, il menu scatta */
    width: 60px; /* Ridotto da 150px */
    height: 100vh;
    
    z-index: 2000; /* Altissimo per stare sopra a tutto */
    
    /* Flexbox per centrare verticalmente la card */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-start;
    
    padding-left: 20px; /* Distanza estetica dal bordo sinistro */
    
    /* Debug: togli il commento se vuoi vedere l'area rossa di attivazione */
    /* border: 1px solid red; */
}

/* 2. LA CARD DEL MENU (Stato di default: NASCOSTA) */
.side-menu-card {
  max-width: fit-content;
  border-radius: 15px;
  
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  
  /* Stile Vetro */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(13, 20, 30, 0.85); /* Leggermente più scuro per leggibilità */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  
  /* Dimensioni compatte */
  gap: 1rem;
  padding: 7px;
  
  /* --- TRANSIZIONI FLUIDE --- */
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* --- STATO INIZIALE --- */
  opacity: 0; 
  /* Spostato completamente a sinistra fuori vista */
  transform: translateX(-150%); 
  pointer-events: none; /* Non cliccabile se invisibile */
}

/* 3. QUANDO IL MOUSE ENTRA NELLA ZONA SENSIBILE */
#main-menu-container:hover .side-menu-card {
  opacity: 1; 
  transform: translateX(0); /* Scivola in posizione */
  pointer-events: auto; /* Diventa cliccabile */
}

/* --- STILI INTERNI DEL MENU --- */

.side-menu-card ul {
  padding: 0;
  margin: 0;
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-direction: column;
  align-items: center;
}

.side-menu-card ul li {
  cursor: pointer;
  position: relative;
}

/* Icona Cerchio */
.menu-svg {
  transition: all 0.3s;
  padding: 0.5rem;
  height: 30px;
  width: 30px;
  border-radius: 100%;
  color: rgb(255, 174, 0); /* Oro */
  fill: currentColor;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1),
    inset 0 0 5px rgba(255, 255, 255, 0.1), 0 5px 5px rgba(0, 0, 0, 0.164);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip Testo */
.text {
  opacity: 0;
  border-radius: 5px;
  padding: 4px 8px;
  transition: all 0.3s;
  color: rgb(255, 174, 0);
  background-color: rgba(15, 32, 39, 0.95);
  border: 1px solid rgba(255, 174, 0, 0.3);
  position: absolute;
  left: 60px; 
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Effetti Hover Icona */
.iso-pro { transition: 0.5s; }
.iso-pro:hover .menu-svg {
  transform: translate(5px, -5px);
  color: #fff;
  background: rgba(255, 174, 0, 0.2);
}
.iso-pro:hover .text {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

/* Anelli rotanti */
.iso-pro span {
  opacity: 0;
  position: absolute;
  top: 0; left: 0;
  color: rgba(255, 174, 0, 0.5);
  border: 2px solid currentColor;
  border-radius: 50%;
  transition: all 0.3s;
  height: 30px; width: 30px;
  pointer-events: none;
}
.iso-pro:hover span { opacity: 1; }
.iso-pro:hover span:nth-child(1) { opacity: 0.2; }
.iso-pro:hover span:nth-child(2) { opacity: 0.4; transform: translate(2px, -2px); }
.iso-pro:hover span:nth-child(3) { opacity: 0.6; transform: translate(4px, -4px); }