/* assets/css/topbar.css — Componente topbar compartido NexCore */

nav.topbar {
  background: var(--bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="dark"] nav.topbar  { background: rgba(15,17,23,0.96); }
[data-theme="warm"] nav.topbar  { background: rgba(250,247,242,0.97); }
[data-theme="light"] nav.topbar { background: rgba(255,255,255,0.97); }

.t-brand {
  display: flex;
  flex-direction: column;
}

.t-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.t-logo em {
  color: var(--gold);
  font-style: normal;
}

.t-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.t-mid {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-pill {
  padding: 0.5rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--s2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.22s;
  white-space: nowrap;
}

.nav-pill:hover {
  border-color: var(--gold);
  color: var(--white);
}

.nav-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0f1117;
}

.t-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-sel {
  display: flex;
  gap: 0.15rem;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem;
}

.theme-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}


.theme-btn:hover  { border-color: var(--gold); color: var(--text); }
.theme-btn.active {
  background: transparent;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(232, 184, 75, 0.2);
}

/* ── USER PILL ── */
.user-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.user-pill:hover {
  background: var(--s2);
  border-color: var(--border);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8b84b;
  color: #0f1117;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-caret {
  color: var(--muted);
  font-size: 0.7rem;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.3rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  min-width: 160px;
  z-index: 200;
}

.user-dropdown.open { display: block; }

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.12s ease;
}

.user-dropdown-item:hover { background: var(--s2); }

.user-dropdown-item .dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.user-dropdown-item:hover .dropdown-icon { color: var(--gold); }

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.user-dropdown-item.danger { color: #d97757; }
.user-dropdown-item.danger:hover { background: rgba(217, 119, 87, 0.1); }
.user-dropdown-item.danger .dropdown-icon { color: #d97757; }
.user-dropdown-item.danger:hover .dropdown-icon { color: #d97757; }

/* ── MODAL PRÓXIMAMENTE ── */
.proximamente-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.proximamente-overlay.open { display: flex; }

.proximamente-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  animation: tb-fade-in 0.18s ease;
}

@keyframes tb-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.proximamente-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.proximamente-title em {
  color: var(--gold);
  font-style: normal;
}

.proximamente-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.proximamente-close {
  display: inline-flex;
  padding: 0.5rem 1.5rem;
  background: var(--gold);
  color: #0f1117;
  border: none;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.proximamente-close:hover { background: #ffd166; }

/* ── PUBLIC VARIANT ── */
.tb-link-auth {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  transition: color 0.2s;
}

.tb-link-auth:hover { color: var(--white); }

.btn-tb-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: #e8b84b;
  color: #0f1117;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-tb-cta:hover { background: #ffd166; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .t-mid        { display: none; }
  .user-handle  { display: none; }
}

@media (max-width: 374px) {
  .theme-sel { display: none; }
}
