/* ==========================================================================
   PurePickHub — Base styles & design system
   ========================================================================== */

:root {
  --pph-primary: #4f46e5;
  --pph-primary-dark: #4338ca;
  --pph-accent: #f59e0b;
  --pph-ink: #111827;
  --pph-muted: #6b7280;
  --pph-surface: #ffffff;
  --pph-bg: #f8f9fb;
  --pph-border: #e5e7eb;
  --pph-radius: 14px;
  --pph-shadow: 0 1px 3px rgba(17, 24, 39, .06), 0 4px 14px rgba(17, 24, 39, .05);
  --pph-shadow-hover: 0 4px 10px rgba(17, 24, 39, .08), 0 12px 28px rgba(17, 24, 39, .10);
}

body {
  background: var(--pph-bg);
  color: var(--pph-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--pph-primary); text-decoration: none; }
a:hover { color: var(--pph-primary-dark); }

.btn-primary {
  --bs-btn-bg: var(--pph-primary);
  --bs-btn-border-color: var(--pph-primary);
  --bs-btn-hover-bg: var(--pph-primary-dark);
  --bs-btn-hover-border-color: var(--pph-primary-dark);
  --bs-btn-active-bg: var(--pph-primary-dark);
  --bs-btn-active-border-color: var(--pph-primary-dark);
}

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .5);
  outline-offset: 2px;
}

/* Header / navbar */
.site-header .navbar-brand { font-size: 1.25rem; color: var(--pph-ink); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pph-primary), #7c3aed);
  color: #fff;
  font-size: 1rem;
}
.site-header .nav-link { color: var(--pph-ink); font-weight: 500; }
.site-header .nav-link:hover { color: var(--pph-primary); }

/* Search */
.search-form { min-width: 280px; }
.search-input { border-radius: 999px 0 0 999px; border-right: 0; }
.search-btn { border-radius: 0 999px 999px 0; }
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--pph-surface);
  border: 1px solid var(--pph-border);
  border-radius: 12px;
  box-shadow: var(--pph-shadow-hover);
  z-index: 1050;
  max-height: 420px;
  overflow-y: auto;
}
.search-suggestions .suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--pph-ink);
  border-bottom: 1px solid var(--pph-border);
}
.search-suggestions .suggestion-item:last-child { border-bottom: 0; }
.search-suggestions .suggestion-item:hover,
.search-suggestions .suggestion-item.active { background: var(--pph-bg); }
.search-suggestions .suggestion-group {
  padding: 8px 14px 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--pph-muted);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 60%, #fff7ed 100%);
  border-bottom: 1px solid var(--pph-border);
  padding: 56px 0;
}
.hero h1 { font-weight: 800; letter-spacing: -0.02em; }
.hero .lead { color: var(--pph-muted); }

/* Sections */
.section-title { font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 18px; }
.section-head .view-all { font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* Footer */
.site-footer a { color: #d1d5db; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 8px; }
.footer-disclosure { color: #fbbf24; }

/* Utility */
.text-muted-2 { color: var(--pph-muted); }
.rounded-xl { border-radius: var(--pph-radius); }
