/* ════════════════════════════════════════════════════════════
   header.css — Flash Frog Music
   Sticky nav bar, logo, links, nav buttons, Sheet Music
   dropdown. Used on every page.
   Depends on: global.css
   ════════════════════════════════════════════════════════════ */

/* ── Nav band ───────────────────────────────────────────────── */
#top-nav-band {
  background: #4a4a49;
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 10001;
}

#top-nav-band .nav-inner {
  max-width: var(--page-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Logo ─────────────────────────────────────────────────── */
#top-nav-band .nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 40px;
  margin-top: 10px;
  text-decoration: none;
  opacity: 1;
  line-height: 0;
}
#top-nav-band .nav-logo img {
  display: block;
  height: 64px;
  width: auto;
}
#top-nav-band .nav-logo:hover { opacity: 0.85; }

/* ── Nav links ────────────────────────────────────────────── */
#top-nav-band .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  margin-top: 10px;
}

#top-nav-band a {
  font-family: var(--font);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}
#top-nav-band a:hover { opacity: 1; }

/* ── Nav buttons (right side) ─────────────────────────────── */
#top-nav-band .nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Sign In — plain text link, softer than buttons */
.nav-signin-link {
  font-family: var(--font);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  white-space: nowrap;
  padding: 0 4px;
  transition: color var(--transition-fast);
}
.nav-signin-link:hover { color: #fff; opacity: 1; }


/* ── Icon buttons (Cart, Account) ─────────────────────────── */
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  text-decoration: none;
}
.nav-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

/* Cart badge */
.nav-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2856;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font);
  line-height: 1;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ── Account icon wrapper + dropdown ──────────────────────── */
.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-account-dd {
  position: absolute;
  top: calc(100% + 29px);
  right: 0;
  background: #4a4a49;
  border-radius: var(--radius-md);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  width: 180px;
  z-index: 300;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-account-dd.visible { opacity: 1; pointer-events: all; }

/* Caret arrow */
.nav-account-dd::before {
  content: '';
  position: absolute;
  top: -9px;
  right: 14px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #4a4a49;
}

.acct-dd-link {
  font-family: var(--font);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: #ffffff !important;
  text-decoration: none;
  padding: 9px 20px;
  opacity: 0.85;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.acct-dd-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.acct-dd-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 6px 0;
}

/* ── Sheet Music dropdown ─────────────────────────────────── */
#sheet-music-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#sheet-music-dd {
  position: absolute;
  top: calc(100% + 37px);
  left: 0;
  background: #4a4a49;
  border-radius: var(--radius-md);
  padding: 18px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 200px;
  z-index: 300;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#sheet-music-dd.visible { opacity: 1; pointer-events: all; }

#sheet-music-dd::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #4a4a49;
}

.sm-dd-link {
  font-family: var(--font);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: #ffffff !important;
  text-decoration: none;
  padding: 8px 4px;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}
.sm-dd-link:hover { opacity: 1; }

/* ── Mobile drawer divider ────────────────────────────────── */
.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 8px 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  #top-nav-band .nav-inner { padding: 0 20px; }
}

@media (max-width: 1080px) {
  #top-nav-band .nav-links a:nth-child(3),
  #top-nav-band .nav-links a:nth-child(4) { display: none; }
  .nav-hamburger       { display: flex; align-self: center; }
  .nav-mobile-drawer   { top: 74px; }
}

@media (max-width: 900px) {
  #top-nav-band                  { height: 56px; }
  #top-nav-band .nav-inner       { align-items: center; }
  #top-nav-band .nav-logo        { margin-right: 20px; align-items: center; margin-top: 12px; }
  #top-nav-band .nav-logo img    { height: 44px; }
  #top-nav-band .nav-links       { gap: 14px; flex: 1; margin-top: 12px; }
  #top-nav-band .nav-buttons     { gap: 8px; }
  #top-nav-band .nav-links a     { font-size: 13px; }
  #top-nav-band .nav-links a:nth-child(3),
  #top-nav-band .nav-links a:nth-child(4) { display: none; }
  .nav-signin-link               { display: none; }
  .nav-hamburger                 { display: flex; align-self: center; }
  .nav-mobile-drawer             { top: 56px; }
}

@media (max-width: 600px) {
  #top-nav-band                  { height: 52px; }
  #top-nav-band .nav-inner       { align-items: center; }
  #top-nav-band .nav-logo        { margin-right: 0; align-items: center; margin-top: 8px; }
  #top-nav-band .nav-logo img    { height: 44px; }
  #top-nav-band .nav-links       { display: none !important; }
  #top-nav-band .nav-buttons     { display: none !important; }
  .nav-hamburger                 { display: flex !important; align-self: center; }
  .nav-mobile-drawer             { top: 52px; }
}
