/* =========================================================
   DESKTOP NAV — DARK / SYSTEM STYLE
   Uses shared design tokens (tokens.css)
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');

/* =========================================================
   NAV BAR
========================================================= */
#nav-desktop {
  position: absolute;
  top: 0;
  width: 100%;
  height: var(--nav-height);

  display: flex;
  justify-content: center;
  align-items: center;

  background:
    radial-gradient(circle at 20% 50%, rgba(99,102,241,0.08), transparent 60%),
    radial-gradient(circle at 80% 40%, rgba(139,92,246,0.08), transparent 60%),
    linear-gradient(180deg,#0b0d12,#141821);

  backdrop-filter: blur(8px);

  border-bottom: 1px solid rgba(120,130,255,0.15);

  box-shadow:
    0 4px 30px rgba(0,0,0,0.6),
    inset 0 -1px 0 rgba(120,130,255,0.08);

  z-index: 9999;
}

/* =========================================================
   NAV INNER
========================================================= */
#nav-desktop .nav-inner {
  width: 100%;
  max-width: 1350px;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   LOGO
========================================================= */
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  height: 32px;
  width: auto;
  display: block;

  filter:
    drop-shadow(0 0 4px rgba(99,102,241,0.6))
    drop-shadow(0 0 10px rgba(139,92,246,0.35));

  transition: transform .35s ease, filter .35s ease;
}

.logo-link:hover .logo-icon {
  transform: rotate(8deg) scale(1.08);
  filter:
    drop-shadow(0 0 6px rgba(99,102,241,0.8))
    drop-shadow(0 0 14px rgba(139,92,246,0.6));
}

.logo-bio,
.logo-journal {
  font-family: 'Fira Code', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--gb-text-primary);
}

/* =========================================================
   CENTER MENU
========================================================= */
#nav-desktop .menu-center {
  display: flex;
  align-items: center;
  gap: 26px;
}

#nav-desktop .menu-center > a,
#nav-desktop .has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 6px;

  font-family: 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 500;

  color: var(--gb-nav-text);
  text-decoration: none;

  transition: color 0.2s ease;
}

#nav-desktop .menu-center > a:hover,
#nav-desktop .has-submenu > a:hover {
  color: var(--gb-nav-text-active);
}

/* Active page (optional class) */
#nav-desktop .menu-center a.active {
  color: var(--gb-accent-sky);
}

/* =========================================================
   SUBMENUS
========================================================= */
#nav-desktop .has-submenu {
  position: relative;
}

#nav-desktop .has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

#nav-desktop .submenu {
    display: none;
    position: absolute;
    top: 26px;
    left: 0;
    width: 260px;
    padding: 10px 0;
    list-style: none;
    background: #161626;
    border-radius: var(--gb-radius-lg);
    border: 1px solid var(--gb-border-subtle);
    box-shadow: var(--gb-shadow-deep);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 5000;
}

#nav-desktop .has-submenu.submenu-active > .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#nav-desktop .submenu .subitem a {
  display: block;
  margin: 4px 8px;
  padding: 12px 16px;

  font-family: 'Fira Code', monospace;
  font-size: 14px;

  color: var(--gb-text-secondary);
  text-decoration: none;

  border-radius: var(--gb-radius-md);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

#nav-desktop .submenu .subitem a:hover {
  color: var(--gb-text-primary);
  transform: translateX(2px);
}

/* =========================================================
   RIGHT ACTIONS
========================================================= */
#nav-desktop .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#nav-desktop .nav-actions a {
  padding: 8px 12px;
  border-radius: var(--gb-radius-sm);

  font-family: 'Fira Code', monospace;
  font-size: 14px;

  color: var(--gb-nav-text);
  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

#nav-desktop .nav-actions a:hover {
  background: var(--gb-surface-panel-soft);
  color: var(--gb-nav-text-active);
}

/* =========================================================
   DONATE BUTTON (QUIET, SYSTEM-LIKE)
========================================================= */
#donate-button-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#custom-donate-btn {
  position: absolute;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 14px;
  border-radius: 999px;

  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  font-weight: 500;

  color: var(--gb-text-secondary);
  background: transparent;
  border: 1px solid var(--gb-border-subtle);

  pointer-events: none;
  white-space: nowrap;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

#custom-donate-btn .heart {
  color: #e11d48;
  font-size: 0.9rem;
}

#donate-button iframe,
#donate-button img {
  opacity: 0;
}

#donate-button-container:hover #custom-donate-btn {
  background: var(--gb-surface-panel-soft);
  border-color: var(--gb-accent-sky-faint);
  color: var(--gb-text-primary);
}

/* =========================================================
   DESKTOP ONLY SAFETY
========================================================= */
@media (max-width: 900px) {
  #nav-desktop {
    display: none;
  }
}
