/* ===== GAME TOOLBAR - Barra de herramientas estilo gaming ===== */
.game-toolbar {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10003;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(14, 15, 16, 0.85);
  backdrop-filter: blur(10px);
  padding: 20px 15px;
  border-radius: 50px;
  border: 2px solid rgba(154, 208, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 0 20px rgba(154, 208, 255, 0.1);
  transition: all 0.3s ease;
}

.game-toolbar:hover {
  border-color: rgba(154, 208, 255, 0.6);
  box-shadow: 0 12px 40px rgba(154, 208, 255, 0.3),
              inset 0 0 30px rgba(154, 208, 255, 0.2);
}

/* Botones de la toolbar */
.toolbar-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(154, 208, 255, 0.4);
  background: linear-gradient(135deg, rgba(154, 208, 255, 0.2), rgba(100, 150, 200, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: rgba(233, 233, 234, 0.92);
  text-decoration: none;
}

.toolbar-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(154, 208, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toolbar-btn:hover {
  transform: scale(1.15);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(154, 208, 255, 0.4), rgba(100, 150, 200, 0.4));
  box-shadow: 0 0 20px rgba(154, 208, 255, 0.6),
              inset 0 0 15px rgba(154, 208, 255, 0.3);
}

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

.toolbar-btn:active {
  transform: scale(1.05);
}

.toolbar-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.toolbar-btn:hover svg {
  stroke: var(--accent);
  filter: drop-shadow(0 0 5px rgba(154, 208, 255, 0.8));
}

/* Colores específicos para cada tipo de botón */
.toolbar-btn.scroll-up,
.toolbar-btn.scroll-down {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 150, 255, 0.2));
  border-color: rgba(0, 212, 255, 0.4);
}

.toolbar-btn.scroll-up:hover,
.toolbar-btn.scroll-down:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(0, 150, 255, 0.4));
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6),
              inset 0 0 15px rgba(0, 212, 255, 0.3);
}

.toolbar-btn.scroll-up:hover svg,
.toolbar-btn.scroll-down:hover svg {
  stroke: #00d4ff;
}

.toolbar-btn.sound {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
  border-color: rgba(255, 215, 0, 0.4);
}

.toolbar-btn.sound:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 165, 0, 0.4));
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
              inset 0 0 15px rgba(255, 215, 0, 0.3);
}

.toolbar-btn.sound:hover svg {
  stroke: #FFD700;
}

.toolbar-btn.sound .sound-wave {
  transition: opacity 0.3s ease;
}

.toolbar-btn.sound:not(.active) .sound-wave {
  opacity: 0;
}

.toolbar-btn.sound.active {
  animation: pulse-sound 2s ease-in-out infinite;
}

@keyframes pulse-sound {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
}

.toolbar-btn.email {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(255, 20, 147, 0.2));
  border-color: rgba(220, 20, 60, 0.4);
}

.toolbar-btn.email:hover {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.4), rgba(255, 20, 147, 0.4));
  border-color: #DC143C;
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.6),
              inset 0 0 15px rgba(220, 20, 60, 0.3);
}

.toolbar-btn.email:hover svg {
  stroke: #FF1493;
}

.toolbar-btn.telegram {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 180, 255, 0.2));
  border-color: rgba(0, 136, 204, 0.4);
}

.toolbar-btn.telegram:hover {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.4), rgba(0, 180, 255, 0.4));
  border-color: #0088CC;
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.6),
              inset 0 0 15px rgba(0, 136, 204, 0.3);
}

.toolbar-btn.telegram:hover svg {
  stroke: #00B4FF;
}

.toolbar-btn.whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(0, 200, 83, 0.2));
  border-color: rgba(37, 211, 102, 0.4);
}

.toolbar-btn.whatsapp svg {
  fill: var(--text);
  stroke: none;
}

.toolbar-btn.whatsapp:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.4), rgba(0, 200, 83, 0.4));
  border-color: #25D366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.6),
              inset 0 0 15px rgba(37, 211, 102, 0.3);
}

.toolbar-btn.whatsapp:hover svg {
  fill: #25D366;
  stroke: none;
  filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.8));
}

/* Separador visual */
.toolbar-separator {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(154, 208, 255, 0.5), transparent);
  margin: 5px auto;
}

/* Tooltip para los botones */
.toolbar-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 15, 16, 0.95);
  color: var(--text);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(154, 208, 255, 0.3);
  font-family: var(--font-body);
}

.toolbar-btn:hover::after {
  opacity: 1;
  right: calc(100% + 20px);
}

/* Responsive */
@media (max-width: 768px) {
  .game-toolbar {
    right: 15px;
    padding: 15px 10px;
    gap: 10px;
  }

  .toolbar-btn {
    width: 45px;
    height: 45px;
  }

  .toolbar-btn svg {
    width: 20px;
    height: 20px;
  }

  .toolbar-btn::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .game-toolbar {
    right: 10px;
    padding: 12px 8px;
    gap: 8px;
  }

  .toolbar-btn {
    width: 42px;
    height: 42px;
  }
}
