/*
Theme Name: Brightlands Kennisbank
Theme URI: https://kennis.campushandboek.nl
Author: Maurice Vinken
Description: Full-page AI kennisbank voor Brightlands Campus Heerlen
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=DM+Serif+Display&display=swap');

:root {
  --groen: #1D9E75;
  --groen-licht: #E1F5EE;
  --groen-donker: #0F6E56;
  --tekst: #1a1a1a;
  --tekst-zacht: #6b7280;
  --rand: #e5e7eb;
  --achtergrond: #f9faf8;
  --wit: #ffffff;
  --radius: 28px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--achtergrond);
  color: var(--tekst);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Rustgevend grid patroon op de achtergrond */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(29,158,117,0.08) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.site-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--tekst);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.site-logo em,
.header-logo-deel2 {
  font-style: normal;
  color: var(--groen);
}

.header-admin-link {
  font-size: 13px;
  color: var(--tekst-zacht);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--rand);
  border-radius: 20px;
  background: var(--wit);
  transition: all 0.15s;
}
.header-admin-link:hover { border-color: var(--groen); color: var(--groen); }

/* ── Body zonder patroon ── */
body.geen-patroon::before { display: none; }

/* ── HERO LOGO (midden, zoals Google) ── */
.hero-logo {
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-logo-naam {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--tekst);
  display: block;
}

.hero-logo-deel2 {
  font-style: normal;
  color: var(--groen);
}

/* ── HERO / ZOEKGEDEELTE ── */
.zoek-sectie {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  min-height: 60vh;
  transition: all 0.4s ease;
}

.zoek-sectie.heeft-resultaat {
  min-height: auto;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  justify-content: flex-start;
}

.zoek-kop {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--tekst);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.zoek-ondertitel {
  font-size: 1rem;
  color: var(--tekst-zacht);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.zoek-heeft-resultaat .zoek-kop,
.zoek-heeft-resultaat .zoek-ondertitel {
  display: none;
}

/* ── ZOEKBALK ── */
.zoekbalk-wrap {
  width: 100%;
  max-width: 620px;
  position: relative;
}

.zoekbalk {
  display: flex;
  align-items: center;
  background: var(--wit);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius);
  padding: 6px 6px 6px 22px;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.zoekbalk:focus-within {
  border-color: var(--groen);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}

.zoekbalk input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: transparent;
  color: var(--tekst);
  padding: 8px 0;
}

.zoekbalk input::placeholder { color: #b0b8c1; }

.zoekbalk-btn {
  background: var(--groen);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.zoekbalk-btn:hover { background: var(--groen-donker); }
.zoekbalk-btn:active { transform: scale(0.97); }
.zoekbalk-btn.laden { opacity: 0.7; pointer-events: none; }

/* ── TAG CHIPS ── */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 1.5rem;
  max-width: 620px;
}

.tag-chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--rand);
  background: var(--wit);
  color: var(--tekst-zacht);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.tag-chip:hover { border-color: var(--groen); color: var(--groen); background: var(--groen-licht); }

/* ── RESULTAAT ── */
.resultaat-wrap {
  width: 100%;
  max-width: 680px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem 3rem;
  display: none;
}
.resultaat-wrap.zichtbaar { display: block; }

.ai-antwoord {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  line-height: 1.75;
  font-size: 0.975rem;
  color: var(--tekst);
  position: relative;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.ai-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--groen);
  margin-bottom: 0.75rem;
}

.ai-label svg {
  width: 14px;
  height: 14px;
}

.ai-tekst-inhoud { color: var(--tekst); }
.ai-tekst-inhoud p { margin-bottom: 0.75rem; }
.ai-tekst-inhoud p:last-child { margin-bottom: 0; }
.ai-tekst-inhoud ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.ai-tekst-inhoud li { margin-bottom: 0.3rem; }

/* Laad-animatie */
.laden-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px 0;
}
.laden-dots span {
  width: 7px; height: 7px;
  background: var(--groen);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
  opacity: 0.6;
}
.laden-dots span:nth-child(2) { animation-delay: 0.2s; }
.laden-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.7); }
  40% { transform: scale(1); opacity: 1; }
}

/* Gerelateerde artikelen */
.gerelateerd-titel {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--tekst-zacht);
  margin: 1.5rem 0 0.75rem;
}

.artikel-kaarten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.artikel-kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  text-align: left;
}
.artikel-kaart:hover { border-color: var(--groen); transform: translateY(-1px); }

.artikel-kaart-tag {
  font-size: 11px;
  color: var(--groen);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.artikel-kaart-titel {
  font-size: 14px;
  font-weight: 500;
  color: var(--tekst);
  line-height: 1.3;
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 12px;
  color: var(--tekst-zacht);
  border-top: 1px solid var(--rand);
  background: var(--wit);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .zoek-kop { font-size: 1.8rem; }
  .zoekbalk-btn span { display: none; }
  .site-header { padding: 1rem 1.25rem; }
}
