/* ========================================
   SAAS VERDICT NAVIGATION - COMPLETE SYSTEM
   ======================================== */

/* === BASE NAVIGATION === */
.site-navigation {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* === LOGO === */
.nav-logo {
  flex-shrink: 0;
}

.nav-logo a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-logo a:hover {
  opacity: 0.9;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text::first-letter {
  color: #10b981;
}

/* === DESKTOP MENU === */
.desktop-menu {
  display: flex;
  flex: 1;
  margin-left: 3rem;
}

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

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 1.5rem 1.25rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
  position: relative;
}

.menu-link:hover {
  color: #ffffff;
}

.menu-item.active .menu-link {
  color: #ffffff;
}

.menu-item.active .menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #10b981;
  border-radius: 2px 2px 0 0;
}

/* Dropdown Icon */
.dropdown-icon {
  transition: transform 0.3s;
  width: 12px;
  height: 8px;
}

.menu-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* === MEGA MENU === */
.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  min-width: 800px;
  z-index: 1000;
  padding: 2rem;
}

.menu-item:hover .megamenu {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

/* Mega Menu Container */
.megamenu-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* 3-column mega menus */
.megamenu-reviews .megamenu-container,
.megamenu-proxies .megamenu-container {
  grid-template-columns: repeat(3, 1fr);
}

/* 2-column mega menus */
.megamenu-tools .megamenu-container {
  grid-template-columns: repeat(2, 1fr);
}

/* Mega Menu Column */
.megamenu-column {
  min-width: 0;
}

.column-header {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Column Links */
.column-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.column-links li {
  margin: 0;
}

.column-links a {
  display: block;
  padding: 0.625rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.column-links a:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #ffffff;
  transform: translateX(4px);
}

/* View All Link */
.column-links .view-all a {
  color: #10b981;
  font-weight: 600;
  margin-top: 0.5rem;
}

.column-links .view-all a:hover {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.15);
}

/* === MEGA MENU FOOTER === */
.megamenu-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

/* Popular Links */
.popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.popular-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.2s;
}

.popular-tag:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* === SIMPLE DROPDOWN (for About menu) === */
.simple-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  min-width: 240px;
  z-index: 1000;
  padding: 0.5rem;
  list-style: none;
}

.menu-item.has-dropdown:hover .simple-dropdown {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.simple-dropdown li {
  margin: 0;
}

.simple-dropdown li.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0.5rem 0;
}

.simple-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.simple-dropdown a:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #ffffff;
}

/* === NAV ACTIONS (Search + Language + CTA + Mobile Toggle) === */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
}

/* Search Toggle Button */
.search-toggle {
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s;
}

.search-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* === LANGUAGE SWITCHER === */
.language-switcher {
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.current-lang {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0.5rem;
}

.language-switcher:hover .language-dropdown,
.language-switcher.active .language-dropdown {
  opacity: 1;
  visibility: visible;
}

.language-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.language-dropdown a:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #ffffff;
}

.lang-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.lang-name {
  flex: 1;
  font-weight: 500;
}

/* CTA Button */
.cta-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.cta-icon {
  font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* === SEARCH OVERLAY === */
.search-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.25rem 4rem 1.25rem 2rem;
  background: #1a1a1a;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.125rem;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.search-input::placeholder {
  color: #6b7280;
}

.search-close {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.search-close:hover {
  color: #ffffff;
}

.search-results {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 2rem;
  color: #d1d5db;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Laptops (1280-1440px) */
@media (max-width: 1440px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .desktop-menu {
    margin-left: 2rem;
  }
  
  .menu-link {
    padding: 1.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .megamenu {
    min-width: 700px;
  }
}

/* Standard Laptops (1024-1280px) */
@media (max-width: 1280px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .desktop-menu {
    margin-left: 1.5rem;
  }
  
  .menu-link {
    padding: 1.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .megamenu {
    min-width: 600px;
  }
  
  .megamenu-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .megamenu-reviews .megamenu-container,
  .megamenu-proxies .megamenu-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

/* Tablets (768-1024px) */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1rem;
    height: 60px;
  }
  
  .desktop-menu,
  .search-toggle,
  .cta-button {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-actions {
    margin-left: auto;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .search-container {
    padding: 0 1rem;
    margin: 2rem auto;
  }
  
  .search-input {
    font-size: 1rem;
    padding: 1rem 3.5rem 1rem 1.5rem;
  }
  
  .search-close {
    right: 1.5rem;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .logo-text {
    font-size: 1.125rem;
  }
  
  .nav-container {
    height: 56px;
  }
  
  .search-overlay {
    top: 56px;
  }
}
