/**
 * Video Hotspot Styles
 * Control bar and button styling for Marzipano video hotspots
 */

/* ==================== WRAPPER - Allow overflow ==================== */
.video-hotspot {
  position: relative;
  overflow: visible !important;
}

/* ==================== CONTROL BAR ==================== */
.video-hotspot-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  /* Prevent perspective from shrinking controls */
  transform-origin: center center;
}

/* ==================== CONTROL BUTTONS ==================== */
.control-btn,
.channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  /* Ensure minimum tap target */
  min-width: 36px;
  min-height: 36px;
}

.control-btn:hover,
.channel-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.control-btn:active,
.channel-btn:active {
  transform: scale(0.95);
}

/* Channel number buttons */
.channel-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.channel-btn.active {
  background: #E41E33;
  color: #fff;
}

.channel-btn.active:hover {
  background: #c91a2d;
}

/* Mute button states */
.mute-btn.unmuted {
  background: #4CAF50;
  color: #fff;
}

.mute-btn.unmuted:hover {
  background: #43a047;
}

/* Play/pause button states */
.play-pause-btn.active {
  background: rgba(255, 255, 255, 0.9);
}

/* Focus button */
.focus-btn {
  background: rgba(255, 255, 255, 0.9);
}

/* ==================== SEPARATOR ==================== */
.control-separator {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
}

/* ==================== MOBILE STYLES ==================== */
/* Scale up the entire control bar on mobile to counteract perspective */
.mobile .video-hotspot-channels {
  transform: scale(1.8);
  transform-origin: center top;
  margin-top: 30px;
}

/* Touch devices */
@media (pointer: coarse) {
  .video-hotspot-channels {
    transform: scale(1.8);
    transform-origin: center top;
    margin-top: 30px;
  }
}

/* Media query fallback */
@media (max-width: 768px) {
  .video-hotspot-channels {
    transform: scale(1.8);
    transform-origin: center top;
    margin-top: 30px;
  }
}

/* ==================== VIDEO CONTAINER ==================== */
.video-hotspot-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ==================== INFO HOTSPOT BUTTONS ==================== */
/* Info icon button */
.simple-info-icon.control-btn {
  width: 36px;
  height: 36px;
  cursor: pointer;
}

/* Close button in info panel */
.info-close-btn.control-btn {
  width: 32px;
  height: 32px;
}

/* Mobile: larger info buttons */
.mobile .simple-info-icon.control-btn {
  width: 50px;
  height: 50px;
}

.mobile .info-close-btn.control-btn {
  width: 44px;
  height: 44px;
}

@media (max-width: 768px) {
  .simple-info-icon.control-btn {
    width: 50px;
    height: 50px;
  }
  
  .info-close-btn.control-btn {
    width: 44px;
    height: 44px;
  }
}

/* ==================== TITLE OVERLAY ==================== */
.video-hotspot-title {
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
