/* VALLEYTAINMENT Navigation Styles */

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--accent);
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
}

.logo:hover {
  color: var(--primary);
  transform: scale(1.05);
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  margin: 0 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 8px;
}

.nav-list > li > a:hover,
.nav-list > li > button:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

/* Dropdown Styles */
.dropdown-item {
  position: relative;
}

.dropdown-toggle {
  position: relative;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.dropdown-item.has-dropdown:hover .dropdown-toggle i.fa-chevron-down,
.dropdown-item.has-dropdown:focus-within .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-item:hover .dropdown-menu,
.dropdown-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

/* CTA and Special Buttons */
.cta-item a,
.donate-item a {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
  transition: all 0.3s ease;
}

.cta-item a:hover,
.donate-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
  color: white !important;
}

.donate-item a {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 4px 15px rgba(131, 56, 236, 0.3);
}

.donate-item a:hover {
  box-shadow: 0 6px 20px rgba(131, 56, 236, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu-toggle .hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mobile-menu-toggle .hamburger-icon span {
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

/* Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-container {
    padding: 0.5rem 0.125rem;
    height: 100%;
    align-items: center;
    max-width: 100vw;
    overflow: hidden;
  }

  .nav-menu {
    margin: 0 1rem;
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .nav-list {
    gap: 0.25rem;
  }

  .nav-list > li > a,
  .nav-list > li > button {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .cta-item a,
  .donate-item a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-menu {
    display: none !important;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  header.menu-open .nav-menu {
    display: flex !important;
    right: 0;
  }

  header.menu-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-list > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list > li:last-child {
    border-bottom: none;
  }

  .nav-list > li > a,
  .nav-list > li > button {
    width: 100%;
    padding: 1rem;
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(20, 30, 50, 0.9);
    border: none;
    box-shadow: none;
  }

  .dropdown-item.has-dropdown .dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
  }

  .dropdown-item.has-dropdown.open .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

@media (min-width: 769px) {
  .header-container {
    padding: 0.75rem 2rem;
    max-width: 1400px;
  }

  .nav-menu {
    margin: 0 3rem;
  }

  .nav-list {
    gap: 1rem;
  }

  .nav-list > li > a,
  .nav-list > li > button {
    padding: 0.875rem 1.25rem;
  }
}
