/* Floating Menu Styles */
/* Add this to your HTML: <link rel="stylesheet" href="/menu/floating-menu.css"> */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.floating-menu-btn,
.floating-menu-panel,
.floating-menu-backdrop {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.floating-menu-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-menu-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.floating-menu-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.floating-menu-btn.is-open svg {
  transform: rotate(90deg);
}

.floating-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.floating-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
}

.floating-menu-panel.is-open {
  transform: translateX(0);
}

.floating-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-menu-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.floating-menu-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.floating-menu-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.floating-menu-list {
  flex: 1;
  padding: 1rem 0 0.5rem 0;
  margin: 0;
  list-style: none;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.floating-menu-list::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.floating-menu-header {
  display: none;
}

.floating-menu-item {
  padding: 0 0.75rem;
  margin-bottom: 0;
}

.floating-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.floating-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(4px);
}

.floating-menu-link svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.floating-menu-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
}
