/* ============================================
   ZENTRAL API — SHARED STYLES
   Dipakai di semua halaman (index, docs, dashboard, status)
   ============================================ */

:root {
  --paper: #F5F0E6;
  --ink: #0A0A0A;
  --red: #FF3B30;
  --blue: #2255FF;
  --yellow: #FFD400;
  --green: #2ecc71;
  --shadow-offset: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.brutal-border { border: 3px solid var(--ink); }
.brutal-shadow { box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink); }

/* ===== NAVBAR ===== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.05rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo .dot {
  width: 9px;
  height: 9px;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-weight: 700;
}

.nav-links a.active {
  border-bottom: 3px solid var(--red);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
  border: 3px solid var(--ink);
  flex-shrink: 0;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: var(--paper);
  border: 3px solid var(--ink);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  height: 3px;
  background: var(--ink);
  margin: 0 6px;
}

.mobile-menu {
  display: none;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -85%;
  width: 300px;
  max-width: 85%;
  height: 100vh;
  background: var(--paper);
  border-right: 3px solid var(--ink);
  z-index: 70;
  transition: left 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.open { left: 0; }

.sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.3rem;
  border-bottom: 3px solid var(--ink);
}

.sidebar-close {
  width: 38px;
  height: 38px;
  border: 3px solid var(--ink);
  background: var(--paper);
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
}

.sidebar-close:active {
  transform: translate(2px, 2px);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  gap: 0.9rem;
}

.sidebar-links a {
  display: block;
  padding: 0.9rem 1.1rem;
  border: 3px solid var(--ink);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--paper);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sidebar-links a:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.sidebar-links a.pop-yellow {
  background: var(--yellow);
  margin-top: 0.6rem;
}

@media (min-width: 480px) {
  .logo { font-size: 1.2rem; }
  .nav-cta { font-size: 0.85rem; padding: 0.55rem 1rem; }
}

@media (min-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  .logo { font-size: 1.3rem; }
  .nav-links { display: flex; }
  .hamburger-btn { display: none; }
  .sidebar, .sidebar-overlay { display: none !important; }
}

/* ===== BUTTONS ===== */
.btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
}

.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary { background: var(--blue); color: var(--paper); }
.btn-secondary { background: var(--paper); color: var(--ink); }

/* ===== PAGE HEADER (dipakai di halaman selain landing) ===== */
.page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}

.page-header h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  transform: rotate(-0.5deg);
}

.page-header p {
  margin-top: 0.8rem;
  max-width: 55ch;
  font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
  border-top: 3px solid var(--ink);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ===== PROFILE BAR (dipakai di halaman yang dikunci: dashboard, docs) ===== */
.profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 1.2rem auto 0;
  padding: 0.7rem 1.1rem;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--yellow);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-logout {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
}

.profile-logout:active { transform: translate(2px, 2px); }


