/**
 * Breadcrumbs Navigation Styles
 */

.breadcrumbs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  margin-top: 90px; /* Clear fixed navigation */
  position: relative;
  z-index: 10; /* Below nav (z-index: 1000) */
}

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

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #666;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #999;
  font-size: 1.1rem;
  font-weight: 300;
}

.breadcrumb-item a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #666;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.05);
}

.breadcrumb-item a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.breadcrumb-current {
  color: #1a1a1a;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .breadcrumbs {
    padding: 0.75rem 0.5rem 0;
    margin-top: 70px; /* Smaller nav on mobile */
  }

  .breadcrumb-list {
    font-size: 0.8125rem;
    gap: 0.375rem;
  }

  .breadcrumb-item a span:not(.breadcrumb-current) {
    display: none;
  }

  .breadcrumb-item:first-child a span {
    display: inline; /* Show "Home" text on mobile */
  }

  .breadcrumb-current {
    padding: 0.25rem 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .breadcrumb-item a {
    text-decoration: underline;
  }

  .breadcrumb-current {
    font-weight: 700;
  }
}

/* Print styles */
@media print {
  .breadcrumbs {
    display: none;
  }
}
