/* ═══════════════════════════════════════════════════════════════
   header.css  —  EduNudge SciLab | Motion
   Top navigation bar
═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   1.  HEADER CONTAINER
─────────────────────────────────────────────────────────────── */
.site-header {
  height: var(--header-height);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  flex-shrink: 0;
  position: relative;
  z-index: 10;

  /* Blue top accent line */
  box-shadow: 0 1px 0 var(--border-color),
    0 -3px 0 var(--brand-blue) inset;
}

/* ───────────────────────────────────────────────────────────────
   2.  LEFT SIDE — Badge + Title
─────────────────────────────────────────────────────────────── */
.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ── SciLab badge ── */
.lab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: linear-gradient(135deg, #1a3a6a, #0d2244);
  border: 1px solid var(--brand-blue);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-glow);
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.2),
    0 0 20px rgba(26, 115, 232, 0.15);
}

/* ── Page title ── */
.header-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(90deg,
      #e8edf5 0%,
      #43e97b 50%,
      #1a73e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ───────────────────────────────────────────────────────────────
   3.  CENTRE ICON
─────────────────────────────────────────────────────────────── */
.site-header::after {
  content: '🚗';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

/* ───────────────────────────────────────────────────────────────
   4.  RIGHT SIDE — Class badge
─────────────────────────────────────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
}

.class-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-panel-section);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ───────────────────────────────────────────────────────────────
   5.  RESPONSIVE
─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-title {
    font-size: 14px;
  }

  .class-badge {
    display: none;
  }

  .lab-badge {
    font-size: 9px;
    padding: 2px 7px;
  }

  .site-header {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 12px;
  }
}