/* =========================================
   MERIDIA — nav.css
   Topbar · Navigation · Notification bell
   ========================================= */

/* --- Topbar --- */
.topbar {
  background: var(--navy);
  color: #9aa8b5;
  font-size: 11px;
  padding: 5px 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.2px;
}
.topbar-right {
  display: flex;
  gap: 20px;
}
.topbar-right a {
  color: #9aa8b5;
  text-decoration: none;
  transition: color 0.15s;
}
.topbar-right a:hover { color: var(--white); }

/* --- Main Navigation --- */
.main-nav {
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.logo-tag {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  margin-left: 7px;
  padding-top: 2px;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-link {
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  letter-spacing: 0.2px;
}
.nav-link:hover { background: var(--gray-100); color: var(--text-main); }
.nav-link.act   { color: var(--navy); font-weight: 500; }

/* Nav right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Notification bell button */
.notif-btn {
  position: relative;
  background: none;
  border: 0.5px solid var(--border-md);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-main);
  transition: var(--transition);
}
.notif-btn:hover { background: var(--gray-100); }
.notif-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.notif-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E24B4A;
  border: 1.5px solid var(--white);
}

/* Notification dropdown */
.notif-panel {
  position: absolute;
  top: 68px;
  right: 1.5rem;
  width: 310px;
  background: var(--white);
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-lg);
  z-index: 200;
  display: none;
  overflow: hidden;
}
.notif-panel.open { display: block; }
.notif-panel-header {
  padding: 0.75rem 1rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}
.notif-panel-header span.mark-read {
  font-size: 11px;
  color: var(--gold);
  cursor: pointer;
  font-weight: 400;
}
.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--gray-100); }
.notif-item .n-title { font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.notif-item .n-sub   { font-size: 11px; color: var(--text-muted); }
.notif-item .n-time  { font-size: 10px; color: var(--text-light); margin-top: 3px; }
.notif-item.danger .n-title { color: var(--danger-bdr); }
.notif-item.new .n-title    { color: var(--navy); }

/* Segment switcher (home page) */
.seg-bar {
  background: var(--gray-100);
  border-bottom: 0.5px solid var(--border);
}
.seg-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
}
.seg-btn {
  padding: 13px 22px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: var(--transition);
}
.seg-btn.act { color: var(--navy); border-bottom-color: var(--gold); }
.seg-btn:hover { color: var(--text-main); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .logo-tag { display: none; }
  .nav-links { display: none; }
  .topbar { display: none; }
}
/* Menu hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  padding: 0.5rem 0;
  z-index: 150;
}
.mobile-menu.open { display: block; }
.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 1.5rem;
  background: none;
  border: none;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 0.5px solid var(--border);
}
.mobile-menu button:hover { background: var(--gray-100); }
.mobile-menu button:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .hamburger    { display: flex; }
  .nav-links    { display: none; }
  #lang-selector { display: none; }
  .notif-btn    { display: none; }
  .btn-outline  { display: none; }
  .nav-actions  { gap: 4px; }
  .main-nav     { padding: 0 1rem; }
  .logo-name    { font-size: 18px; }
  .logo-tag     { display: none; }
  .topbar       { display: none; }
  .btn-primary.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
  }
}
