/* ---------- Top Bar ---------- */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) var(--s-8);
  background: var(--panel-solid);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-left {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--night);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}

.greeting {
  font-size: 13px;
  color: var(--cream-dim);
}

.top-left h2 {
  margin: 2px 0 0;
  font-size: 28px;
  font-family: var(--font-display);
  color: var(--cream);
}

.top-center {
  display: flex;
  gap: var(--s-5);
  align-items: center;
}

.weather,
.countdown {
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  background: var(--panel-hover);
  color: var(--cream);
  font-size: 14px;
  border: 1px solid var(--line);
}

.top-right {
  display: flex;
  gap: var(--s-3);
}

.top-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel-hover);
  color: var(--cream);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
  font-size: 20px;
}

.top-icon:hover {
  background: var(--night-3);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

@media (max-width: 900px) {
  .top-center {
    display: none;
  }

  .top-left h2 {
    font-size: 22px;
  }
}

/* ---------- Bottom Navigation ---------- */

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--s-6);
  width: min(720px, 92vw);
  height: 82px;
  background: var(--panel);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: var(--shadow-3);
  z-index: 999;
}

.nav-item {
  background: none;
  border: none;
  color: var(--cream-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  font-size: 13px;
  font-family: var(--font-body);
}

.nav-icon {
  font-size: 22px;
}

.nav-item:hover {
  color: var(--cream);
  transform: translateY(-4px);
}

.nav-item.active {
  color: var(--gold);
  transform: translateY(-4px);
}

@media (max-width: 650px) {
  .bottom-nav {
    width: 96vw;
    height: 72px;
  }

  .nav-icon {
    font-size: 19px;
  }

  .nav-item {
    font-size: 11px;
  }
}
