/* ========================================
   AI TOOLS DIRECTORY MENU STYLES
   ======================================== */

/* ========================================
   MAIN NAVIGATION MENU
   ======================================== */

.aitd-main-menu {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.aitd-menu-brand {
  display: flex;
  align-items: center;
}

.aitd-menu-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.aitd-menu-logo:hover {
  color: #4f46e5;
  text-decoration: none;
}

.aitd-menu-logo-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.aitd-menu-logo-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.aitd-menu-search {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem;
  margin: 0 2rem;
  flex: 1;
  max-width: 400px;
}

.aitd-menu-search-input {
  border: none;
  background: transparent;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  width: 100%;
  outline: none;
}

.aitd-menu-search-input::placeholder {
  color: #9ca3af;
}

.aitd-menu-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #6b7280;
  transition: color 0.2s ease;
}

.aitd-menu-search-btn:hover {
  color: #4f46e5;
}

.aitd-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.aitd-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

.aitd-menu-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.aitd-menu-item {
  position: relative;
}

.aitd-menu-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.aitd-menu-link:hover {
  color: #4f46e5;
  text-decoration: none;
}

.aitd-menu-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.aitd-menu-arrow {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.aitd-menu-dropdown:hover .aitd-menu-arrow {
  transform: rotate(180deg);
}

.aitd-menu-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  padding: 0.5rem 0;
}

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

.aitd-menu-dropdown-item {
  list-style: none;
}

.aitd-menu-dropdown-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.aitd-menu-dropdown-link:hover {
  background: #f9fafb;
  color: #4f46e5;
  text-decoration: none;
}

.aitd-menu-dropdown-icon {
  margin-right: 0.75rem;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.aitd-menu-dropdown-text {
  flex: 1;
}

.aitd-menu-dropdown-count {
  color: #9ca3af;
  font-size: 0.75rem;
}

.aitd-menu-dropdown-more {
  border-top: 1px solid #e5e7eb;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.aitd-menu-stats {
  display: flex;
  gap: 1.5rem;
}

.aitd-menu-stat {
  text-align: center;
}

.aitd-menu-stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #4f46e5;
}

.aitd-menu-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   COMPACT MENU
   ======================================== */

.aitd-compact-menu {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.aitd-compact-menu-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.aitd-compact-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.aitd-compact-menu-item:hover {
  color: #4f46e5;
  background: #f9fafb;
  text-decoration: none;
}

.aitd-compact-menu-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.aitd-compact-menu-text {
  text-align: center;
}

/* ========================================
   SIDEBAR MENU
   ======================================== */

.aitd-sidebar-menu {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aitd-sidebar-menu-section {
  margin-bottom: 2rem;
}

.aitd-sidebar-menu-section:last-child {
  margin-bottom: 0;
}

.aitd-sidebar-menu-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.aitd-sidebar-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aitd-sidebar-menu-list li {
  margin-bottom: 0.5rem;
}

.aitd-sidebar-menu-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.aitd-sidebar-menu-list a:hover {
  background: #f9fafb;
  color: #4f46e5;
  text-decoration: none;
}

.aitd-sidebar-category-item a {
  justify-content: space-between;
}

.aitd-sidebar-category-count {
  color: #9ca3af;
  font-size: 0.75rem;
}

.aitd-sidebar-featured {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aitd-sidebar-featured-tool {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.aitd-sidebar-featured-tool:hover {
  border-color: #4f46e5;
}

.aitd-sidebar-featured-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.aitd-sidebar-featured-info {
  flex: 1;
  min-width: 0;
}

.aitd-sidebar-featured-title {
  display: block;
  text-decoration: none;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aitd-sidebar-featured-title:hover {
  color: #4f46e5;
  text-decoration: none;
}

/* ========================================
   FOOTER MENU
   ======================================== */

.aitd-footer-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.aitd-footer-menu-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.aitd-footer-menu-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aitd-footer-menu-column li {
  margin-bottom: 0.5rem;
}

.aitd-footer-menu-column a {
  text-decoration: none;
  color: #6b7280;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.aitd-footer-menu-column a:hover {
  color: #4f46e5;
  text-decoration: none;
}

/* ========================================
   CATEGORY MENU
   ======================================== */

.aitd-category-menu {
  margin: 2rem 0;
}

.aitd-category-grid {
  display: grid;
  gap: 1.5rem;
}

.aitd-category-grid-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.aitd-category-grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #4f46e5;
}

.aitd-category-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.aitd-category-link:hover {
  text-decoration: none;
  color: inherit;
}

.aitd-category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.aitd-category-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.aitd-category-count {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.aitd-category-description {
  font-size: 1rem;
  color: white;
  line-height: 1.5;
  margin: 0;
}

.aitd-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aitd-category-list-item {
  border-bottom: 1px solid #e5e7eb;
}

.aitd-category-list-item:last-child {
  border-bottom: none;
}

.aitd-category-list-item .aitd-category-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  transition: background-color 0.2s ease;
}

.aitd-category-list-item .aitd-category-link:hover {
  background: #f9fafb;
}

.aitd-category-list-item .aitd-category-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
  width: 24px;
  text-align: center;
}

.aitd-category-list-item .aitd-category-name {
  flex: 1;
  margin: 0;
}

.aitd-category-list-item .aitd-category-count {
  margin: 0;
  color: #9ca3af;
}

/* ========================================
   QUICK LINKS
   ======================================== */

.aitd-quick-links {
  margin: 1.5rem 0;
}

.aitd-quick-links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.aitd-quick-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.aitd-quick-link:hover {
  background: #f9fafb;
  border-color: #4f46e5;
  color: #4f46e5;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
}

.aitd-quick-link-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.aitd-quick-link-text {
  font-weight: 500;
}

/* Quick Links Buttons Style */
.aitd-quick-links-buttons .aitd-quick-links-container {
  justify-content: center;
}

.aitd-quick-links-buttons .aitd-quick-link {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
  font-weight: 600;
}

.aitd-quick-links-buttons .aitd-quick-link:hover {
  background: #4338ca;
  border-color: #4338ca;
  color: white;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.aitd-breadcrumb {
  margin: 1rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.aitd-breadcrumb-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.aitd-breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.aitd-breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.aitd-breadcrumb-link {
  text-decoration: none;
  color: #6b7280;
  transition: color 0.2s ease;
}

.aitd-breadcrumb-link:hover {
  color: #4f46e5;
  text-decoration: none;
}

.aitd-breadcrumb-text {
  color: #111827;
  font-weight: 500;
}

.aitd-breadcrumb-separator {
  margin: 0 0.5rem;
  color: #9ca3af;
}

.aitd-breadcrumb-current .aitd-breadcrumb-text {
  color: #4f46e5;
  font-weight: 600;
}

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

@media (max-width: 1024px) {
  .aitd-menu-header {
    padding: 1rem;
  }
  
  .aitd-menu-content {
    padding: 0 1rem 1rem;
  }
  
  .aitd-menu-search {
    margin: 0 1rem;
  }
  
  .aitd-menu-stats {
    display: none;
  }
}

@media (max-width: 768px) {
  .aitd-menu-toggle {
    display: flex;
  }
  
  .aitd-menu-search {
    display: none;
  }
  
  .aitd-menu-content {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem 1rem;
  }
  
  .aitd-menu-items {
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
  }
  
  .aitd-menu-item {
    border-bottom: 1px solid #e5e7eb;
  }
  
  .aitd-menu-item:last-child {
    border-bottom: none;
  }
  
  .aitd-menu-link {
    padding: 1rem 0;
    font-size: 1rem;
  }
  
  .aitd-menu-dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f9fafb;
    margin-left: 1rem;
    border-radius: 0;
    padding: 0;
  }
  
  .aitd-menu-dropdown-link {
    padding: 0.75rem 1rem;
  }
  
  .aitd-compact-menu-items {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .aitd-compact-menu-item {
    font-size: 0.7rem;
  }
  
  .aitd-compact-menu-icon {
    font-size: 1.25rem;
  }
  
  .aitd-footer-menu {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .aitd-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .aitd-quick-links-container {
    justify-content: center;
  }
  
  .aitd-breadcrumb-nav {
    padding: 0 1rem;
  }
  
  .aitd-breadcrumb-list {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .aitd-menu-header {
    padding: 0.75rem;
  }
  
  .aitd-menu-content {
    padding: 0 0.75rem 0.75rem;
  }
  
  .aitd-compact-menu-items {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }
  
  .aitd-compact-menu-item {
    padding: 0.25rem;
  }
  
  .aitd-category-grid {
    grid-template-columns: 1fr;
  }
  
  .aitd-quick-links-container {
    flex-direction: column;
  }
  
  .aitd-quick-link {
    justify-content: center;
  }
  
  .aitd-footer-menu {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aitd-menu-content {
  animation: menuSlideDown 0.3s ease-out;
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
  .aitd-main-menu,
  .aitd-compact-menu,
  .aitd-sidebar-menu,
  .aitd-category-grid-item,
  .aitd-quick-link {
    background: #1f2937;
    border-color: #374151;
  }
  
  .aitd-menu-logo,
  .aitd-menu-link,
  .aitd-sidebar-menu-title,
  .aitd-category-name,
  .aitd-quick-link {
    color: #f9fafb;
  }
  
  .aitd-menu-search {
    background: #374151;
    border-color: #4b5563;
  }
  
  .aitd-menu-search-input {
    color: #f9fafb;
  }
  
  .aitd-menu-search-input::placeholder {
    color: #9ca3af;
  }
  
  .aitd-menu-dropdown-content {
    background: #1f2937;
    border-color: #374151;
  }
  
  .aitd-menu-dropdown-link:hover {
    background: #374151;
  }
  
  .aitd-footer-menu {
    background: #111827;
    border-color: #374151;
  }
  
  .aitd-breadcrumb {
    border-color: #374151;
  }
  
  .aitd-breadcrumb-text {
    color: #f9fafb;
  }
  
  .aitd-breadcrumb-link {
    color: #9ca3af;
  }
} 