/* Enhanced Navigation Styles for Rich Sitelinks */

/* Main navigation improvements */
.navbar {
  position: relative;
}

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

/* Enhanced dropdown for better structure recognition */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  min-width: 400px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
}

.dropdown-header p {
  font-size: 0.9rem;
  color: #718096;
  margin: 0;
}

.dropdown-grid {
  display: grid;
  gap: 1rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.dropdown-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateX(4px);
}

.dropdown-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.dropdown-content {
  flex: 1;
}

.dropdown-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.25rem 0;
}

.dropdown-content p {
  font-size: 0.85rem;
  color: #718096;
  margin: 0;
  line-height: 1.4;
}

.dropdown-arrow {
  flex-shrink: 0;
  color: #cbd5e0;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-arrow {
  color: #4a5568;
  transform: translateX(2px);
}

/* Breadcrumb navigation for enhanced structure */
.breadcrumb-nav {
  background: #f8fafc;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #2d3748;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  color: #cbd5e0;
  margin-left: 0.5rem;
}

.breadcrumb-item:last-child {
  color: #2d3748;
  font-weight: 500;
}

/* Site structure indicators for crawlers */
.site-structure {
  display: none; /* Hidden from users but visible to crawlers */
}

.main-navigation-list {
  display: none;
}

/* Enhanced footer navigation */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 1rem 0;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 0.5rem;
}

.footer-nav-list a {
  color: #718096;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: #4a5568;
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 1rem;
  }
  
  .dropdown-grid {
    grid-template-columns: 1fr;
  }
  
  .breadcrumb-nav {
    padding: 0.75rem 0;
  }
  
  .breadcrumb-list {
    font-size: 0.8rem;
  }
}

/* Utility classes for SEO structure */
.seo-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}