/* ===========================
   HorosCode — Shared Site Nav
   Source of truth: SellerShops/styles.css
   =========================== */

.container {
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient, linear-gradient(135deg, #6c63ff, #00d4ff));
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}

.site-header {
  position: relative;
  z-index: 1000;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  box-shadow: none;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--primary, #6c63ff));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
  padding: 0;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
}

.nav-links a {
  color: #8888a8;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #e8e8f0;
}

.nav-cta {
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar .nav-cta.btn-primary {
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  color: #fff;
  box-shadow: none;
}

.navbar .nav-cta.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1)),
    visibility var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text, #e8e8f0);
  border-radius: 2px;
  transition: var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

@media (min-width: 769px) and (max-width: 1320px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .navbar .nav-cta.btn-primary {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .logo {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 72px 28px 32px;
    background: rgba(10, 10, 15, 0.98);
    border-left: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    transition: right var(--transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    font-size: 1rem;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
