/* aw-app-nav.css - the light navigation for dedicated app screens (static/assets/js/aw-app-nav.js).
   Plain text rows with a small icon, no square buttons (Andrew 11-26). Colours come from the page's own
   tokens when it has them (--c-text, --c-muted, --c-hover, --c-border, --c-elev, --c-pink), with dark
   fallbacks, so the same rows sit right on the home page in light and dark and on the other app screens. */
.awn-rows { display: flex; flex-direction: column; gap: 1px; padding: 4px 8px; }
.awn-row {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px;
  border: 0; background: none; color: var(--c-text, #e4e4e7); font: inherit; font-size: 14px; text-align: left;
  text-decoration: none; cursor: pointer; width: 100%;
}
.awn-row:hover, .awn-row:focus-visible, .awn-row[aria-expanded="true"] { background: var(--c-hover, rgba(255, 255, 255, 0.06)); }
.awn-row:focus-visible { outline: 2px solid var(--c-link, #06b6d4); outline-offset: -2px; }
.awn-row i { flex: none; width: 20px; font-size: 18px; text-align: center; color: var(--awn-c, var(--c-muted, #a1a1aa)); }
.awn-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.awn-badge {
  flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 700;
  line-height: 20px; text-align: center; background: var(--c-pink, #ff2ea6); color: #fff;
}
.awn-row[hidden], .awn-badge[hidden] { display: none; }
/* Account row (signed in) */
.awn-account { position: relative; }
.awn-acct {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border-radius: 10px;
  border: 0; background: none; color: var(--c-text, #e4e4e7); font: inherit; text-align: left; cursor: pointer;
}
.awn-acct:hover, .awn-acct[aria-expanded="true"] { background: var(--c-hover, rgba(255, 255, 255, 0.06)); }
.awn-acct:focus-visible { outline: 2px solid var(--c-link, #06b6d4); outline-offset: -2px; }
.awn-av {
  flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: flex; align-items: center;
  justify-content: center; background: var(--c-elev, #1f1f2a); font-weight: 700; font-size: 14px;
}
.awn-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.awn-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.awn-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.awn-credits { font-size: 12px; color: var(--c-gold, #f59e0b); }
.awn-acct > i { flex: none; color: var(--c-muted, #a1a1aa); }
.awn-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 70; padding: 6px;
  background: var(--c-elev, #1f1f2a); border: 1px solid var(--c-border, rgba(255, 255, 255, 0.09)); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  /* Ten items: on a short window (a landscape phone) the menu scrolls instead of running off the top. */
  max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain;
}
.awn-menu[hidden] { display: none; }
.awn-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border-radius: 8px;
  border: 0; background: none; color: var(--c-text, #e4e4e7); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
}
.awn-menu-item:hover, .awn-menu-item:focus-visible { background: var(--c-hover, rgba(255, 255, 255, 0.06)); outline: none; }
.awn-menu-item i { width: 20px; text-align: center; color: var(--c-muted, #a1a1aa); }

/* Signed out: a small sign-up card */
.awn-signup { padding: 12px; border: 1px solid var(--c-border, rgba(255, 255, 255, 0.09)); border-radius: 12px; }
.awn-signup p { margin: 0 0 10px; font-size: 13px; color: var(--c-muted, #a1a1aa); line-height: 1.4; }
.awn-signup-btn {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-weight: 600;
  background: var(--c-pink, #ff2ea6); color: var(--c-on-pink, #fff); text-decoration: none; font-size: 14px;
}
.awn-login-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 4px; font-size: 14px; color: var(--c-text, #e4e4e7); text-decoration: none; }
.awn-login-link:hover { text-decoration: underline; }

/* Touch: every row at least 44 px tall */
@media (pointer: coarse), (max-width: 900px) {
  .awn-row { min-height: 44px; }
}

/* Account menu counts (messages, notifications) and an unread dot on the account row */
.awn-menu-item { text-align: left; }
.awn-menu-item .awn-label { flex: 1; min-width: 0; }
.awn-acct { position: relative; }
.awn-acct.awn-has-unread .awn-av::after {
  content: ""; position: absolute; left: 34px; top: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-pink, #ff2ea6); border: 2px solid var(--c-side, #111116);
}

/* Corner variant (top right, Andrew 11-27): the profile circle, or Log in + Sign up for free */
.awn-corner { flex: none; }
.awn-corner .awn-acct { width: auto; min-height: 44px; padding: 4px; border-radius: 50%; }
.awn-corner .awn-acct .awn-who, .awn-corner .awn-acct > i { display: none; }
.awn-corner .awn-av { width: 36px; height: 36px; }
.awn-corner .awn-acct.awn-has-unread .awn-av::after { left: auto; right: 2px; top: 2px; border-color: var(--c-bg, #0b0b10); }
.awn-corner .awn-menu { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; width: 260px; max-height: calc(100dvh - 80px); }
.awn-menu-who { display: flex; flex-direction: column; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--c-border, rgba(255, 255, 255, 0.09)); line-height: 1.3; }
.awn-menu-who .awn-name { font-size: 14px; font-weight: 600; }
.awn-menu-who .awn-credits { font-size: 12px; color: var(--c-gold, #f59e0b); }
.awn-corner-auth { display: flex; align-items: center; gap: 8px; }
.awn-login-pill, .awn-signup-pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
/* Sign up is the brand's primary action (pink); Log in is the quiet one. */
.awn-signup-pill { background: var(--c-pink, #ff2ea6); color: var(--c-on-pink, #fff); }
.awn-login-pill { border: 1px solid var(--c-border, rgba(255, 255, 255, 0.18)); color: var(--c-text, #ececf2); }
.awn-login-pill:focus-visible, .awn-signup-pill:focus-visible { outline: 2px solid var(--c-link, #06b6d4); outline-offset: 2px; }
@media (max-width: 420px) { .awn-login-pill, .awn-signup-pill { padding: 0 12px; font-size: 13px; } }
@media (pointer: coarse) { .awn-login-pill, .awn-signup-pill { min-height: 44px; } }
