/* ── shared.css — Common nav & footer styles ── */

/* ── NAV ──────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-brand img {
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border: 2px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  transition: all .2s;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-cta:hover {
  background: transparent;
  color: var(--fg);
}

/* ── CTF NAV EXTENSIONS ────────────────── */
.nav-right-actions {
  display: flex;
  align-items: center;
}

#user-nav-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
}
#user-nav-badge img {
  width: 22px; height: 22px; border-radius: 50%;
}

.btn-google {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.btn-google img { width: 16px; height: 16px; }
.btn-google:hover { background: var(--hover-bg); }

.btn-signout {
  background: none; border: none;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); cursor: pointer;
  text-decoration: underline;
}

/* ── FOOTER ──────────────────────────────────── */
.footer-full {
  border-top: 1px solid var(--border);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  font-size: 12px;
  color: var(--muted);
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--mono);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

/* ── RESPONSIVE NAV ─────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* ── BACK TO TOP BUTTON ───────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--fg, #111111);
  color: var(--bg, #ffffff);
  border: 1px solid var(--fg, #111111);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
  opacity: 0.85;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
  background: var(--orange, #FFA300);
  border-color: var(--orange, #FFA300);
  color: #000000;
}

