/* public/assets/css/navbar.css */

/* --- Navbar Styles --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 0 40px;
  color: #fff;
  height: 60px;
  text-transform: uppercase;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  box-sizing: border-box;
  transform: translateZ(0);
}

.navbar-logo img {
  height: 40px;
  display: block;
}

.mobile-logo { display: none; }

.navbar-right.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 5px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* --- Button system (header) --- */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;

  font-family: 'Bebas Neue', sans-serif;
  font-weight: normal;
  letter-spacing: 0.6px;
  text-transform: uppercase;

  font-size: 1.15em;
  line-height: 1;

  border-radius: 6px;
  padding: 10px 18px;

  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:active { transform: translateY(1px); }

.nav-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

.nav-btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.nav-btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* --- Desktop user dropdown --- */
.user-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  background: transparent;
  border: none;
  color: inherit;
}

.user-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #fff;
}

.user-profile-name {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
}

.dropdown-arrow {
  margin-left: 8px;
  font-size: 12px;
  transition: transform 0.2s ease-in-out;
}

.user-profile.active .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background-color: #000;
  min-width: 200px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
  z-index: 6000;
  border-radius: 4px;
  padding: 10px 0;
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  color: #fff;
  padding: 11px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-transform: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255,255,255,0.10);
  color: #fff;
}

.dropdown-divider {
  height: 1px;
  margin: 8px 0;
  overflow: hidden;
  background-color: rgba(255,255,255,0.14);
}

.dropdown-notif-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
}

/* --- Mobile actions --- */
.navbar-mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.mobile-signin-btn { padding: 10px 16px; }

.mobile-profile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-profile-toggle:hover { background: rgba(255,255,255,0.08); }
.mobile-profile-toggle:active { transform: translateY(1px); }

.mobile-profile-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

.mobile-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  display: block;
}

/* --- Hamburger button --- */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-toggle:hover { background: rgba(255,255,255,0.08); }
.mobile-nav-toggle:active { transform: translateY(1px); }

.mobile-nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

.hamburger {
  width: 22px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.92;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.mobile-nav-toggle.is-active .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.is-active .hamburger span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-active .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Unified Mobile Drawer (same for nav + profile) --- */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(0,0,0,0.45);
  z-index: 4400;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.98);
  border-top: 1px solid rgba(255,255,255,0.10);
  z-index: 4500;

  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.mobile-drawer.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.mobile-drawer-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.mobile-drawer-body {
  padding: 10px 0 18px;
}

.drawer-section { display: none; }
.mobile-drawer[data-mode="nav"] .drawer-section--nav { display: block; }
.mobile-drawer[data-mode="profile"] .drawer-section--profile { display: block; }

/* Drawer: nav links */
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li { margin: 0; }

.mobile-nav-links a {
  color: #ddd;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 13px 18px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-links a:hover {
  background-color: rgba(255,255,255,0.08);
  color: #fff;
}

/* Drawer: profile header + links */
.mobile-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 8px;
}

.mobile-profile-head-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.mobile-profile-head-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-profile-head-welcome {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.mobile-profile-head-name {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.mobile-profile-links {
  padding: 6px 0 0;
}

.mobile-profile-links a {
  color: #ddd;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-profile-links a:hover {
  background-color: rgba(255,255,255,0.08);
  color: #fff;
}

/* --- Media Query --- */
@media (max-width: 768px) {
  .navbar {
    padding: 0 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .navbar-logo img { height: 38px; }

  .navbar-right.desktop-nav { display: none; }
  .navbar-mobile-actions { display: flex; }
  .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .desktop-logo { display: none; }
  .mobile-logo { display: block; }
}
