/* ── Base navbar ─────────────────────────────────────────── */
.navbar {
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sage-100);
  height: 68px;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.3s;
}
.scrolled { box-shadow: var(--shadow-sm); }

/* ── Logo ────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage-500);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo svg { color: var(--sage-400); }

/* ── Desktop nav ─────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ── Desktop actions ─────────────────────────────────────── */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Auth links (not logged in) ───────────────────────────── */
.authLinks { display: flex; align-items: center; gap: 12px; }

.loginBtn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-500);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--sage-300);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.loginBtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--sage-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.loginBtn:hover {
  color: white;
  border-color: var(--sage-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(113, 131, 85, 0.2);
}

.loginBtn:hover::after {
  transform: scaleX(1);
}

.registerBtn {
  background: linear-gradient(135deg, var(--sage-400) 0%, var(--sage-500) 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(113, 131, 85, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(113, 131, 85, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(113, 131, 85, 0.45), 0 0 0 4px rgba(113, 131, 85, 0.08);
  }
}

.registerBtn:hover {
  background: linear-gradient(135deg, var(--sage-500) 0%, var(--sage-400) 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(113, 131, 85, 0.4) !important;
}

/* ── Avatar (logged in) ──────────────────────────────────── */
.avatarWrap { position: relative; }

.avatarBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-50);
  border: 1.5px solid var(--sage-200);
  border-radius: var(--radius-xl);
  padding: 5px 10px 5px 5px;
  cursor: pointer;
  transition: all 0.2s;
  max-width: 180px;
}
.avatarBtn:hover {
  border-color: var(--sage-400);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-400), var(--sage-600));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.avatarInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.avatarName {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.avatarRole {
  font-size: 0.6875rem;
  color: var(--sage-400);
  line-height: 1.2;
}

/* ── Dropdown ────────────────────────────────────────────── */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--white);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 8px;
  animation: fadeDropdown 0.15s ease;
  z-index: 300;
}

@keyframes fadeDropdown {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdownHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
}
.dropdownAvatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-400), var(--sage-600));
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.dropdownName {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.dropdownEmail {
  font-size: 0.75rem;
  color: var(--sage-400);
  word-break: break-all;
}

.dropdownDivider {
  height: 1px;
  background: var(--sage-100);
  margin: 4px 0;
}

.dropdownItem {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sage-500);
  text-decoration: none;
  border-radius: var(--radius-md);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.dropdownItem:hover { background: var(--sage-50); color: var(--sage-600); }
.dropdownLogout { color: #dc2626 !important; }
.dropdownLogout:hover { background: #fef2f2 !important; }

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sage-500);
  padding: 4px;
}

/* ── Booking btn on desktop ──────────────────────────────── */
.bookingBtn {
  white-space: nowrap;
  background: linear-gradient(135deg, var(--sage-500) 0%, var(--sage-400) 50%, var(--sage-500) 100%) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 3s ease infinite !important;
  box-shadow: 0 4px 15px rgba(113, 131, 85, 0.35) !important;
}

.bookingBtn:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(113, 131, 85, 0.45) !important;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mobile register button */
.mobileRegisterBtn {
  background: linear-gradient(135deg, var(--sage-500) 0%, var(--sage-400) 100%) !important;
  box-shadow: 0 4px 15px rgba(113, 131, 85, 0.3) !important;
}

.mobileRegisterBtn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(113, 131, 85, 0.4) !important;
}

/* ── Mobile menu ─────────────────────────────────────────── */
.mobileMenu {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--sage-100);
  padding: 16px var(--container-padding) 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.2s ease;
  z-index: 199;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobileLink {
  display: flex;
  align-items: center;
  padding: 11px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sage-500);
  border-bottom: 1px solid var(--sage-50);
  text-decoration: none;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  transition: color 0.2s;
  width: 100%;
  text-align: left;
}
.mobileLink:hover { color: var(--sage-600); }

.mobileDivider {
  height: 1px;
  background: var(--sage-100);
  margin: 8px 0;
}

/* Mobile user section */
.mobileUserSection { display: flex; flex-direction: column; gap: 2px; }

.mobileUserCard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--sage-100);
  margin-bottom: 4px;
}
.mobileAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-400), var(--sage-600));
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.mobileUserName { font-size: 0.9375rem; font-weight: 600; color: var(--text-dark); }
.mobileUserRole { font-size: 0.75rem; color: var(--sage-400); margin-top: 2px; }

.mobileLogout { color: #dc2626 !important; border-bottom: none !important; }
.mobileLogout:hover { color: #b91c1c !important; }

/* Mobile auth links (not logged in) */
.mobileAuthLinks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.mobileRegisterBtn { align-self: flex-start; margin-top: 4px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav              { display: none; }
  .hamburger        { display: flex; align-items: center; justify-content: center; }
  .bookingBtn       { display: none; }
  .authLinks        { display: none; }
  .avatarWrap       { display: none; }
}

@media (min-width: 769px) {
  .mobileMenu { display: none; }
}
