/* base.css */

:root {
  --bg: #0B0F14;
  --surface: #141A22;
  --divider: #2D5B6B;
  --hover: #4A3B69;
  --text: #E6EDF3;
  --white: #FFFFFF;
  --accent: #9BFF3F;
}

* { box-sizing: border-box; }

main {
  padding-bottom: 80px;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  font-size: 14px;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
}

body, p, article {
  font-family: 'Inter', sans-serif;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 16px;
  border-bottom: 1px solid var(--divider);
}

.brand {
  display: flex;
  align-items: center;
}

.logo {
  width: 100%;
  height: 28px;
}

.notif-btn, .config-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.notif-icon, .config-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.18s ease;
}

.notif-btn:hover .notif-icon, .config-btn:hover .config-icon {
  transform: scale(1.12);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--bg);
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 48px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
}

.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  transition: transform 0.18s ease;
}

.nav-item:hover .nav-icon {
  transform: scale(1.08);
}

.nav-item.active .nav-icon {
  transform: scale(1.18);
}

.nav-item span {
  font-size: 12px;
  line-height: 1;
}

.footer, .meta, .timestamp {
  font-family: 'JetBrains Mono', monospace;
}

.top-nav, .bottom-nav {
  border-bottom: 1px solid var(--divider);
  padding: 12px;
  display: flex;
  justify-content: space-between;
}

.bottom-nav {
  border-top: 1px solid var(--divider);
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--bg);
}

.bottom-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.18s ease;
  transform: scale(1);
}

.nav-icon:hover {
  transform: scale(1.08);
}

.nav-icon.active {
  transform: scale(1.18);
}

@media (min-width: 768px) {
  .bottom-nav {
    max-width: 580px;
    left: 50%;
    transform: translateX(-50%);
  }
}
