/*
 * PredictionTalk Design System v1 — shell.css
 * Styles for the shared header + footer + nav. The HTML structure is in
 * `shell.html` — paste it into any non-Astro consumer (events SPA, docs,
 * Flarum extension) and the header / footer will render the PT way.
 */

/* ── Sticky header ──────────────────────────────────────────────────────── */
.pt-header {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Fully opaque — translucency + backdrop-filter looks classy in mock-ups
     but leaks content underneath on real iOS Safari / mobile Chromium. */
  background: var(--pt-color-bg);
  border-bottom: 1px solid var(--pt-color-border);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.5);
}

.pt-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: var(--pt-space-4) var(--pt-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pt-space-4);
}

.pt-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: var(--pt-text-lg);
  color: var(--pt-color-text);
  text-decoration: none;
}
.pt-header__brand:hover { color: var(--pt-color-text); }
.pt-header__brand svg { display: inline-block; }

.pt-header__nav {
  display: none;
  align-items: center;
  gap: var(--pt-space-8);
  font-size: var(--pt-text-sm);
  font-weight: 500;
}
@media (min-width: 768px) {
  .pt-header__nav { display: flex; }
}

.pt-header__link {
  color: var(--pt-color-text-muted);
  text-decoration: none;
  transition: color var(--pt-transition-fast);
}
.pt-header__link:hover,
.pt-header__link.is-active {
  color: var(--pt-color-accent);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.pt-footer {
  margin-top: var(--pt-space-16);
  border-top: 1px solid var(--pt-color-border-soft);
  background: color-mix(in srgb, var(--pt-color-bg-elevated) 30%, transparent);
}

.pt-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: var(--pt-space-10) var(--pt-space-6);
}

.pt-footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--pt-space-6);
}
@media (min-width: 768px) {
  .pt-footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.pt-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--pt-color-text);
  margin-bottom: var(--pt-space-2);
}

.pt-footer__tagline {
  font-size: var(--pt-text-sm);
  color: var(--pt-color-text-muted);
}

.pt-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pt-space-2) var(--pt-space-6);
  font-size: var(--pt-text-sm);
}
.pt-footer__links a {
  color: var(--pt-color-text-muted);
  text-decoration: none;
  transition: color var(--pt-transition-fast);
}
.pt-footer__links a:hover { color: var(--pt-color-accent); }

.pt-footer__bottom {
  margin-top: var(--pt-space-8);
  padding-top: var(--pt-space-6);
  border-top: 1px solid var(--pt-color-border-soft);
  font-size: var(--pt-text-xs);
  color: var(--pt-color-text-faint);
}
