/* ── public.css ───────────────────────────────────────────────────────────────
   Styles for public-facing pages (base_public.html).
   nav-height is 64px for the public navbar.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --nav-height:  64px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
}

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--c-primary-dark);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.navbar__brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--c-white);
  text-decoration: none;
  letter-spacing: -.01em;
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Logo sizing and positioning handled by .navbar-logo in main.css */

.navbar__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.navbar__user-greeting {
  color: rgba(255,255,255,.7);
  font-size: .875rem;
}

.navbar__actions .btn { padding: .4rem 1rem; }

.hero__logo {
  max-height: 22rem;
}

/* ── Page body offset for fixed navbar ──────────────────────────── */
.page-body {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ── Flash messages ─────────────────────────────────────────────── */
.messages-container {
  position: fixed;
  top: calc(var(--nav-height) + .75rem);
  right: 1rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 420px;
}

.alert {
  padding: .85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  animation: slideIn .25s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.alert--info      { background: #e8f4fb; color: #1a5f7a; border-left: 4px solid var(--c-info); }
.alert--success   { background: #e8f5ee; color: #1a4731; border-left: 4px solid var(--c-accent); }
.alert--warning   { background: #fef6ed; color: #7a3e10; border-left: 4px solid var(--c-warning); }
.alert--danger    { background: #fdeaea; color: #7a1a1a; border-left: 4px solid var(--c-danger); }
.alert--secondary { background: var(--c-grey-light); color: var(--c-text-muted); border-left: 4px solid var(--c-grey-mid); }

.alert__close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: .6;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.alert__close:hover { opacity: 1; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,.65);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--c-white);
  display: block;
  margin-bottom: .4rem;
}

.footer__strapline {
  font-size: .85rem;
  margin-bottom: .75rem;
}

.footer__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
