/* Star Photo Lab — designer portal shared components (nav + footer).
   Builds on the tokens defined in ../../assets/css/app.css. */

/* Avoid a flash of unstyled component slots before JS injects them. */
[data-include] { min-height: 0; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out, background 160ms ease-out;
}
.nav.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(20, 22, 40, 0.05);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand span { color: var(--pw-500); }

.nav-menu {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text-2);
  transition: color 140ms ease-out, background 140ms ease-out;
}
.nav-links a:hover { text-decoration: none; color: var(--text); background: var(--surface-2); }
.nav-links a.is-active { color: var(--pw-600); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { height: 36px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 24px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(20, 22, 40, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease-out, transform 160ms ease-out;
  }
  .nav-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 11px 12px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 8px; }
  .nav-actions .btn { width: 100%; height: 42px; }
}

/* ── Footer ── */
.footer {
  margin-top: 96px;
  background: var(--text);
  color: #C9CCD6;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}
.footer .nav-brand { color: #fff; font-size: 17px; }
.footer .nav-brand span { color: var(--pw-300); }
.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  font-size: 13px;
  line-height: 21px;
  color: #969AA8;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6E7382;
  margin-bottom: 2px;
}
.footer-col a {
  font-size: 13.5px;
  color: #C9CCD6;
  transition: color 140ms ease-out;
}
.footer-col a:hover { text-decoration: none; color: #fff; }

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-base {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #797E8D;
}
.footer-base-meta { color: #5E6373; }

@media (max-width: 760px) {
  .footer { margin-top: 64px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 4px; }
}
