/* ══════════════════════════════════════════
   Tvara — Shared Nav Component
   Used by: index.html + all games/*.html
   ══════════════════════════════════════════ */

.tf-nav {
  width: 100%;
  background: rgba(10,13,26,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tf-nav-inner {
  width: 100%;
  padding: 6px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── Brand ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo {
  height: 56px;
  width: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
}
.nav-logo-img {
  height: 200%;
  width: 200%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.nav-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Breadcrumb (game pages) ── */
.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}
.nav-breadcrumb-sep { color: #1e293b; }
.nav-breadcrumb-page {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Centre links (home only, desktop) ── */
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: #e2e8f0; }

/* ── Right-side tag/badge ── */
.nav-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .tf-nav-inner  { padding: 18px 40px; }
  .nav-links { display: flex; }
}
@media (min-width: 1024px) {
  .tf-nav-inner  { padding: 18px 56px; }
}
@media (max-width: 480px) {
  .tf-nav-inner  { padding: 14px 20px; }
}

/* ── User identity badge ── */
.user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  flex-shrink: 0;
}

.user-badge-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.user-badge-streak,
.user-badge-best {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.user-badge-streak {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.user-badge-best {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.22);
}

@media (max-width: 480px) {
  .user-badge-best { display: none !important; }
  .user-badge-name { max-width: 72px; }
}
