/* ============================================================
   MODULE: NAVIGATION & HEADER — Quinigol Club
   ============================================================ */

/* ─── Header / Navbar ──────────────────────────────────────── */
.app-header {
  height: var(--header-height);
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition-normal);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-gold), #fbbf24);
  border-radius: var(--radius-lg, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px var(--color-accent-glow);
  transition: transform var(--transition-fast);
}

.header-logo .logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px var(--color-accent-glow);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.header-logo:hover .logo-icon,
.header-logo:hover .logo-img {
  transform: scale(1.06);
}

.header-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
  line-height: 1;
}

.header-logo .logo-text span { color: var(--color-gold); }

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--color-bg-glass);
  color: var(--color-text-primary);
}
.nav-link.active { color: var(--color-gold); }

.header-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: #0a0e1a;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}
.user-avatar:hover { border-color: var(--color-gold); }

/* ─── Profile Chip ──────────────────────────────────────── */
.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  user-select: none;
}

.profile-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-chip:active {
  transform: scale(0.97);
}

.profile-chip-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-chip-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
  border: none !important;
}

.profile-chip-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--color-bg-dark, #0a0e1a);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.profile-chip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}

.profile-chip-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chip-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.profile-chip-badge--premium {
  color: var(--color-gold);
}

@media (max-width: 380px) {
  .profile-chip-info { display: none; }
  .profile-chip { padding: 4px; }
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-glass);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text-secondary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ─── Bottom Navigation Bar (Mobile) ──────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-inner {
  display: flex;
  height: 62px;
  align-items: stretch;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
  position: relative;
}

.bottom-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--color-accent); }
.bottom-nav-item.active::before { transform: scaleX(1); }

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 20px;
  line-height: 1;
}

.bottom-nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform var(--transition-fast), stroke var(--transition-fast);
}

.bottom-nav-item.active .bottom-nav-icon svg {
  stroke: var(--color-accent);
  transform: scale(1.08);
}

/* ─── Botón Cerrar Sesión (Eliminado de cabecera; gestionado en menú/perfil) ── */
#btn-logout {
  display: none !important;
}
