/* float.css - Float page specific styles */

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
}

/* HUD Controls */
.float-hud {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 10;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.float-hud .link-btn,
.float-hud a {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 6px;
  border-bottom: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.float-hud .link-btn:hover,
.float-hud a:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  border-bottom: none !important;
}

.float-hud .link-btn.active,
.float-hud .link-btn[aria-pressed="true"] {
  background: rgba(80, 160, 255, 0.15);
  color: var(--underline-active);
  border-bottom: none !important;
}

.float-hud .link-btn.active::after,
.float-hud .link-btn[aria-pressed="true"]::after {
  content: ' ✓';
  font-size: 11px;
}

/* Toggle buttons with icons */
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn .icon {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.toggle-btn[aria-pressed="true"] .icon {
  opacity: 1;
}

/* Back link styling */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-link::before {
  content: '←';
  font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 740px) {
  .float-hud {
    gap: 10px;
  }
  
  .float-hud .link-btn,
  .float-hud a {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .float-hud {
    left: 10px;
    top: 10px;
    gap: 8px;
  }
  
  .float-hud .link-btn,
  .float-hud a {
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* Landscape mobile */
@media (max-width: 740px) and (orientation: landscape) {
  .float-hud {
    flex-direction: row;
    gap: 8px;
  }
  
  .float-hud .link-btn,
  .float-hud a {
    font-size: 12px;
    padding: 5px 8px;
  }
}
