/**
 * Header Builder & Navigation Stylesheet
 * TJAZZMUSIC Theme Framework
 * Exact Replica of the Luxury Floating Capsule Header Bar
 */

/* Header Container */
.site-header.tjazz-header-builder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-transparent {
  background: transparent;
}

/* Main Header Bar Row */
.header-main-row {
  background: rgba(14, 1, 4, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 12px 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.header-main-row .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Header on Scroll */
.header-sticky-enabled.is-sticky .header-main-row {
  background: rgba(10, 1, 3, 0.98);
  padding: 8px 0;
  border-bottom-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.15);
}

/* 1. Left Branding / Logo */
.site-branding,
.site-branding .site-title-logo,
.branding-wrap {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-height: 48px;
}

.logo-icon-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-branding img,
.site-title-logo img,
.custom-logo,
.custom-logo-link img,
.tjazz-header-logo-img,
.logo-icon-emblem img {
  max-height: 44px !important;
  max-width: 170px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: inline-block !important;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text-primary {
  font-family: var(--font-display, 'Cinzel', 'Playfair Display', serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.logo-text-secondary {
  font-family: var(--font-display, 'Cinzel', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-gold, #d4af37);
  letter-spacing: 0.32em;
  margin-top: 3px;
}

/* 2. Center: Luxury Capsule Navigation Pill */
.desktop-nav-menu.nav-capsule {
  background: rgba(22, 2, 7, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 50px;
  padding: 4px 6px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 4px 18px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
}

.desktop-nav-menu .tjazz-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav-menu .tjazz-nav-list li {
  position: relative;
}

.desktop-nav-menu .tjazz-nav-list li a {
  color: var(--text-light-base, #fbf7f4);
  text-decoration: none;
  font-family: var(--font-display, 'Cinzel', 'Playfair Display', serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  display: inline-block;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.desktop-nav-menu .tjazz-nav-list li a:hover {
  color: var(--accent-gold-light, #ffd875);
  background: rgba(212, 175, 55, 0.12);
}

/* Active Gold Gradient Pill */
.desktop-nav-menu .tjazz-nav-list li.current-menu-item > a,
.desktop-nav-menu .tjazz-nav-list li.is-active > a,
.desktop-nav-menu .tjazz-nav-list li:hover.current-menu-item > a {
  background: linear-gradient(135deg, #ffd875 0%, #d4af37 50%, #aa820a 100%) !important;
  color: #120106 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45) !important;
  text-shadow: none;
}

/* Dropdown Submenus */
.desktop-nav-menu .tjazz-nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(20, 2, 6, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold-subtle, rgba(212, 175, 55, 0.3));
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
  min-width: 210px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.desktop-nav-menu .tjazz-nav-list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(6px);
}

.desktop-nav-menu .tjazz-nav-list .sub-menu a {
  padding: 8px 18px;
  display: block;
  font-size: 0.76rem;
  color: var(--text-light-muted, #d4b8be);
  border-radius: 0;
}

.desktop-nav-menu .tjazz-nav-list .sub-menu a:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold-light, #ffd875);
  padding-left: 22px;
}

/* 3. Right: Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Round Shopping Bag Button */
.header-action-btn.btn-cart-trigger {
  background: rgba(24, 2, 7, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-gold, #d4af37);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.header-action-btn.btn-cart-trigger:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold, #d4af37);
  color: #ffd875;
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.tjazz-cart-count-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--burgundy-deep, #610d21);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid var(--accent-gold, #d4af37);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gold Pill CTA Button ("BOOK CLASS") */
.btn-header-cta {
  background: linear-gradient(135deg, #ffd875 0%, #d4af37 50%, #aa820a 100%) !important;
  color: #120106 !important;
  font-family: var(--font-display, 'Cinzel', 'Playfair Display', serif) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 50px !important;
  padding: 11px 26px !important;
  border: none !important;
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-block !important;
  white-space: nowrap !important;
}

.btn-header-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.65) !important;
  background: linear-gradient(135deg, #fff2be 0%, #e5c04b 50%, #b8911c 100%) !important;
}

/* 4. Mobile Hamburger Toggle */
.mobile-nav-trigger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(24, 2, 7, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mobile-nav-trigger:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-gold, #d4af37);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-gold, #d4af37);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 5. Responsive Media Queries */
@media (max-width: 1280px) {
  .desktop-nav-menu .tjazz-nav-list li a {
    padding: 7px 12px;
    font-size: 0.72rem;
  }
  .btn-header-cta {
    padding: 9px 18px !important;
    font-size: 0.76rem !important;
  }
}

@media (max-width: 1100px) {
  .desktop-nav-menu.nav-capsule {
    display: none !important;
  }
  .mobile-nav-trigger {
    display: flex !important;
  }
  .btn-header-cta.desktop-only {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .logo-text-primary {
    font-size: 1.15rem;
  }
  .logo-text-secondary {
    font-size: 0.6rem;
  }
  .tjazz-header-logo-img {
    height: 34px;
  }
  .header-main-row .header-container {
    padding: 0 14px;
  }
}

/* 6. Mobile Off-Canvas Drawer (Matches Luxury Theme) */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 330px;
  max-width: 88vw;
  height: 100%;
  background: linear-gradient(180deg, #180208 0%, #0d0104 100%);
  border-left: 1px solid var(--border-gold-subtle, rgba(212, 175, 55, 0.3));
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.9);
  padding: 28px 22px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer-backdrop.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold, #d4af37);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: var(--accent-gold, #d4af37);
  color: #1a0107;
}

.mobile-nav-list {
  list-style: none;
  padding: 16px 0;
  margin: 0;
  flex-grow: 1;
}

.mobile-nav-list li {
  margin-bottom: 6px;
}

.mobile-nav-list a {
  color: var(--text-light-base, #fbf7f4);
  text-decoration: none;
  font-family: var(--font-display, 'Cinzel', 'Playfair Display', serif);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  padding: 10px 16px;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list li.current-menu-item a {
  background: linear-gradient(135deg, #ffd875 0%, #d4af37 50%, #aa820a 100%);
  color: #120106;
  font-weight: 800;
}

.mobile-drawer-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-drawer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mobile-drawer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold, #d4af37);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.mobile-drawer-socials a:hover {
  background: var(--accent-gold, #d4af37);
  color: #1a0107;
}

/* Fullscreen Search Modal */
.search-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 1, 4, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-overlay-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-dialog {
  max-width: 650px;
  width: 90%;
  position: relative;
  text-align: center;
}

.search-overlay-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--accent-gold, #d4af37);
  font-size: 1.8rem;
  cursor: pointer;
}

.search-overlay-tag {
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.search-overlay-heading {
  font-family: var(--font-display, 'Cinzel', 'Playfair Display', serif);
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
}

.search-overlay-input {
  width: 100%;
  padding: 16px 54px 16px 22px;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--accent-gold, #d4af37);
  border-radius: 50px;
  color: #fff;
  outline: none;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.search-overlay-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--accent-gold, #d4af37);
  border: none;
  border-radius: 50%;
  color: #1a0107;
  font-size: 1.1rem;
  cursor: pointer;
}
