/*
 * Void Colonies – Animated Base Header
 * ------------------------------------
 * Lightweight hybrid header:
 * - static cinematic base image
 * - animated Canvas FX overlay
 * - optional mouse parallax
 *
 * No external dependencies.
 */

.void-base-header {
  --vc-header-radius: 18px;
  --vc-header-border: rgba(0, 217, 255, 0.35);
  --vc-header-glow: rgba(0, 217, 255, 0.16);
  --vc-header-bg: #020812;

  position: relative;
  width: 100%;
  min-height: 280px;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: var(--vc-header-radius);
  border: 1px solid var(--vc-header-border);
  background: var(--vc-header-bg);
  box-shadow:
    inset 0 0 0 1px rgba(120, 240, 255, 0.06),
    inset 0 0 34px rgba(0, 170, 255, 0.08),
    0 0 28px rgba(0, 170, 255, 0.08);
  isolation: isolate;
}

.void-base-header__image {
  position: absolute;
  inset: -2.5%;
  width: 105%;
  height: 105%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 0, 0) scale(1.015);
  filter: saturate(1.08) contrast(1.05) brightness(0.96);
  transform-origin: center;
  will-change: transform;
  z-index: 1;
}

.void-base-header__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.void-base-header__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0, 190, 255, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(0, 4, 12, 0.48), transparent 16%, transparent 84%, rgba(0, 4, 12, 0.54)),
    linear-gradient(180deg, rgba(0, 5, 14, 0.05), transparent 48%, rgba(0, 3, 10, 0.42));
}

.void-base-header__scanlines {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(155, 230, 255, 0.06) 0px,
      rgba(155, 230, 255, 0.06) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
}

.void-base-header__hud {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(190, 240, 255, 0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 220, 255, 0.35);
}

.void-base-header__hud::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #20dfff;
  box-shadow: 0 0 10px rgba(0, 220, 255, 0.8);
  transform: rotate(45deg);
}

.void-base-header__hud-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 220, 255, 0.05), rgba(0, 220, 255, 0.55));
}

@media (max-width: 900px) {
  .void-base-header {
    min-height: 220px;
    aspect-ratio: 2.35 / 1;
  }

  .void-base-header__hud {
    font-size: 9px;
    left: 12px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .void-base-header__image {
    transform: none !important;
  }

  .void-base-header__fx {
    display: none;
  }
}
