/**
 * ============================================================================
 * Copyright (c) 2026 BAWASLU-M FH ULM. All Rights Reserved.
 * Badan Pengawas Pemilihan Umum Mahasiswa
 * Fakultas Hukum, Universitas Lambung Mangkurat
 *
 * PROPRIETARY & CONFIDENTIAL SOURCE CODE
 * ----------------------------------------------------------------------------
 * This software, web application, source code, scripts, styles, architecture,
 * and associated assets are the exclusive intellectual property of BAWASLU-M FH ULM.
 *
 * Any unauthorized copying, reproduction, distribution, scraping, decompilation,
 * reverse engineering, modification, or appropriation of this source code,
 * in whole or in part, is strictly prohibited and deemed highly unethical under
 * institutional, academic, and applicable intellectual property legal frameworks.
 * ============================================================================
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--bg-paper-light);
  border-bottom: var(--border-ink-thick);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.header-topbar {
  background: var(--brand-sage-dark);
  color: var(--bg-base);
  padding: 0.35rem var(--space-4);
  font-family: var(--font-typewriter);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--ink-primary);
}

.header-topbar-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-topbar-alert .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5252;
  box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.35);
  animation: pulseHighlight 2s infinite;
}

.header-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(2px 2px 0px var(--ink-primary));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--ink-primary);
}

.brand-subtitle {
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-sage-dark);
  letter-spacing: 0.06em;
}

.nav-tab-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-tab-btn {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-primary);
  background: var(--bg-paper-dark);
  border: var(--border-ink);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0px var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-tab-btn:hover {
  background: var(--brand-sage-soft);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink-primary);
}

.nav-tab-btn:active, .nav-tab-btn.active {
  background: var(--brand-sage-dark);
  color: var(--bg-base);
  border-color: var(--brand-sage-dark);
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--ink-primary);
}

.nav-tab-lapor {
  background: var(--stamp-red);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

.nav-tab-lapor:hover {
  background: var(--stamp-red-dark);
  color: #FFFFFF;
}

.mobile-nav-toggle {
  display: none;
  background: var(--bg-paper-cream);
  border: var(--border-ink);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0px var(--ink-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 20, 15, 0.75);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-drawer.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-sheet {
  background: var(--bg-paper-cream);
  border: var(--border-ink-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pinned);
  width: 100%;
  max-width: 360px;
  margin: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.mobile-drawer-close {
  align-self: flex-end;
  background: var(--stamp-red-soft);
  color: var(--stamp-red);
  border: var(--border-ink);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
}
