/* ============================================
   LATE CULTURE — Glass Navigation System
   Apple-inspired glass morphism nav bar
   ============================================ */

/* ── Glass Nav Bar ── */
.glass-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: var(--nav-height);
  border-radius: var(--radius-pill);
  background: rgba(12, 12, 12, 0.28);
  -webkit-backdrop-filter: blur(28px) saturate(2.0);
  backdrop-filter: blur(28px) saturate(2.0);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ── Inner layout ── */
.glass-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 8px 0 20px;
}

/* ── Nav links ── */
.glass-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-nav__link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.glass-nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Underline grows from center */
.glass-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rose3);
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
  border-radius: 1px;
}

.glass-nav__link:hover::after {
  width: 60%;
  left: 20%;
}

.glass-nav__link--active {
  color: #fff;
}

.glass-nav__link--active::after {
  width: 60%;
  left: 20%;
}

/* ── CTA button ── */
.glass-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--rose3);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.glass-nav__cta:hover {
  background: var(--rose2);
  color: var(--white);
  transform: scale(1.03);
}

/* ── Hamburger (hidden on desktop) ── */
.glass-nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

.glass-nav__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

/* ── Wordmark / Logo ── */
.nav__wordmark-wrap {
  position: relative;
  flex-shrink: 0;
}

.nav__wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav__wordmark:hover {
  color: var(--white);
}

/* "BANGKOK" text — same size as LATE CULTURE */
.nav__wordmark span {
  color: var(--rose3);
  font-size: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  margin-left: 6px;
}

/* ── City Arrow ── */
.city-arrow {
  transition: transform 0.3s var(--ease-out);
}

.nav__wordmark-wrap:hover .city-arrow {
  transform: rotate(180deg);
}

/* ── City Dropdown (glass morphism) ── */
.city-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 180px;
  background: rgba(30, 30, 30, 0.85);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  z-index: 20;
}

.nav__wordmark-wrap:hover .city-dropdown {
  display: block;
}

.city-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 400;
  transition: background var(--duration-fast) var(--ease-out);
}

.city-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.city-dropdown__item--active {
  color: var(--white);
  font-weight: 500;
}

.city-dropdown__item--soon {
  opacity: 0.6;
  cursor: default;
}

/* Phuket "SOON" badge with blue accent */
.city-dropdown__item--soon .city-dropdown__dot {
  background: #78B0D4;
}

.city-dropdown__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.city-dropdown__name {
  flex: 1;
}

.city-dropdown__badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 26, 26, 0.95);
  -webkit-backdrop-filter: blur(60px);
  backdrop-filter: blur(60px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out);
}

.mobile-menu__close:hover {
  transform: rotate(90deg);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 56px);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  line-height: 1;
  transition: color var(--duration-fast) var(--ease-out);
}

.mobile-menu__link:hover {
  color: var(--white);
}

/* ── Auth Nav (avatar or Sign In) — ALWAYS visible ── */
.lc-auth-nav {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}

.lc-auth-nav__trigger,
.lc-auth-nav__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 120, 138, 0.25);
  background: rgba(212, 120, 138, 0.06);
  transition: all 0.2s;
}

.lc-auth-nav__trigger:hover,
.lc-auth-nav__user:hover {
  background: rgba(212, 120, 138, 0.12);
  border-color: rgba(212, 120, 138, 0.4);
}

.lc-auth-nav__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 120, 138, 0.5);
}

.lc-auth-nav__avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

.lc-auth-nav__level {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--rose3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lc-auth-nav__signin {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  white-space: nowrap;
}

.lc-auth-nav__signin:hover {
  color: #fff;
  border-color: var(--rose3);
  background: rgba(212, 120, 138, 0.1);
}

/* Tablet */
@media (max-width: 1024px) {
  .lc-auth-nav__level { display: none; }
  .lc-auth-nav__trigger,
.lc-auth-nav__user { padding: 3px; border: none; background: none; }
}

/* Mobile — auth nav ALWAYS visible, just compact */
@media (max-width: 768px) {
  .lc-auth-nav { margin-left: 8px; }
  .lc-auth-nav__avatar, .lc-auth-nav__avatar-placeholder { width: 28px; height: 28px; }
  .lc-auth-nav__level { display: none; }
  .lc-auth-nav__trigger,
.lc-auth-nav__user { padding: 2px; border: none; background: none; }
  .lc-auth-nav__signin { padding: 6px 12px; font-size: 10px; }
}

/* ── Profile Dropdown ── */
.lc-auth-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: rgba(26, 16, 16, 0.95);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(212, 120, 138, 0.15);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

@media (max-width: 768px) {
  .lc-auth-nav__dropdown {
    position: fixed;
    top: 60px;
    right: 12px;
    left: 12px;
    min-width: auto;
    border-radius: 16px;
    padding: 12px;
  }
  .lc-auth-nav__dropdown-item {
    padding: 14px 16px;
    font-size: 15px;
  }
}

.lc-auth-nav__dropdown--open {
  display: block;
}

.lc-auth-nav__dropdown-item {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
}

.lc-auth-nav__dropdown-item:hover {
  background: rgba(212, 120, 138, 0.1);
  color: #fff;
}

.lc-auth-nav__dropdown-item--signout {
  color: rgba(255, 255, 255, 0.4);
}

.lc-auth-nav__dropdown-item--signout:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

.lc-auth-nav__dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

/* ── Scrolled state — still glass, slightly darker tint ── */
.glass-nav--scrolled {
  background: rgba(10, 10, 10, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}
