/* Navigation Components - Back buttons and Breadcrumbs */

/* Back Button Styles */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button:hover {
  color: #00E5FF;
  background-color: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateX(-2px);
}

.back-button svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.back-button:hover svg {
  transform: translateX(-2px);
}

/* Breadcrumb Styles */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

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

.breadcrumb li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.125rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.breadcrumb a:hover {
  color: #00E5FF;
  background-color: rgba(0, 229, 255, 0.1);
}

.breadcrumb li[aria-current="page"] {
  color: #00E5FF;
  font-weight: 500;
}

/* Page Header Layout */
.page-header {
  margin-bottom: 1.5rem;
}

.page-header-with-back {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .breadcrumb {
    font-size: 0.75rem;
  }

  .breadcrumb ol {
    gap: 0.25rem;
  }

  .breadcrumb a {
    padding: 0.125rem 0.25rem;
  }

  /* Hide home breadcrumb on very small screens */
  .breadcrumb li:first-child {
    display: none;
  }

  .back-button {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Desktop Layout Improvements */
@media (min-width: 768px) {
  .page-header-with-back {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .back-button-container {
    flex-shrink: 0;
  }
}
