/* ── OneHub Vercel-style site nav ─────────────────────────────── */

.oh-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 250, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.oh-nav.scrolled {
  background: rgba(250, 250, 250, 0.92);
  border-bottom-color: rgba(17, 17, 17, 0.08);
  box-shadow: 0 12px 32px -16px rgba(17, 17, 17, 0.18);
}

.oh-nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.oh-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg, #111); }
.oh-brand img { height: 26px; width: auto; display: block; }
.oh-brand-text { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

.oh-center { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.oh-nav .oh-center { align-items: stretch; height: 100%; }
.oh-item { position: relative; list-style: none; }
.oh-nav .oh-item { display: flex; align-items: stretch; }
.oh-nav .oh-trigger { align-self: center; }

.oh-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500; color: #555;
  text-decoration: none; cursor: pointer; background: none; border: 0;
  transition: color 0.15s ease, background 0.15s ease;
}
.oh-trigger:hover { color: #111; background: rgba(17, 17, 17, 0.05); }
.oh-trigger.active { color: #111; }

.oh-chev {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease; opacity: 0.55; flex: 0 0 auto;
}
.oh-item.open .oh-chev,
.oh-item:hover .oh-chev,
.oh-item:focus-within .oh-chev { transform: rotate(225deg) translateY(-1px); }

/* mega panel — drops flush off the bottom of the full-height item,
   so there is no dead zone for the cursor to cross */
.oh-mega {
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(17, 17, 17, 0.18), 0 8px 24px -12px rgba(17, 17, 17, 0.1);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.16s ease, visibility 0.16s;
  z-index: 50;
}
.oh-item:hover .oh-mega,
.oh-item:focus-within .oh-mega,
.oh-item.open .oh-mega { opacity: 1; visibility: visible; }

.oh-mega.wide { width: min(720px, calc(100vw - 32px)); }
.oh-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }

.oh-col-label {
  grid-column: 1 / -1;
  font-family: var(--mono, ui-monospace, monospace); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #888;
  padding: 8px 10px 2px;
}

.oh-item-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 10px; border-radius: 9px; text-decoration: none;
  transition: background 0.14s ease;
}
.oh-item-link:hover { background: rgba(17, 17, 17, 0.05); }
.oh-icon {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px; line-height: 1; color: var(--accent, #4479F5);
  background: rgba(68, 121, 245, 0.1);
}
.oh-item-link b { display: block; font-size: 13px; font-weight: 600; color: #111; letter-spacing: -0.01em; line-height: 1.3; }
.oh-item-link em { display: block; font-style: normal; font-size: 12px; color: #666; margin-top: 1px; line-height: 1.4; }
.oh-item-link .oh-go {
  margin-left: auto; align-self: center; color: #999; font-size: 13px;
  opacity: 0; transform: translateX(-3px); transition: all 0.15s ease;
}
.oh-item-link:hover .oh-go { opacity: 1; transform: none; color: var(--accent, #4479F5); }

/* featured card */
.oh-featured {
  margin: 8px 0 4px; padding: 6px 10px;
  background: linear-gradient(135deg, rgba(68, 121, 245, 0.08), rgba(124, 92, 252, 0.08));
  border: 1px solid rgba(68, 121, 245, 0.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none;
}
.oh-featured b { display: block; font-size: 13px; font-weight: 600; color: #111; }
.oh-featured span { display: block; font-size: 12px; color: #666; margin-top: 1px; }
.oh-featured .oh-go { color: var(--accent, #4479F5); font-size: 13px; flex: 0 0 auto; }

.oh-mega-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 4px 0 0; padding: 10px;
  border-top: 1px solid rgba(17, 17, 17, 0.07);
  font-size: 12px; font-weight: 600; color: #111; text-decoration: none; border-radius: 8px;
}
.oh-mega-footer:hover { color: var(--accent, #4479F5); }

/* narrow panels */
.oh-mega.narrow .oh-item-link { align-items: center; }
.oh-mega.narrow .oh-icon { width: 26px; height: 26px; font-size: 12px; }

/* actions */
.oh-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.oh-ghost {
  padding: 8px 12px; font-size: 13px; font-weight: 500; color: #555;
  text-decoration: none; border-radius: 8px; white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.oh-ghost:hover { color: #111; background: rgba(17, 17, 17, 0.05); }
.oh-cta {
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: #fff;
  background: #111; border-radius: 8px; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.oh-cta:hover { background: #000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(17, 17, 17, 0.18); }

/* toggle */
.oh-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #111; }

/* ── Mobile drawer ────────────────────────────────────────────── */
.oh-drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.oh-drawer.open { visibility: visible; }
.oh-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(17, 17, 17, 0.32);
  opacity: 0; transition: opacity 0.25s ease;
}
.oh-drawer.open .oh-drawer-backdrop { opacity: 1; }
.oh-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100%);
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: -24px 0 60px -20px rgba(17, 17, 17, 0.25);
  padding: 20px 20px 28px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column; gap: 4px;
}
.oh-drawer.open .oh-drawer-panel { transform: none; }
.oh-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.oh-drawer-close { background: none; border: 0; cursor: pointer; color: #111; padding: 6px; border-radius: 8px; }
.oh-drawer-close:hover { background: rgba(17, 17, 17, 0.06); }

.oh-drawer .oh-center { flex-direction: column; align-items: stretch; }
.oh-drawer .oh-item { width: 100%; }
.oh-drawer .oh-trigger { width: 100%; justify-content: space-between; font-size: 15px; color: #111; padding: 12px 8px; }
.oh-drawer .oh-mega {
  position: static; opacity: 1; visibility: visible; transform: none;
  box-shadow: none; border: 0; background: transparent; padding: 0 0 0 8px;
  display: none; width: 100% !important; min-width: 0;
}
.oh-drawer .oh-item.open .oh-mega { display: block; }
.oh-drawer .oh-mega-grid { grid-template-columns: 1fr; }
.oh-drawer .oh-col-label { grid-column: 1; }
.oh-drawer .oh-mega-footer, .oh-drawer .oh-featured { display: none; }
.oh-drawer .oh-item-link { padding: 10px 8px; }

.oh-drawer .oh-actions { flex-direction: column; margin: auto 0 0; gap: 10px; align-items: stretch; }
.oh-drawer .oh-actions .oh-cta { width: 100%; text-align: center; padding: 13px; }
.oh-drawer .oh-actions .oh-ghost { text-align: center; }

@media (max-width: 900px) {
  .oh-center, .oh-actions { display: none; }
  .oh-toggle { display: block; }
  .oh-nav-inner { padding: 0 20px; }
}
