/* ===============================
   HEADER BASE
================================ */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ===============================
   LOGO
================================ */
.logo-area {
  flex: 0 0 auto;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  white-space: nowrap;
}

/* ===============================
   DESKTOP NAV
================================ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.account {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===============================
   BURGER (HIDDEN BY DEFAULT)
================================ */
.menu-btn {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ===============================
   MOBILE DRAWER
================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  padding: 80px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: right .3s ease;
  z-index: 2000;
}

.mobile-nav.open {
  right: 0;
}

/* ===============================
   OVERLAY
================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1500;
}

.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
   MOBILE MODE (ONLY BELOW 900px)
================================ */
@media (max-width: 900px) {

  .main-nav,
  .account {
    display: none;
  }

  .menu-btn {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3000;
  }

  .header-inner {
    padding-right: 56px;
  }
}

/* =========================================================
   HEADER BASE
========================================================= */

header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* =========================================================
   LOGO
========================================================= */

.logo-area {
  flex: 0 0 auto;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  text-decoration: none;
  color: #222;
}

/* =========================================================
   DESKTOP NAV (DEFAULT STATE)
========================================================= */

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.account {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-btn {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* =========================================================
   DROPDOWNS
========================================================= */

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================================================
   MOBILE NAV DRAWER
========================================================= */

.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 18px rgba(0,0,0,0.15);
  padding: 70px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: right .3s ease;
  z-index: 2000;
}

.mobile-nav.open {
  right: 0;
}

/* =========================================================
   OVERLAY
========================================================= */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1500;
}

.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   MOBILE MODE (ONLY BELOW 900px)
========================================================= */

@media (max-width: 900px) {

  /* Hide desktop UI */
  .main-nav {
    display: none;
  }

  .account {
    display: none;
  }

  /* Show burger */
  .menu-btn {
    display: block;
    position: fixed;
    top: 22px;
    right: 16px;
    z-index: 9999;
  }

  /* Adjust header spacing */
  .header-inner {
    padding-right: 56px;
  }
}
.menu-btn {
  display: none;
  position: fixed;
  top: 18px;
  right: 16px;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9999;
}

@media (max-width: 900px) {
  .main-nav,
  .account {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}
/* ===============================
   DESKTOP NAV HOVER EFFECTS
================================ */

.main-nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

/* underline animation */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #222;
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 60%;
}

/* ===============================
   DROPDOWNS (DESKTOP ONLY)
================================ */

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: #333;
  text-align: center;
  background: #fff;
  transition: background 0.2s ease;
}

.dropdown a:hover {
  background: #f3f3f3;
}

/* ===============================
   ADMIN AVATAR BADGE
================================ */
.admin-avatar {
  position: relative;
}

.admin-avatar::after {
  content: "ADMIN";
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #ff2600;
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
