/* ─────────────────────────────────────────
   shared.css — Reset · Nav · Footer · Utils
───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #18181B;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 让 <main> 或内容容器撑满剩余高度 */
main, .page-main { flex: 1; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid #E8E8E8;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: #18181B;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600; color: #18181B;
}
.nav-center { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px; color: #7A7A7A;
  text-decoration: none;
  transition: color .15s;
}
.nav-link.active,
.nav-link:hover { color: #18181B; }
.nav-right { display: flex; align-items: center; }
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: #F4F4F5;
  border-radius: 6px; height: 36px;
  padding: 0 12px; width: 220px;
  border: none; cursor: pointer;
  transition: background .15s;
}
.nav-search:hover { background: #EBEBEC; }
.nav-search input {
  border: none; background: transparent;
  font-size: 13px; color: #18181B;
  outline: none; width: 100%;
  font-family: 'Inter', sans-serif;
}
.nav-search input::placeholder { color: #A1A1AA; }

/* ─── Footer ─── */
.footer {
  background: #18181B;
  padding: 32px 48px;
  display: flex; flex-direction: column; gap: 20px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-box {
  width: 28px; height: 28px;
  background: #fff; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.footer-logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; color: #fff;
}
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-link {
  font-size: 13px; color: #A1A1AA;
  text-decoration: none; transition: color .15s;
}
.footer-link:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-tagline { font-size: 13px; color: #71717A; }
.footer-copy    { font-size: 12px; color: #52525B; }

/* ─── Shared Utilities ─── */
.tag {
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
}
.filter-btn {
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer; border: none;
  font-family: 'Inter', sans-serif;
  transition: background .15s, color .15s;
}
.filter-btn.active                { background: #18181B; color: #fff; }
.filter-btn:not(.active)          { background: #F4F4F5; color: #71717A; }
.filter-btn:not(.active):hover    { background: #EBEBEC; color: #18181B; }

.heart-btn {
  background: none; border: none;
  cursor: pointer; padding: 0;
  display: flex; align-items: center;
  transition: transform .15s;
}
.heart-btn:hover { transform: scale(1.1); }
