/* ── Navigation Page — exact clone of huasheng.ai/design-inspiration/ ── */
/* Loaded only on /navigation/. Does not affect other pages. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Geist+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-page: #FAFAF8;
  --bg-body: #F5F4F0;
  --bg-card: #F5F4F0;
  --bg-card-hover: #EFEDE4;
  --text-primary: #1A1A1A;
  --text-secondary: #4A3F32;
  --text-tertiary: #6B5F4D;
  --text-muted: #8B7140;
  --text-gold: #8B7140;
  --text-gold-light: #C4B39A;
  --gold-accent: #BC9B6A;
  --gold-dark: #8B7140;
  --border-light: rgba(27,22,17,0.1);
  --border-med: rgba(27,22,17,0.12);
  --border-strong: rgba(27,22,17,0.18);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Cascadia Code', monospace;
}

/* ── Nav Override (light mode) ── */
.nav-light,
.nav-light.scrolled {
  background: rgba(250,250,248,0.85) !important;
  backdrop-filter: blur(24px);
  border-bottom-color: #F0EEE9 !important;
}
.nav-light .nav-brand,
.nav-light .nav-links a {
  color: #1A1A1A !important;
}
.nav-light .nav-links a:hover {
  color: #8B7140 !important;
}

/* ── Page Wrappers ── */
.nav-outer {
  background: #FAFAF8;
}
.nav-page {
  min-height: 100vh;
  background: #F5F4F0;
  color: #1A1A1A;
  padding-top: 112px;
  padding-bottom: 0;
  font-family: var(--font-sans);
}
.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 640px) {
  .nav-container { padding: 0 40px; }
}
@media (min-width: 1024px) {
  .nav-container { padding: 0 80px; }
}

/* ── Breadcrumb ── */
.nav-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8B7140;
  margin-bottom: 56px;
}
.nav-breadcrumb a {
  color: #8B7140;
  transition: color 0.2s;
}
.nav-breadcrumb a:hover {
  color: #1A1A1A;
}
.nav-breadcrumb .sep {
  color: #C4B39A;
  margin: 0 12px;
}
.nav-breadcrumb .current {
  color: #1A1A1A;
}

/* ── Hero ── */
.nav-hero {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
}
@media (min-width: 1024px) {
  .nav-hero {
    grid-template-columns: 1.3fr 1fr;
  }
}
.nav-hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8B7140;
  margin-bottom: 24px;
}
.nav-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
@media (min-width: 640px) {
  .nav-hero-title { font-size: 72px; }
}
@media (min-width: 1024px) {
  .nav-hero-title { font-size: 96px; }
}
.nav-hero-title .accent {
  font-style: italic;
  color: #8B7140;
}
.nav-hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nav-hero-desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: #4A3F32;
  max-width: 440px;
}
@media (min-width: 1024px) {
  .nav-hero-desc { font-size: 20px; }
}

/* ── Stats ── */
.nav-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.nav-stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: #1A1A1A;
}
.nav-stat-number .plus {
  font-style: italic;
  color: #8B7140;
  font-size: 0.55em;
  margin-left: 0.5em;
}
.nav-stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8B7140;
  margin-top: 8px;
}

/* ── Sticky Filter Bar ── */
.nav-filter-bar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-med);
  padding: 16px 0;
  scroll-margin-top: 80px;
}
.filter-tabs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.filter-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0 0 4px;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  color: #8B7140;
}
.filter-tab:hover {
  color: #1A1A1A;
}
.filter-tab.active {
  color: #1A1A1A;
  border-bottom: 1px solid #1A1A1A;
}

/* ── Main content ── */
.nav-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 640px) {
  .nav-main { padding: 0 40px; }
}
@media (min-width: 1024px) {
  .nav-main { padding: 0 80px; }
}

/* ── Card Grid ── */
.nav-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(27,22,17,0.1);
  margin: 0;
}
@media (min-width: 640px) {
  .nav-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .nav-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Card ── */
.nav-card {
  display: flex;
  flex-direction: column;
  background: #F5F4F0;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s;
  border-left: 2px solid transparent;
  min-height: 180px;
}
.nav-card:hover {
  background: #EFEDE4;
}

/* Card tags row */
.nav-card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.nav-card-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  padding-bottom: 2px;
}
.nav-card-tag.tag-free,
.nav-card-tag.tag-freemium {
  color: #8B7140;
}
.nav-card-tag.tag-paid {
  color: #6B5F4D;
}
.nav-card-tag.tag-must {
  color: #1A1A1A;
  border-bottom: 1px solid #1A1A1A;
}.nav-card-tag.tag-category {
  color: #8B7140;
}

/* Card title */
.nav-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1A1A1A;
  transition: color 0.3s;
}
.nav-card:hover .nav-card-title {
  color: #8B7140;
}
.nav-card-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: contain;
}
.unified-icon {
  filter: grayscale(100%) contrast(1.2) opacity(0.7);
  mix-blend-mode: multiply;
}
.nav-card-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(27,22,17,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-card:hover .nav-card-arrow {
  opacity: 1;
}

/* Card description */
.nav-card-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: #4A3F32;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Filter animation ── */
.nav-card.hidden {
  display: none;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: #1A1A1A;
  color: #F2EADC;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
}
.back-to-top:hover {
  background: #8B7140;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Quick Index ── */
.nav-index {
  padding: 80px 0;
}
.nav-index-header {
  margin-bottom: 40px;
}
.nav-index-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: rgba(27,22,17,0.22);
  font-variant-numeric: tabular-nums;
}
.nav-index-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8B7140;
}
.nav-index-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #1A1A1A;
  margin-top: 16px;
}
.nav-index-title .accent {
  font-style: italic;
  color: #8B7140;
}
.nav-index-desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: #4A3F32;
  max-width: 640px;
  margin-top: 16px;
}

/* Index table */
.index-table-wrap {
  overflow-x: auto;
}
.index-table {
  width: 100%;
  border-collapse: collapse;
}
.index-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8B7140;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 2px solid #1A1A1A;
}
.index-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.index-table tr {
  transition: background-color 0.2s;
}
.index-table tr:hover {
  background: #EFEDE4;
}
.index-task {
  font-family: var(--font-display);
  font-size: 16px;
  color: #1A1A1A;
  white-space: nowrap;
}
.index-resources {
  font-size: 14px;
  font-weight: 300;
  color: #4A3F32;
  line-height: 1.7;
}
.index-resources a {
  color: #4A3F32;
  text-decoration: none;
}
.index-resources a:hover {
  color: #1A1A1A;
  text-decoration: underline;
}
.index-arrow {
  color: rgba(27,22,17,0.2);
  margin: 0 4px;
}

/* ── Footer ── */
.nav-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 13px;
  color: rgba(27,22,17,0.35);
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-page { padding-top: 80px; }
  .nav-breadcrumb { margin-bottom: 32px; }
  .nav-hero { padding-bottom: 40px; gap: 24px; }
  .nav-stats { gap: 20px; }
  .nav-filter-bar { top: 64px; }
  .filter-tabs { gap: 16px; }
  .nav-card { padding: 16px; }
  .nav-card-title { font-size: 17px; }
  .index-table th,
  .index-table td { padding: 12px 16px; }
  .index-task { font-size: 14px; }
}
