/* Gradient hero banner — GitHub issue #86. Partial: app/views/shared/components/_hero_section.html.erb */
@layer components {

.hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-section__inner {
  position: relative;
  z-index: 1;
}

.hero-section__title {
  margin: 0 0 var(--space-2);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-color) 20%, transparent);
}

.hero-section__lead {
  margin: 0;
  font-size: var(--text-base);
  color: color-mix(in srgb, #ffffff 85%, transparent);
  line-height: 1.5;
}

.hero-section__lead--rich {
  font-size: var(--text-base);
  color: color-mix(in srgb, #ffffff 85%, transparent);
  line-height: 1.5;
}

.hero-section__lead--rich p {
  margin: 0;
}

/* ── Dashboard ── */
.hero-section--dashboard {
  padding: var(--space-10) var(--space-6) var(--space-8);
}

.hero-section--dashboard .hero-section__bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
  opacity: 1;
}

.hero-section--dashboard .hero-section__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--color-primary) 15%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, #2563eb 12%, transparent) 0%, transparent 40%);
  pointer-events: none;
}

.hero-section--dashboard .hero-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-section--dashboard .hero-section__inner {
  max-width: 67rem;
  margin: 0 auto;
}

.hero-section--dashboard .hero-section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-section--dashboard .hero-section__lead {
  max-width: 32rem;
}

/* ── Analytics ── */
.hero-section--analytics {
  padding: var(--space-10) var(--space-6) var(--space-8);
}

.hero-section--analytics .hero-section__bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
}

.hero-section--analytics .hero-section__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, color-mix(in srgb, #f59e0b 15%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, #2563eb 12%, transparent) 0%, transparent 40%);
  pointer-events: none;
}

.hero-section--analytics .hero-section__inner {
  max-width: 67rem;
  margin: 0 auto;
}

.hero-section--analytics .hero-section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-section--analytics .hero-section__lead {
  max-width: 40rem;
}

/* ── Logs ── */
.hero-section--logs {
  padding: var(--space-10) var(--space-6) var(--space-8);
}

.hero-section--logs .hero-section__bg {
  background: linear-gradient(135deg, var(--admin-logs-bg, #0f172a) 0%, #1e293b 40%, #334155 100%);
}

.hero-section--logs .hero-section__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, color-mix(in srgb, #0ea5e9 15%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, #2563eb 12%, transparent) 0%, transparent 40%);
  pointer-events: none;
}

.hero-section--logs .hero-section__inner {
  max-width: 67rem;
  margin: 0 auto;
}

.hero-section--logs .hero-section__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.hero-section--logs .hero-section__lead {
  max-width: 40rem;
}

/* ── Productivity ── */
.hero-section--productivity {
  padding: var(--space-10) var(--space-6) var(--space-6);
}

.hero-section--productivity .hero-section__bg {
  background: linear-gradient(125deg, #4c1d95 0%, #7c3aed 45%, #c2410c 100%);
  opacity: 1;
}

.hero-section--productivity .hero-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 20%, color-mix(in srgb, #ffffff 12%, transparent) 0%, transparent 45%);
  pointer-events: none;
}

.hero-section--productivity .hero-section__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.hero-section--productivity .hero-section__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.hero-section--productivity .hero-section__lead {
  font-size: var(--text-sm);
  color: color-mix(in srgb, #ffffff 88%, transparent);
}

}
