/* Page Header Hero - Clean & Elegant for Subpages */

.hero-header {
  position: relative;
  padding: 5rem 2rem 3.5rem;
  background: var(--color-primary, #2563eb);
  color: white;
  overflow: hidden;
}

/* Subtle gradient overlay for depth */
.hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
}

/* Decorative shape - subtle */
.hero-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.hero-header-container {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Breadcrumb navigation */
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.9;
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}

.breadcrumb-home {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.breadcrumb-home:hover {
  opacity: 0.7;
}

.breadcrumb-home:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
  border-radius: 2px;
}

.breadcrumb-separator {
  opacity: 0.6;
}

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

/* Page title */
.hero-header-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Optional subtitle */
.hero-header-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  margin: 1rem 0 0;
  max-width: 700px;
  opacity: 0.95;
  font-weight: 400;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

/* Variant: Compact - Smaller padding */
.hero-header--compact {
  padding: 3.5rem 2rem 2.5rem;
}

.hero-header--compact .hero-header-title {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero-header--compact .hero-breadcrumb {
  margin-bottom: 1rem;
}

/* Variant: Centered - Center align content */
.hero-header--centered .hero-header-container {
  text-align: center;
}

.hero-header--centered .hero-breadcrumb {
  justify-content: center;
}

.hero-header--centered .hero-header-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Variant: Minimal - No decorative elements, clean */
.hero-header--minimal::before,
.hero-header--minimal::after {
  display: none;
}

.hero-header--minimal {
  background: var(--color-primary, #2563eb);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-header {
    padding: 4rem 1.5rem 3rem;
  }

  .hero-header--compact {
    padding: 3rem 1.5rem 2rem;
  }

  .hero-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.8125rem;
  }

  .hero-header-title {
    letter-spacing: -0.02em;
  }
}

@media (max-width: 480px) {
  .hero-header {
    padding: 3.5rem 1rem 2.5rem;
  }

  .hero-header--compact {
    padding: 2.5rem 1rem 2rem;
  }

  .hero-breadcrumb {
    flex-wrap: wrap;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-header-container,
  .hero-breadcrumb,
  .hero-header-title,
  .hero-header-subtitle {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero-header::before {
    background: rgba(0, 0, 0, 0.3);
  }

  .breadcrumb-home:focus-visible {
    outline-width: 3px;
  }
}
