/* Navigation Fix - Ensure Desktop Navigation Displays Horizontally */

/* Debug: Add visible border to test if CSS is loading */
.nav-list[data-astro-cid-3ef6ksr2] {
  border: 2px solid red !important; /* Debug border - remove after testing */
}

/* Base nav-list styles to match Astro */
.nav-list[data-astro-cid-3ef6ksr2] {
  display: flex !important;
  list-style: none !important;
  gap: var(--space-xl) !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-list[data-astro-cid-3ef6ksr2] li[data-astro-cid-3ef6ksr2] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link[data-astro-cid-3ef6ksr2] {
  text-decoration: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  color: var(--color-primary);
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
}

.nav-link[data-astro-cid-3ef6ksr2]:hover {
  opacity: 0.5;
}

/* Force horizontal layout for desktop navigation */
@media screen and (min-width: 1221px) {
  .nav-list[data-astro-cid-3ef6ksr2] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-xl) !important;
  }

  .nav-list[data-astro-cid-3ef6ksr2] li[data-astro-cid-3ef6ksr2] {
    display: inline-block !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .nav-link[data-astro-cid-3ef6ksr2] {
    display: inline-block !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 1rem !important;
  }

  .nav-link[data-astro-cid-3ef6ksr2]:before {
    display: none !important;
  }

  .nav-link[data-astro-cid-3ef6ksr2]:hover {
    background: none !important;
    transform: none !important;
  }

  .nav-link[data-astro-cid-3ef6ksr2]:hover:before {
    display: none !important;
  }

  .nav[data-astro-cid-3ef6ksr2] {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
  }

  .mobile-menu-toggle[data-astro-cid-3ef6ksr2] {
    display: none !important;
  }
}

/* Responsive styles to match Astro */
@media screen and (max-width: 1024px) {
  .nav-list[data-astro-cid-3ef6ksr2] {
    gap: var(--space);
  }

  .nav-link[data-astro-cid-3ef6ksr2] {
    font-size: 0.9375rem;
  }
}

/* Mobile styles */
@media screen and (max-width: 1220px) {
  .mobile-menu-toggle[data-astro-cid-3ef6ksr2] {
    display: flex !important;
  }

  .nav[data-astro-cid-3ef6ksr2] {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-left: 2px solid var(--color-accent);
  }

  .nav-open[data-astro-cid-3ef6ksr2] {
    right: 0;
    animation: slideInMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-list[data-astro-cid-3ef6ksr2] {
    flex-direction: column;
    width: 100%;
  }

  .nav-list[data-astro-cid-3ef6ksr2] li[data-astro-cid-3ef6ksr2] {
    opacity: 0;
    transform: translate(20px);
    animation: fadeInNavItem 0.5s ease forwards;
  }

  .nav-list[data-astro-cid-3ef6ksr2] li[data-astro-cid-3ef6ksr2]:nth-child(1) {
    animation-delay: 0.1s;
  }

  .nav-list[data-astro-cid-3ef6ksr2] li[data-astro-cid-3ef6ksr2]:nth-child(2) {
    animation-delay: 0.2s;
  }

  .nav-list[data-astro-cid-3ef6ksr2] li[data-astro-cid-3ef6ksr2]:nth-child(3) {
    animation-delay: 0.3s;
  }

  .nav-link[data-astro-cid-3ef6ksr2] {
    font-size: 1.125rem;
    position: relative;
    padding: var(--space) var(--space-lg);
    border-radius: var(--space-xs);
    transition: all 0.3s ease;
    display: block;
    text-align: center;
  }

  .nav-link[data-astro-cid-3ef6ksr2]:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
  }

  .nav-link[data-astro-cid-3ef6ksr2]:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translate(5px);
  }

  .nav-link[data-astro-cid-3ef6ksr2]:hover:before {
    width: 100%;
  }
}

/* Keyframe animations */
@keyframes slideInMenu {
  0% {
    transform: translate(100%);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}

@keyframes fadeInNavItem {
  to {
    opacity: 1;
    transform: translate(0);
  }
}
