/**
 * BioCroos OS — Navbar & Mobile Drawer Component
 * assets/css/components/navbar.css
 * Dark Matte Studio (Artoo) Theme Edition
 */

/* ==========================================================
   1. NAVEGACIÓN Y TOPBAR GENERAL
   ========================================================== */
.pro-header-topbar,
.navbar-top,
.patient-navbar {
  height: 60px;
  width: 100%;
  padding: 0 24px;
  background: #ffffff !important; box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--studio-border, rgba(255, 255, 255, 0.08)) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--text-primary, #0f172a);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary, #0f172a);
  text-decoration: none;
}

.nav-brand .brand-dot {
  color: var(--accent-mint, #34d399);
}

/* ==========================================================
   2. BOTÓN DE MENÚ HAMBURGUESA MÓVIL
   ========================================================== */
.mobile-menu-btn {
  display: none; /* Oculto en escritorio */
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--studio-border, rgba(255, 255, 255, 0.08));
  background: #f8fafc;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  padding: 8px;
  transition: background-color 0.2s, border-color 0.2s;
}

.mobile-menu-btn:hover {
  background-color: var(--studio-surface-hover, #2d3c47);
  border-color: var(--accent-mint, #34d399);
}

/* ==========================================================
   3. MENÚ LATERAL MÓVIL (DRAWER / OVERLAY)
   ========================================================== */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #182229;
  border-right: 1px solid var(--studio-border, rgba(255, 255, 255, 0.08));
  z-index: 1001;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.mobile-drawer.open {
  transform: translateX(280px);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--studio-border, rgba(255, 255, 255, 0.08));
}

.mobile-drawer-close {
  background: #f8fafc;
  border: 1px solid var(--studio-border, rgba(255, 255, 255, 0.08));
  color: var(--text-muted, #8b9ea9);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-body, #cbd5e1);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: #f8fafc;
  color: var(--accent-mint, #34d399);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}
