/**
 * nav-landing.css — Landing Page Navigation
 * Include in landing page <head>
 * Pair with: <script src="/assets/js/header-landing.js" type="module"></script>
 */

/* ── TOOLS DROPDOWN PANEL ── */
.dropdown-menu {
  width: 660px;
  padding: 20px;
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f0f0f;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  z-index: 999;
}
.dropdown-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 24px;
}

/* ── DROPDOWN COLUMN LABEL ── */
.dropdown-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A84C;
  padding: 0 8px 8px;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 6px;
}

/* ── DROPDOWN LINKS ── */
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 0.75rem;
  color: #888;
  text-decoration: none;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.dropdown-menu a:hover {
  background: rgba(201, 168, 76, 0.08);
  color: #C9A84C;
}

/* ── USER DROPDOWN PANEL ── */
.wm-user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  background: #131313;
  border: 1px solid #242424;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  overflow: hidden;
}
.wm-user-dropdown-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #1e1e1e;
}
.wm-user-dropdown-name {
  color: #f0ede6;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-user-dropdown-email {
  color: #555;
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-user-dropdown-body {
  padding: 6px 0;
}
.wm-user-dropdown-divider {
  height: 1px;
  background: #1e1e1e;
  margin: 4px 0;
}

/* ── USER DROPDOWN LINKS ── */
.wm-dd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #999;
  font-size: 12.5px;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.wm-dd-link:hover {
  color: #C9A84C;
}
.wm-dd-link.signout {
  color: #666;
}

/* ── NAV BASE ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95) 0%, transparent 100%);
  transition: padding 0.4s;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
nav.scrolled { padding: 10px 60px; background: rgba(8,8,8,0.97); border-bottom: 1px solid var(--border); }
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem;
  letter-spacing: 0.25em; font-weight: 300;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}
.nav-logo img { height: 52px; width: auto; object-fit: contain; mix-blend-mode: lighten; display: block; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white-dim); text-decoration: none;
  transition: color 0.3s; position: relative;
  min-height: 48px; display: inline-flex; align-items: center;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-dropdown > a::before {
  content: '▾';
  font-size: 0.6rem;
  color: var(--gold);
  order: 2;
  transition: transform 0.3s;
}
.nav-dropdown:hover > a::before { transform: rotate(180deg); }
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  background: rgba(17,17,24,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 10px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.25s ease;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown .dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  border-radius: 6px;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  color: var(--white-dim) !important;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-dropdown .dropdown-menu a:hover { background: var(--gold-dim); color: var(--gold) !important; }
.nav-dropdown .dropdown-menu a::after { display: none !important; }
.drop-icon-sm { font-size: 0.85rem; width: 22px; text-align: center; }
.dropdown-divider { height: 1px; background: var(--gold-border); margin: 6px 10px; }

/* ── NAV BUTTONS ── */
.nav-signin {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid rgba(200,169,110,0.45);
  border-radius: 2px;
  background: rgba(200,169,110,0.06);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-signin:hover { background: rgba(200,169,110,0.14); border-color: var(--gold); color: var(--gold2); }
.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: var(--gold2); transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 28px; height: 1px; background: var(--white); transition: 0.3s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(17,17,24,0.98); flex-direction: column;
  align-items: center; justify-content: center; gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2.4rem;
  font-weight: 300; color: var(--white); text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close-btn {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white); font-size: 1.4rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.mobile-close-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── RESPONSIVE NAV ── */
@media (max-width: 900px) {
  nav { padding: 10px 20px; }
  nav.scrolled { padding: 8px 20px; background: rgba(8,8,8,0.98); }
  .nav-links, .nav-cta { display: none; }
  .nav-right { gap: 10px; align-items: center; }
  .hamburger { display: flex; }
  .nav-signin { font-size: 0.6rem; padding: 8px 14px; letter-spacing: 0.1em; }
  .nav-logo img { height: 48px !important; }
}
