/* tasteHQ shared site footer — prev/next journey + brand mark + license.
 * Inherits tokens from base.css. Pages set data-prev / data-next attributes
 * (or omit them for the home/auxiliary pages) and the markup below renders
 * the path through the platform.
 */
.site-foot {
  max-width: 960px;
  margin: 96px auto 0;
  padding: 32px 32px 48px;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* ── Journey row (prev / next) ───────────────────────────────────────── */
.site-foot-journey {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.site-foot-prev, .site-foot-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.site-foot-prev:hover, .site-foot-next:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.site-foot-prev { text-align: left; }
.site-foot-next { text-align: right; }
.site-foot-step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.site-foot-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Single-side journey (home / auxiliary pages) */
.site-foot-journey.single { grid-template-columns: 1fr; }
.site-foot-journey.single .site-foot-next { grid-column: 1; }

/* ── Meta row ────────────────────────────────────────────────────────── */
.site-foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--dim);
}
.site-foot-meta a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-foot-meta a:hover { color: var(--text); border-bottom-color: var(--accent); }
.site-foot-mark {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text) !important;
}
.site-foot-sep { color: var(--dim); }

/* ── Creator credit ─────────────────────────────────────────────────── */
.site-foot-creator {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.site-foot-creator.visible {
  opacity: 1;
  transform: translateY(0);
}
.w230-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--dim);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.w230-credit:hover { color: var(--muted); }
.w230-logo {
  height: 16px;
  width: auto;
  display: block;
  filter: opacity(0.45);
  transition: filter 0.2s;
}
html[data-theme="dark"] .w230-logo {
  filter: invert(1) opacity(0.45);
}
.w230-credit:hover .w230-logo { filter: opacity(0.8); }
html[data-theme="dark"] .w230-credit:hover .w230-logo {
  filter: invert(1) opacity(0.8);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .site-foot { padding: 24px 20px 40px; margin-top: 64px; }
  .site-foot-journey { grid-template-columns: 1fr; }
  .site-foot-prev, .site-foot-next { text-align: left; }
  .site-foot-next { text-align: left; }
}
