/* ═══════════════════════════════════════════════════════════════
   PetDB – Frontend Stylesheet (publieke kant)
   Stijl: warm, elegant, boutique / salon gevoel
════════════════════════════════════════════════════════════════ */

/* ── Navbar ──────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 1.5rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.header-brand {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none;
}
.header-brand img {
  height: 48px; width: auto; object-fit: contain;
  border-radius: 8px;
}
.header-brand .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 700;
  color: var(--rose-dk); line-height: 1.1;
}
.header-nav { display: flex; align-items: center; gap: .5rem; }
.header-nav a {
  color: var(--text-mid); font-weight: 600; font-size: .9rem;
  padding: .45rem .9rem; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.header-nav a:hover { background: var(--blush); color: var(--rose); }
.header-nav .btn-primary { color: var(--white) !important; }

/* ── Hero / Page title strip ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blush) 0%, var(--gold-lt) 100%);
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '🐾';
  position: absolute; font-size: 8rem; opacity: .06;
  top: -1rem; right: 3rem; pointer-events: none;
}
.page-hero h1 { color: var(--text); margin-bottom: .5rem; }
.page-hero p  { color: var(--text-mid); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ── Search box ──────────────────────────────────────────────── */
.search-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  margin: -2.5rem auto 2.5rem;
  max-width: 780px;
  position: relative; z-index: 10;
}
.search-box h2 { font-size: 1.2rem; margin-bottom: 1.1rem; color: var(--text-mid); }
.search-fields { display: grid; grid-template-columns: repeat(3,1fr) auto; gap: .75rem; align-items: end; }
@media (max-width: 680px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .btn { grid-column: 1/-1; }
}
@media (max-width: 420px) {
  .search-fields { grid-template-columns: 1fr; }
}

/* ── Results grid ────────────────────────────────────────────── */
.results-count {
  font-size: .88rem; color: var(--text-muted);
  margin-bottom: 1rem;
}
.results-count strong { color: var(--rose-dk); }
.klanten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.klant-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none; color: inherit; display: block;
}
.klant-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.klant-card-img {
  width: 100%; height: 160px; object-fit: cover;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--blush-dk);
}
.klant-card-img img { width: 100%; height: 100%; object-fit: cover; }
.klant-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.klant-card-body h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.klant-card-body .dier-naam {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-style: italic; color: var(--rose);
  margin-bottom: .4rem; line-height: 1;
}
.klant-card-body .dog-type {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--gold-lt); color: #7a5a20;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  padding: .2rem .65rem; border-radius: 20px;
}

/* ── Detail pagina ───────────────────────────────────────────── */
.detail-wrap {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 2rem; align-items: start;
}
@media (max-width: 720px) {
  .detail-wrap { grid-template-columns: 1fr; }
}
.detail-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--blush-dk);
  box-shadow: var(--shadow);
  aspect-ratio: 1/1;
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo .no-photo {
  width: 100%; height: 100%; min-height: 260px;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--blush-dk);
}
.detail-info { display: flex; flex-direction: column; gap: 1.1rem; }
.detail-info .naam-groot {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.1;
}
.detail-info .eigenaar { color: var(--text-mid); font-size: 1.05rem; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.detail-remarks {
  background: var(--white); border: 1px solid var(--border-lt);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.detail-remarks h4 { margin-bottom: .75rem; color: var(--text-mid); font-size: 1rem; }
.richtext-output { line-height: 1.75; color: var(--text); }
.richtext-output p  { margin-bottom: .75rem; }
.richtext-output ul,
.richtext-output ol { padding-left: 1.4rem; margin-bottom: .75rem; }
.richtext-output strong { color: var(--rose-dk); }

/* ── Back button strip ───────────────────────────────────────── */
.back-strip {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.5rem; color: var(--text-muted);
  font-size: .9rem;
}
.back-strip a { color: var(--rose); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: #c8b8a8;
  padding: 2.5rem 1.5rem;
  margin-top: auto;
  text-align: center;
}
.site-footer .footer-inner { max-width: 1120px; margin: 0 auto; }
.site-footer p { margin-bottom: .4rem; font-size: .9rem; }
.site-footer a { color: var(--blush-dk); }
.site-footer a:hover { color: var(--rose); }
.richtext-footer p  { margin-bottom: .3rem; }
.richtext-footer a  { color: var(--blush-dk); }

/* ── Login pagina frontend ───────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--blush) 0%, var(--cream) 60%, var(--gold-lt) 100%);
  padding: 2rem 1rem;
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center; margin-bottom: 1.5rem;
}
.login-logo img { height: 64px; margin: 0 auto .6rem; border-radius: 10px; }
.login-logo h1  { font-size: 1.8rem; color: var(--rose-dk); }
.login-logo p   { color: var(--text-muted); font-size: .88rem; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3    { font-size: 1.3rem; margin-bottom: .5rem; color: var(--text-mid); }
