/* ==================== SHARED NAV STYLES ==================== */
/* Drop this file in: /assets/css/nav.css                      */
/* Link it in every page: <link rel="stylesheet" href="../../assets/css/nav.css"> */

.nav-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #4dd4ff;
  z-index: 1000;
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.site-title-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-title-text {
  font-size: 18px;
  font-weight: 600;
  color: #4dd4ff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s;
}

.site-title-link:hover .site-title-text {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 14px;
  color: #86868b;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.breadcrumbs a {
  color: #ff6600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.breadcrumbs a:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.breadcrumbs span {
  color: #86868b;
}

.breadcrumbs .current-page {
  color: #4dd4ff;
  font-weight: 500;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-shrink: 0;
}

.nav-links a {
  font-size: 14px;
  color: #4dd4ff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.nav-links a.shop-link {
  color: #ff6600;
}

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #4dd4ff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger open state — X */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #4dd4ff;
  padding: 16px max(20px, env(safe-area-inset-left));
  gap: 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: #4dd4ff;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid #e8e8ed;
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: #ff6600;
  padding-left: 8px;
}

.mobile-menu a.shop-link {
  color: #ff6600;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 769px) {
  .dna-logo-canvas { display: none; }
  .site-title-text { display: inline; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

@media (max-width: 768px) {
  .dna-logo-canvas { display: block; vertical-align: middle; }
  .site-title-text { display: none; }
  .nav-links { display: none; } /* hide desktop links */
  .hamburger { display: flex; } /* show hamburger */
}
