/* ==========================================================================
   MODULE: SECTION HEADER & PILL BADGE VARIANTS
   File: component-header.css
   Theme: 3-Color System (Electric Royal Blue + Deep Obsidian + Pure White)
   ========================================================================== */

/* Wadah Utama Header Section */
.nx-section-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

/* Modifiers Lebar */
.nx-section-header.is-default {
  max-width: 760px;
}

.nx-section-header.is-narrow {
  max-width: 620px;
}

.nx-section-header.is-full {
  max-width: 100%;
}

/* Modifier Rata Tengah */
.nx-section-header.is-center {
  text-align: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.nx-section-header.is-center .nx-header-title-group {
  align-items: center;
}

/* Sub-Group: Mengikat Badge + Heading */
.nx-header-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* ==========================================================================
   PILL BADGE VARIANTS
   ========================================================================== */

/* Base Varian 1: Soft Surface Pill (Default) */
.nx-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f4f6ff; /* Ice Tint */
  border: 1px solid var(--nx-border-subtle, #dbe3fe);
  padding: 0.38rem 0.9rem;
  border-radius: var(--nx-radius-pill, 9999px);
  
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-c-heading, #02091c);
  line-height: 1;
}

/* Titik Biru Elektrik Bercahaya */
.nx-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--nx-c-primary, #1b43fe);
  box-shadow: 0 0 8px var(--nx-c-accent-glow, rgba(27, 67, 254, 0.45));
  flex-shrink: 0;
}

/* Varian 2: Solid Electric Royal Blue */
.nx-header-badge.is-solid {
  background-color: var(--nx-c-primary, #1b43fe);
  border-color: var(--nx-c-primary, #1b43fe);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--nx-c-accent-glow, rgba(27, 67, 254, 0.35));
}

/* Varian 3: Outline Clean */
.nx-header-badge.is-outline {
  background-color: transparent;
  border: 1.5px solid var(--nx-c-primary, #1b43fe);
  color: var(--nx-c-primary, #1b43fe);
}

.nx-header-badge.is-outline .nx-badge-dot {
  background-color: var(--nx-c-primary, #1b43fe);
}

/* Varian 4: Eyebrow Minimalist Classic (Kurung Siku) */
.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-c-primary, #1b43fe);
  line-height: 1;
  margin: 0;
}

.nx-bracket {
  color: var(--nx-c-muted, #64748b);
  font-weight: 400;
}

/* ==========================================================================
   HEADING & BODY TYPOGRAPHY
   ========================================================================== */
.nx-section-header .nx-h2,
.nx-section-header h1,
.nx-section-header h2 {
  margin: 0 !important;
  color: var(--nx-c-heading, #02091c);
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.nx-section-header .nx-highlight {
  color: var(--nx-c-primary, #1b43fe);
}

.nx-section-header .nx-body-lead {
  margin: 0 !important;
  color: var(--nx-c-body, #334155);
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.65;
  max-width: 680px;
}

/* ==========================================================================
   DARK SECTION MODIFIER (.is-theme-dark)
   ========================================================================== */
.is-theme-dark .nx-header-badge {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.is-theme-dark .nx-header-badge.is-solid {
  background-color: var(--nx-c-primary, #1b43fe);
  border-color: var(--nx-c-primary, #1b43fe);
}

.is-theme-dark .nx-header-badge.is-outline {
  border-color: rgba(27, 67, 254, 0.6);
  color: #ffffff;
}

.is-theme-dark .nx-section-header .nx-h2,
.is-theme-dark .nx-section-header h1 {
  color: var(--nx-c-heading-light, #f8fafc) !important;
}

.is-theme-dark .nx-section-header .nx-body-lead {
  color: var(--nx-c-muted-light, #94a3b8);
}

/* ==========================================================================
   VARIAN GLASSMORPHISM: .nx-header-badge.is-glass
   ========================================================================== */

/* 1. Di atas kanvas terang (Light Surface) */
.nx-header-badge.is-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(27, 67, 254, 0.18);
  box-shadow: 0 4px 16px rgba(2, 9, 28, 0.05);
  color: var(--nx-c-heading, #02091c);
}

.nx-header-badge.is-glass .nx-badge-dot {
  background-color: var(--nx-c-primary, #1b43fe);
  box-shadow: 0 0 8px var(--nx-c-accent-glow, rgba(27, 67, 254, 0.4));
}

/* 2. Di atas kanvas gelap / Dark Page Header (.is-theme-dark) */
.is-theme-dark .nx-header-badge.is-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.is-theme-dark .nx-header-badge.is-glass .nx-badge-dot {
  background-color: var(--nx-c-primary, #1b43fe);
  box-shadow: 0 0 10px rgba(27, 67, 254, 0.7);
}