/* ============================================================
   TERMINAL HUMOR — Navbar & Layout CSS
   ============================================================ */

/* ── Navbar ──────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 32px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
#navbar.scrolled {
  border-color: var(--gray-700);
  background: rgba(10,10,10,0.98);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: 2px;
  color: var(--yellow); line-height: 1;
  flex-shrink: 0;
}
.nav-logo span { color: var(--red); }
.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin: 0 auto;
}
.nav-link {
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gray-400);
  border-radius: var(--radius-md);
  transition: all 0.15s;
}
.nav-link:hover  { color: var(--white); background: var(--gray-800); }
.nav-link.active { color: var(--yellow); }

.nav-actions {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}

/* Notif bell */
.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-800); border-radius: var(--radius-md);
  color: var(--gray-400); font-size: 16px;
  transition: all 0.15s; cursor: pointer;
  border: 1px solid var(--gray-700);
}
.notif-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: white;
  width: 18px; height: 18px;
  border-radius: 50%; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
}

/* User menu */
.user-menu-wrap { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px;
  background: var(--gray-800); border: 1px solid var(--gray-700);
  border-radius: 100px; cursor: pointer;
  transition: border-color 0.15s;
}
.user-menu-trigger:hover { border-color: var(--yellow); }
.user-menu-name { font-size: 13px; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-caret { font-size: 10px; color: var(--gray-400); transition: transform 0.2s; }
.user-menu-wrap.open .user-menu-caret { transform: rotate(180deg); }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--gray-800); border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  width: 220px; padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  animation: dropdown-in 0.2s var(--ease-out);
  z-index: 100;
}
.user-dropdown.hidden { display: none; }
@keyframes dropdown-in { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: none; } }

.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px; color: var(--gray-300);
  transition: all 0.15s; cursor: pointer;
}
.dropdown-item:hover { background: var(--gray-700); color: var(--white); }
.dropdown-item.danger:hover { background: rgba(232,50,10,0.15); color: var(--red); }
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-divider { border-top: 1px solid var(--gray-700); margin: 6px 0; }

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: var(--gray-800); border: 1px solid var(--gray-700);
  border-radius: var(--radius-md); cursor: pointer;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 490;
  background: var(--gray-900);
  border-top: 1px solid var(--gray-700);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-out);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray-300); border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.mobile-nav-link:hover { background: var(--gray-800); color: var(--white); border-color: var(--gray-700); }
.mobile-nav-link.active { color: var(--yellow); }

/* ── Page wrapper ────────────────────────────────────────── */
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh;
  display: flex; align-items: center;
  background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(245,196,0,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 60%, rgba(232,50,10,0.05) 0%, transparent 70%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.03;
  background-image:
    linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content { position: relative; z-index: 1; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--gray-900);
  border-top: 1px solid var(--gray-700);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo {
  font-family: var(--font-display); font-size: 32px;
  letter-spacing: 2px; color: var(--yellow); margin-bottom: 12px;
}
.footer-brand .logo span { color: var(--red); }
.footer-brand p { font-size: 13px; color: var(--gray-500); line-height: 1.7; max-width: 240px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gray-500); margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px; color: var(--gray-500);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-800); border: 1px solid var(--gray-700);
  border-radius: var(--radius-md); font-size: 14px;
  color: var(--gray-400); transition: all 0.15s;
}
.footer-social-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--gray-600);
}

/* ── Notifikasi dropdown ─────────────────────────────────── */
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--gray-800); border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  width: 340px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  animation: dropdown-in 0.2s var(--ease-out);
  z-index: 100; overflow: hidden;
}
.notif-dropdown.hidden { display: none; }
.notif-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-700);
  display: flex; align-items: center; justify-content: space-between;
}
.notif-header h4 { font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-700);
  transition: background 0.15s; cursor: pointer;
}
.notif-item:hover { background: var(--gray-700); }
.notif-item.unread { background: rgba(245,196,0,0.04); }
.notif-item.unread::before {
  content: ''; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); align-self: center;
}
.notif-text { font-size: 13px; line-height: 1.5; color: var(--gray-300); }
.notif-time { font-size: 11px; color: var(--gray-500); font-family: var(--font-mono); margin-top: 3px; }
.notif-footer { padding: 12px 16px; text-align: center; }
.notif-footer a { font-family: var(--font-mono); font-size: 11px; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  #navbar .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  #navbar { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
