/* ═══════════════════════════════════════════════════════
   topbar.css — Header portabil identic cu homepage-ul
   diaspora.ro v3.12 — folosit de cv-builder, cv-pro etc.
   ═══════════════════════════════════════════════════════ */

/* ── CSS vars locale (nu suprascriu ale paginii) ── */
.topbar, .clockbar {
  --tb-bg: #06000f;
  --tb-glass: rgba(255,255,255,0.04);
  --tb-glass-h: rgba(255,255,255,0.08);
  --tb-border: rgba(255,255,255,0.08);
  --tb-border-b: rgba(255,255,255,0.18);
  --tb-text: #f0eaff;
  --tb-text2: rgba(220,210,255,0.7);
  --tb-text3: rgba(180,170,220,0.5);
  --tb-purple: #b57bff;
  --tb-green: #34d399;
}

/* ── CLOCKBAR ── */
.clockbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 36px;
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid var(--tb-border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--tb-text3);
  position: relative;
  z-index: 99;
  font-family: 'Inter', system-ui, sans-serif;
}
.clockbar .live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tb-green);
}
.clockbar .live .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tb-green);
  box-shadow: 0 0 6px var(--tb-green);
  animation: tb-blink 2s infinite;
}
@keyframes tb-blink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 36px;
  height: 62px;
  background: rgba(6,0,15,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--tb-border);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Logo */
.tb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.tb-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg,#7c3aed,#b57bff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 0 18px rgba(124,58,237,.5);
}
.tb-logo-txt {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.03em;
  color: var(--tb-text);
}
.tb-logo-txt span { color: var(--tb-purple); }

/* Nav */
.tb-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  margin-left: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tb-nav::-webkit-scrollbar { display: none; }
.tb-nav a {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tb-text2);
  white-space: nowrap;
  text-decoration: none;
  transition: all .15s;
}
.tb-nav a:hover { background: var(--tb-glass-h); color: var(--tb-text); }
.tb-nav a.act { background: rgba(124,58,237,.15); color: var(--tb-purple); }

/* Right area */
.tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Geo badge */
.tb-geo {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--tb-glass);
  border: 1px solid var(--tb-border);
  font-size: 12px;
  color: var(--tb-text2);
}
.tb-geo .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tb-green);
  box-shadow: 0 0 6px var(--tb-green);
  animation: tb-blink 2s infinite;
}

/* Flag */
.tb-flag {
  font-size: 24px;
  line-height: 1;
  cursor: default;
  filter: drop-shadow(0 0 6px rgba(255,200,0,.35));
  transition: transform .2s;
}
.tb-flag:hover { transform: scale(1.18); }

/* Buttons */
.btn-in {
  padding: 7px 16px;
  border-radius: 10px;
  background: var(--tb-glass);
  border: 1px solid var(--tb-border-b);
  font-size: 13px;
  font-weight: 600;
  color: var(--tb-text);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-in:hover { background: var(--tb-glass-h); }

.btn-reg {
  padding: 7px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(124,58,237,.4);
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-reg:hover { box-shadow: 0 0 28px rgba(124,58,237,.6); transform: translateY(-1px); }

.btn-logout-tb {
  background: rgba(255,64,96,.12);
  border: 1px solid rgba(255,64,96,.3);
  color: #ff6080;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all .15s;
  white-space: nowrap;
}
.btn-logout-tb:hover { background: rgba(255,64,96,.2); }

/* User menu */
.tb-user-menu {
  display: none;
  align-items: center;
  gap: 10px;
}

/* ── ascunde brand.js fixed header (conflict) ── */
.d-brand-fixed, .d-tm { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width:1200px) {
  .topbar, .clockbar { padding-left: 24px; padding-right: 24px; }
}
@media (max-width:1000px) {
  .topbar, .clockbar { padding-left: 16px; padding-right: 16px; }
  .topbar { height: 56px; gap: 10px; }
}
@media (max-width:700px) {
  .topbar { padding: 0 12px; height: 52px; gap: 6px; }
  .clockbar { padding: 5px 12px; }
  .btn-reg { display: none; }
  .tb-logo-txt { font-size: 14px; }
  .tb-nav a { padding: 4px 9px; font-size: 12px; }
}
@media (max-width:480px) {
  .tb-flag { font-size: 20px; }
  .btn-in { padding: 6px 11px; font-size: 12px; }
}
