/* BidCraft brand lockup — symbol + Inter Tight wordmark.
   Pulled from Final 06D (Ink + Crimson). */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@600;700;800&display=swap');

/* Lift the muted-text tokens so they meet WCAG AA against the dark
   surfaces (--sur is #181512). The original values were near-black,
   below ~3:1 contrast. Override here so bidcraft.css stays untouched. */
:root {
  --txd: #B0A593;
  --txm: #8A7F6E;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
}

.brand-symbol {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background-image: url('img/bidcraft-symbol-on-dark.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
:root[data-theme="light"] .brand-symbol {
  background-image: url('img/bidcraft-symbol.svg');
}

.brand-name {
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--tx);
  white-space: nowrap;
}

/* Stacked + larger lockup, used by the login hero. */
.brand-stack {
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.brand-stack .brand-symbol {
  width: 64px;
  height: 64px;
}

.brand-stack .brand-name {
  font-size: 36px;
  letter-spacing: -0.025em;
}

/* Disabled nav link — for placeholder menu items not yet built. */
.nav-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.nav-link.disabled::after {
  content: ' (soon)';
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--txm);
  margin-left: 4px;
}

.nav-version {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--txm);
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bdr);
  white-space: nowrap;
}

/* ─── User menu (avatar dropdown) ──────────────────────────────────────── */
.user-menu { position: relative; }
.user-menu .avatar { cursor: pointer; user-select: none; overflow: hidden; }
.user-menu .avatar img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; border-radius: inherit;
}
.user-menu .avatar.has-photo { background: transparent; color: transparent; padding: 0; }

.user-menu-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 220px;
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  padding: 6px 0; z-index: 1000;
  display: none;
}
.user-menu-dropdown.open { display: block; }
.user-menu-head { padding: 10px 14px 8px; border-bottom: 1px solid var(--bdr); }
.user-menu-name { font-size: 12px; font-weight: 700; color: var(--tx); line-height: 1.3; }
.user-menu-email { font-size: 11px; color: var(--txm); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.user-menu-divider { height: 1px; background: var(--bdr); margin: 4px 0; }
.user-menu-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; padding: 8px 14px;
  font-size: 12px; color: var(--tx); font-family: inherit;
  cursor: pointer;
}
.user-menu-item:hover { background: var(--sur2); }

/* ─── Modal ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-dialog {
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: var(--radius);
  width: 100%; max-width: 480px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.modal-head {
  padding: 14px 20px; border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-close {
  background: none; border: none; font-size: 22px; color: var(--txm);
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.modal-close:hover { color: var(--tx); }
.modal-body {
  padding: 16px 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-foot {
  padding: 12px 20px; border-top: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}

.account-photo-row {
  display: flex; gap: 16px; align-items: center;
}
.account-photo {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--st); color: white;
  display: grid; place-items: center;
  font-weight: 700; font-size: 22px;
  overflow: hidden; flex-shrink: 0;
}
.account-photo img { width: 100%; height: 100%; object-fit: cover; }
.account-photo.has-photo { background: transparent; color: transparent; }

.form-input {
  width: 100%; box-sizing: border-box;
  padding: 8px 10px; font-size: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bdr); background: var(--sur2); color: var(--tx);
  font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--st); }
.form-input:disabled { opacity: 0.55; cursor: not-allowed; }

/* Theme picker (segmented control) */
.theme-picker {
  display: inline-flex; gap: 0;
  border: 1px solid var(--bdr); border-radius: var(--radius-sm);
  overflow: hidden;
}
.theme-option {
  background: var(--sur2); border: none; cursor: pointer;
  padding: 7px 16px; font-size: 12px; font-family: inherit;
  color: var(--txd); border-right: 1px solid var(--bdr);
}
.theme-option:last-child { border-right: none; }
.theme-option:hover { background: var(--sur3); color: var(--tx); }
.theme-option.selected {
  background: var(--st); color: white;
}
