/* v2: mobile nav drawer + responsive polish. */

/* ---------- nav: studio link + burger + mobile drawer ---------- */

.nav-links .nav-studio {
  background: var(--ink);
  color: var(--y);
  border-radius: 100px;
  padding: 7px 14px;
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(26, 26, 46, 0.2);
}
.nav-links .nav-studio:hover {
  color: var(--wh);
  transform: translateY(-2px);
  border-bottom-color: transparent;
}

.nav-drawer-profile {
  display: none;
}

/* account links in nav menu (profile + sign out) */
.nav-drawer-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.nav-drawer-link {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  background: var(--wh);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.nav-drawer-link:hover { transform: translate(-1px, -1px); }

button.nav-drawer-link {
  font: inherit;
  appearance: none;
}
.nav-drawer-signout {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  color: var(--soft);
  text-decoration: underline;
  padding: 6px 10px;
}
.nav-drawer-signout:hover {
  color: var(--ink);
  transform: none;
}

@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height, 64px);
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, var(--y) 0%, #fff4a8 100%);
    border-bottom: var(--bw) solid var(--ink);
    padding: 10px 16px 18px;
    box-shadow: 0 12px 28px rgba(26, 26, 46, 0.12);
    max-height: calc(100dvh - var(--nav-height, 64px));
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-drawer-search {
    display: block;
    padding: 4px 0 14px;
    margin-bottom: 6px;
    border-bottom: 2px dashed rgba(26, 26, 46, 0.18);
  }

  .nav-search-drawer {
    width: 100%;
    box-shadow: var(--sh);
  }
  .nav-search-drawer input { width: 100%; font-size: 14px; }

  .nav-links > a,
  .nav-links > button {
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 900;
    border-bottom: 2px dashed rgba(26, 26, 46, 0.12);
    text-align: left;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .nav-links > a:hover {
    border-bottom-color: rgba(26, 26, 46, 0.12);
    background: rgba(255, 255, 255, 0.35);
    transform: none;
  }

  .nav-links .nav-studio {
    border: none;
    background: none;
    color: var(--ink);
    font-weight: 900;
    box-shadow: none;
    border-radius: 0;
  }

  .nav-links .cook-btn,
  .nav-links .nav-drawer-cook,
  .nav-links .nav-drawer-profile {
    display: block;
    margin-top: 10px;
    border-radius: 100px;
    border: var(--bw) solid var(--ink);
    text-align: center;
    border-bottom: var(--bw) solid var(--ink);
  }

  .nav-links .nav-drawer-profile {
    background: var(--pk);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    padding: 12px 20px;
    box-shadow: var(--sh);
    text-decoration: none;
  }

  .nav-drawer-account {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 2px dashed rgba(26, 26, 46, 0.18);
    margin-left: 0;
  }

  .nav-drawer-account .nav-drawer-link {
    border-radius: 0;
    border: none;
    border-bottom: 2px dashed rgba(26, 26, 46, 0.12);
    box-shadow: none;
    background: transparent;
    text-align: left;
    padding: 14px 10px;
    font-size: 15px;
  }

  .nav-drawer-signout {
    color: var(--soft);
    text-decoration: none;
    font-weight: 800;
  }

  /* mobile: search lives in the drawer only — frees the top bar */
  .nav-right > .nav-search-bar { display: none; }

  /* compact auth — avatar only in the bar */
  #nav-auth .nav-user .nav-user-handle { display: none; }
  #nav-auth .nav-user {
    padding: 3px;
    border-radius: 50%;
    background: var(--wh);
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
  }
  #nav-auth .nav-avatar { width: 28px; height: 28px; border-width: 0; }
  #nav-auth .nav-signin {
    font-size: 11px;
    padding: 6px 10px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  #nav-auth { gap: 6px; }

  .nav-right { gap: 6px; flex: 0 0 auto; }
}

/* legacy burger block removed — styles live in nav.css + above */

@media (max-width: 600px) {
.footer-grid { grid-template-columns: 1fr; }
}

/* small screens: keep the burger on-screen */
@media (max-width: 640px) {
.site-nav { padding: 0 14px; gap: 8px; }
.nav-right .live-badge { display: none; }
.brand .wordmark { font-size: 28px; font-weight: 800; }
}
