/* =========================================
   PLATFORM NAVBAR — legacy styles for the platform admin layout.
   The platform navbar (app/views/platform/_navbar.html.erb) still uses
   the old ctx-card/ctx-slot/nav-link pattern. These styles are preserved
   here so the platform admin UI continues working after the main navbar
   was rewritten to the dark theme in Epic 0004 Phase 1.
   ========================================= */

/* 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;
}

.ctx-card {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.ctx-slot {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6px 16px; min-width: 130px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.ctx-slot + .ctx-slot { border-left: 1px solid var(--line-2); }
.ctx-slot:first-child { border-top-left-radius: var(--r-lg); border-bottom-left-radius: var(--r-lg); }
.ctx-slot:last-child  { border-top-right-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg); }
.ctx-slot:hover { background: var(--bg-2); }
.ctx-slot.is-disabled { cursor: not-allowed; opacity: 0.5; }
.ctx-slot.is-disabled:hover { background: transparent; }

.ctx-slot:hover > .dropdown-menu { display: block; }

.ctx-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}

.ctx-value {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
  margin-top: 2px;
  white-space: nowrap;
}

.ctx-slot.is-empty .ctx-value {
  color: var(--ink-3); font-style: italic; font-weight: 600;
}

.arrow-down {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-3);
}

.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; }
