/* ============================================
   BOTONS PANO - ESTIL TECNOLÒGIC MINIMAL
   AI Tour Hub - 2025
   ============================================ */

/* === AMAGAR BOTONS FS I FIT (gestionats per l'app principal) === */
.b-fs,
.b-fsm,
.b-fit,
.b-fitm {
  display: none !important;
}

/* === BOTO BASE - Ultra minimal tech === */
.boto-pano {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  position: absolute;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
}

.boto-pano:hover {
  opacity: 1;
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.25);
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.15);
}

.boto-pano:hover img {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(245, 166, 35, 0.8));
}

.boto-pano:active {
  transform: scale(0.9);
  opacity: 1;
}

/* === ICONES === */
.dibuix-icona {
  width: 13px;
  height: 13px;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: all 0.2s ease;
}

/* === FULLSCREEN - Més prominent === */
.b-fs {
  bottom: 14px;
  right: 54px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(63, 46, 82, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.65;
}

.b-fs .dibuix-icona {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.b-fs:hover {
  background: rgba(245, 166, 35, 0.2);
  border-color: rgba(245, 166, 35, 0.35);
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.25),
              inset 0 0 20px rgba(245, 166, 35, 0.08);
}

.b-fsm {
  bottom: 10px;
  right: 50px;
}

/* === FIT/CENTER - També prominent === */
.b-fit {
  bottom: 60px;
  right: 54px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(63, 46, 82, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.65;
}

.b-fit .dibuix-icona {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.b-fit:hover {
  background: rgba(245, 166, 35, 0.2);
  border-color: rgba(245, 166, 35, 0.35);
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.25),
              inset 0 0 20px rgba(245, 166, 35, 0.08);
}

.b-fitm {
  bottom: 55px;
  right: 50px;
}

/* === ZOOM BUTTONS - Molt discrets, units === */
.b-mes {
  bottom: 50px;
  right: 14px;
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}

.b-mes::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.b-menys {
  bottom: 14px;
  right: 14px;
  border-radius: 0 0 8px 8px;
  border-top: none;
}

/* === ICONES ZOOM + / - ben visibles === */
.b-mes .dibuix-icona,
.b-menys .dibuix-icona {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
  width: 16px;
  height: 16px;
}

/* === INFO BUTTON === */
.b-inf {
  top: 14px;
  left: 14px;
  opacity: 0.4;
}

.b-infm {
  top: 10px;
  left: 10px;
}

/* === BOTONS MAJORS === */
.boto-pano-major {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  cursor: pointer;
  position: absolute;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.boto-pano-major:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0 0 15px rgba(245, 166, 35, 0.5));
}

.dibuix-icona-major {
  width: 26px;
  height: 26px;
  transition: all 0.2s ease;
}

.b-tanca {
  top: 14px;
  right: 14px;
}

.b-tanca:hover {
  transform: rotate(90deg) scale(1.15);
}

.b-browse {
  top: 14px;
  right: 50px;
}

.comptador_debastators {
  top: 14px;
  right: 88px;
  width: auto;
}

.comptador_debastators:hover {
  transform: none;
}

/* === NAV BUTTONS === */
.b-next,
.b-prev {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.b-next:hover,
.b-prev:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.5));
}

.b-next:hover { transform: translateX(3px); }
.b-prev:hover { transform: translateX(-3px); }

/* === RIPPLE === */
.ripple {
  position: absolute;
  background: rgba(245, 166, 35, 0.35);
  border-radius: 50%;
  width: 5px;
  height: 5px;
  animation: ripple 0.5s ease-out;
  opacity: 0;
  pointer-events: none;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(40); opacity: 0; }
}

/* === RESPONSIVE MÒBIL === */
@media (max-width: 768px) {
  .boto-pano {
    width: 38px;
    height: 38px;
    opacity: 0.6;
  }
  
  .dibuix-icona {
    width: 16px;
    height: 16px;
  }
  
  .b-fs,
  .b-fit {
    width: 44px;
    height: 44px;
    right: 50px;
  }
  
  .b-fs { bottom: 12px; }
  .b-fit { bottom: 64px; }
  
  .b-fs .dibuix-icona,
  .b-fit .dibuix-icona {
    width: 20px;
    height: 20px;
  }
  
  .b-mes {
    bottom: 56px;
    right: 10px;
  }
  
  .b-menys {
    bottom: 10px;
    right: 10px;
  }
  
  .b-inf {
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
  }
}

/* === ANIMACIÓ ENTRADA SUBTIL === */
.boto-pano {
  animation: btnFadeIn 0.5s ease-out backwards;
}

.b-fs { animation-delay: 0.05s; }
.b-fit { animation-delay: 0.1s; }
.b-mes { animation-delay: 0.15s; }
.b-menys { animation-delay: 0.2s; }
.b-inf { animation-delay: 0.25s; }

@keyframes btnFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

/* === PULSE SUBTIL PER FS I FIT === */
.b-fs::before,
.b-fit::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    rgba(245, 166, 35, 0.1), 
    transparent 50%,
    rgba(78, 205, 196, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.b-fs:hover::before,
.b-fit:hover::before {
  opacity: 1;
}
