/* Floating Navigation Styles - Icetribe */

@view-transition {
  navigation: none;
}

html {
  background: var(--color-bg-page, #f4f4f4);
}

.icetribe-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  width: 100%;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  will-change: background-color;
}

.icetribe-nav.nav-solid {
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.icetribe-nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

.icetribe-nav .nav-logo {
  color: white;
  font-family: var(--font-brand, 'Emilys Candy', cursive);
  font-size: 1.875rem;
  font-weight: 400;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.icetribe-hero h1 {
  font-family: var(--font-brand, 'Emilys Candy', cursive);
  font-weight: 400;
}

.icetribe-nav .nav-logo:hover,
.icetribe-nav .nav-logo:focus {
  color: var(--color-accent, #8A42A8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.icetribe-nav .hamburger-btn {
  display: none;
  flex-direction: column;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 1001;
}

.icetribe-nav .hamburger-line {
  width: 25px;
  height: 3px;
  margin: 3px 0;
  background-color: white;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icetribe-nav .hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.icetribe-nav .hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.icetribe-nav .hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.icetribe-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.icetribe-nav .nav-list {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icetribe-nav .nav-item {
  margin: 0;
}

.icetribe-nav .nav-link {
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 4px;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease, background-color 0.2s ease, text-shadow 0.2s ease;
}

.icetribe-nav .nav-link:hover,
.icetribe-nav .nav-link:focus {
  color: var(--color-accent, #8A42A8);
  background: rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.icetribe-nav .nav-social {
  display: flex;
  align-items: center;
}

.icetribe-nav .nav-social .ananke-socials a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease, transform 0.2s ease;
}

.icetribe-nav .nav-social .ananke-socials a:hover,
.icetribe-nav .nav-social .ananke-socials a:focus {
  color: var(--color-accent, #8A42A8);
  transform: translateY(-1px);
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
}

html {
  scroll-behavior: smooth;
}

.icetribe-nav:focus-within {
  outline: 2px solid var(--color-accent, #8A42A8);
  outline-offset: -2px;
}

header,
main {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: 0;
}

@media (max-width: 1024px) {
  .icetribe-nav .hamburger-btn {
    display: flex;
  }

  .icetribe-nav .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .icetribe-nav .nav-menu.active {
    right: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  }

  .icetribe-nav .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .icetribe-nav .nav-link {
    display: block;
    width: 200px;
    padding: 1rem 2rem;
    font-size: 1.25rem;
  }

  .icetribe-nav .nav-social {
    margin-top: 1rem;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }
}

@supports not (backdrop-filter: blur(15px)) {
  .icetribe-nav {
    background: rgba(0, 0, 0, 0.98);
  }

  @media (max-width: 1024px) {
    .icetribe-nav .nav-menu {
      background: rgba(0, 0, 0, 0.98);
    }
  }
}

@media (prefers-color-scheme: dark) {
  .icetribe-nav {
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .icetribe-nav,
  .icetribe-nav .hamburger-line,
  .icetribe-nav .nav-link,
  .icetribe-nav .nav-logo,
  .icetribe-nav .nav-menu,
  .icetribe-nav .nav-social .ananke-socials a {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
