/* ============================================================
   nav-unified.css
   Shared site navigation styling — desktop cart/discord icons
   plus the mobile hamburger / icons / search bar (m-ham, m-icons,
   m-search). Originally lived inline only on index.html; this
   file makes the same nav render identically on every page.
   ============================================================ */

/* ---- Desktop: cart icon ---- */
.nav-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 0.6rem;
  border: 1px solid #7a5418;
  color: #c8922a;
  text-decoration: none;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.nav-cart-link:hover {
  background: rgba(200,146,42,0.1);
  box-shadow: 0 0 16px rgba(200,146,42,0.2);
  border-color: #c8922a;
}
.nav-cart-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  background: #c0392b;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 0.58rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  box-shadow: 0 0 0 2px #0a0704, 0 0 10px rgba(192,57,43,.75);
}

/* ---- Desktop: discord / facebook nav links ---- */
.discord-nav-link {
  font-family: 'Cinzel', serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--text-dim) !important;
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  gap: 0.36rem !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.discord-nav-link:hover { color: var(--gold-lt) !important; }
.discord-nav-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: currentColor;
  opacity: 0.95;
  transition: transform .2s ease;
  transform: translateY(-0.5px);
}
.discord-nav-icon svg { display: block; width: 12px; height: 12px; }
.discord-nav-link:hover .discord-nav-icon { transform: translateY(-1.5px); }
.nav-community-links { flex-shrink: 0 !important; }

@media (max-width: 900px) {
  .nav-community-label { display: none !important; }
  .nav-community-links { gap: 0.3rem !important; }
  .discord-nav-link { padding: 0.3rem !important; }
}

/* ============================================================
   Desktop: nav search box + suggestions dropdown
   (mobile-adaptive.css already handles the mobile .m-search bar;
   this covers the >900px .nav-search-item shown in the nav row)
   ============================================================ */
.nav-search-item {
  display: flex;
  align-items: center;
}
.nav-search {
  position: relative;
  display: flex;
  width: 280px;
}
.nav-search-input {
  flex: 1;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  padding: 0.72rem 0.95rem;
  background: rgba(10,7,4,0.88);
  border: 1px solid var(--gold-dk, #b8891a);
  border-right: none;
  color: var(--text-pale, #fff1b8);
  outline: none;
}
.nav-search-input::placeholder { color: var(--text-dim, #caa23a); }
.nav-search-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.72rem 1rem;
  background: linear-gradient(180deg, var(--gold, #f5c542) 0%, var(--gold-dk, #b8891a) 100%);
  color: #1a0f04;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(10,7,4,0.985);
  border: 1px solid var(--gold-dk, #b8891a);
  box-shadow: 0 16px 36px rgba(0,0,0,0.48);
  z-index: 9999;
  text-align: left;
  max-height: 76vh;
  overflow-y: auto;
}
.search-suggestions[hidden] { display: none; }
.search-suggestion {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-pale, #fff1b8);
  padding: 0.45rem 0.55rem;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(122,84,24,0.24);
  transition: background 0.18s ease, color 0.18s ease;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.45rem;
  align-items: center;
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion-thumb {
  width: 38px; height: 38px; min-width: 38px;
  object-fit: contain; object-position: center; display: block;
  background: radial-gradient(circle at 50% 24%, rgba(255,255,255,0.06), rgba(0,0,0,0) 58%), rgba(0,0,0,0.22);
  border: 1px solid rgba(122,84,24,0.32);
  padding: 3px; border-radius: 8px;
}
.search-suggestion-body { min-width: 0; overflow: hidden; }
.search-suggestion strong { color: var(--gold-lt, #ffd95e); font-family: 'Cinzel', serif; font-weight: 600; }
.search-suggestion small {
  display: block; color: var(--text-dim, #caa23a); margin-top: 0.16rem;
  font-size: 0.64rem; line-height: 1.2; white-space: normal; word-break: break-word; overflow-wrap: anywhere;
}
.search-suggestion:hover, .search-suggestion.active {
  background: rgba(200,146,42,0.08); color: var(--gold-lt, #ffd95e);
}
.search-preview { display: none !important; }

@media (max-width: 900px) {
  .nav-search-item { display: none !important; }
}

/* ============================================================
   Desktop: nav-links list reset + link styling
   Fills the gap on pages whose inline <style> never defined
   these — without it .nav-links renders as a plain bulleted
   list with default blue/underlined links instead of the
   horizontal gold uppercase nav bar used site-wide.
   ============================================================ */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim, #caa23a);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--gold-lt, #ffd95e);
}
.nav-links a.active {
  color: var(--gold, #f5c542);
  border-bottom: 1px solid var(--gold-dk, #b8891a);
  padding-bottom: 2px;
}
.nav-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.5rem 1.4rem;
  background: transparent;
  color: var(--gold, #f5c542);
  border: 1px solid var(--gold-dk, #b8891a);
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s;
}
.nav-cta:hover {
  background: rgba(200,146,42,0.1);
}

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


   This is the base hidden/positioned state for .dropdown-menu —
   without it the category list renders as a plain expanded
   block in the nav instead of a hover popover.
   ============================================================ */
.has-dropdown {
  padding-bottom: 16px;
  margin-bottom: -16px;
}
.has-dropdown > a::after {
  content: ' \25BE';
  font-size: 0.55rem;
  opacity: 0.6;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,7,4,0.97);
  border: 1px solid var(--gold-dk, #b8891a);
  min-width: 200px;
  z-index: 600;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.dropdown-menu a,
.dropdown-menu .dropdown-item-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim, #caa23a);
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--stone, #2a2218);
  transition: color 0.2s, background 0.2s;
  text-align: left;
  cursor: pointer;
}
.dropdown-menu a:last-child,
.dropdown-menu .dropdown-item-btn:last-child {
  border-bottom: none;
}
.dropdown-menu a:hover,
.dropdown-menu .dropdown-item-btn:hover {
  color: var(--gold-lt, #ffd95e);
  background: rgba(200,146,42,0.06);
}
.nav-links li.open .dropdown-menu,
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

@media (max-width: 900px) {
  .has-dropdown { padding-bottom: 0; margin-bottom: 0; }
  .has-dropdown > a::after { content: ''; }
}
