/* =========================================
   PLATFORM NAVBAR — styles for the platform admin top nav.
   ========================================= */

/* The platform navbar shares .navbar with the main app. Override the dark
   theme back to a light gradient for the platform surface. */
.platform-layout .navbar {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gradient-gold {
  background: linear-gradient(to right, var(--accent-dark), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.gradient-dark {
  background: linear-gradient(to right, var(--ink-2), var(--ink-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.nav-links {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-2);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
}
.user-avatar:hover > .dropdown-menu { display: block; }

/* ── Hamburger (hidden on desktop) ── */

.platform-mobile-hamburger {
  display: none;
}

/* ── Mobile nav panel (hidden on desktop) ── */

.navbar-mobile-panel {
  display: none;
}

/* ── Mobile ── */

@media (max-width: 767px) {
  .platform-layout .navbar {
    position: relative;
  }

  .platform-layout .nav-links {
    display: none;
  }

  .platform-mobile-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .platform-mobile-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink-2);
    border-radius: 1px;
  }

  .navbar-mobile-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 50;
  }
  .navbar-mobile-panel.is-open {
    display: block;
  }

  .navbar-mobile-panel-row {
    display: block;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line-2);
  }
  .navbar-mobile-panel-row:first-child {
    color: var(--accent);
  }
  .navbar-mobile-panel-row--danger {
    color: var(--danger);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    border-bottom: none;
  }
}
