/* ====== BASIS ====== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fcfbfa;
  color: #111;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, .book-card h3 {
  font-family: 'Georgia', serif;
  color: #000;
  font-weight: 700;
}

/* ====== HEADER ====== */
.site-header {
  position: relative;
  min-height: 350px;
  padding: 20px 40px 40px;
  /* We gebruiken rgba voor transparantie: 0.7 betekent 70% zichtbaar */
  background: linear-gradient(120deg, rgba(255, 226, 122, 0.7) 0%, rgba(255, 209, 161, 0.7) 40%, rgba(249, 240, 255, 0.7) 100%),
  url("https://i.guim.co.uk/img/media/6bc25cd06762b8a59161d2b7af6248b0ccefb646/356_554_3235_1941/master/3235.jpg?width=1200&height=900&quality=85&auto=format&fit=crop&s=ca7149a39ab799daf9376004da8e4cb6");
  background-size: cover; 
  background-position: center 45%; 
  background-repeat: no-repeat;
  overflow: hidden;
}



.top-nav {
  position: absolute;
  top: 16px;
  right: 24px;
  display: flex;
  gap: 20px;
}

.nav-link {
  color: #004a9f;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link:hover {
  text-decoration: underline;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
}

.header-text h1 {
  font-size: 42px;
  margin: 0 0 10px;
}

.header-text p {
  margin: 0;
  max-width: 460px;
  line-height: 1.4;
  color: #333;
}

.header-image {
  flex: 0 0 260px;
  height: 180px;
  border-radius: 18px;
  background-image: url("");
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* ====== FILTERBALK ====== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  padding: 16px 40px;
  background: #f58e11;
  color: #fff;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: bold;
}

.filter-group select,
.filter-group input {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  outline: none;
  height: 38px;
}

#shuffleBtn {
  margin-left: 0;
  padding: 0 22px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #f58e11;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

#shuffleBtn:hover { transform: translateY(-1px); }
#shuffleBtn:active { transform: translateY(1px) scale(0.98); }

#shuffleBtn.spin { animation: spin 0.6s linear; }
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ====== ADVERTENTIE BANNER ====== */
.ad-banner-horizontal {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-wrapper {
  width: 100%;
  max-width: 970px;
  height: 90px;
  background-color: #fcfaf7;
  border: 1px solid #e8e4e0;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ad-wrapper:hover {
  border-color: #f58e11;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ad-img {
  width: 160px;
  height: 90px;
  background-color: #eee;
  background-image: url("https://images.unsplash.com/photo-1544947950-fa07a98d237f?auto=format&fit=crop&q=80&w=160&h=90");
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.ad-text {
  padding: 0 25px;
  flex: 1;
}

.ad-text p {
  margin: 0;
  font-size: 1.15rem;
  color: #222;
  font-family: 'Georgia', serif;
  font-weight: bold;
}

.ad-text span {
  font-size: 0.85rem;
  color: #f58e11;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-badge {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 9px;
  color: #999;
  background: rgba(255,255,255,0.8);
  border: 1px solid #eee;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
  pointer-events: none;
}

/* ====== KAARTJES GRID ====== */
main {
  padding: 24px 40px 40px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.book-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  height: fit-content;
  min-height: 380px; /* Basishoogte voor ruststand */
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.book-card.ad { border: 2px solid #f58e11; }

.book-card h3 {
  margin: 0;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card p { margin: 0; font-size: 0.85rem; color: #555; }
.book-meta { font-size: 0.8rem; color: #777; }

.book-cover {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin: 5px 0;
  background-color: #f9f9f9;
  border-radius: 4px;
}

/* OMSCHRIJVING STYLING */
.book-description {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.4;
  margin: 5px 0;
  /* Standaard ingeklapt op 2 regels */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* OPENGEVOUWEN STATUS */
.book-card.expanded {
  border: 1.5px solid #004a9f;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.book-card.expanded .book-description {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.book-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe27a;
  font-size: 0.75rem;
}

/* ====== BOL.COM KOOPKNOP ====== */
.buy-button {
  display: inline-block;
  align-self: center;
  margin-top: auto;
  padding: 8px 16px;
  background: #004a9f;
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.buy-button:hover { background: #003366; }

/* ====== RESPONSIVE ====== */
@media (max-width: 800px) {
  .header-content { flex-direction: column; align-items: flex-start; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .ad-wrapper { height: auto; flex-direction: column; padding: 10px; text-align: center; }
  .ad-img { width: 100%; height: 120px; }
  .ad-text { padding: 10px 0; }
  main { padding: 20px; }
}

/* ====== CONTACT & FORM (Blijft gelijk) ====== */
.contact-container {
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.price-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.price-table td:last-child {
  font-weight: bold;
  color: #f58e11;
  text-align: right;
}

.ad-form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label { font-size: 0.9rem; font-weight: bold; }

.form-group input, 
.form-group textarea, 
.form-group select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

.payment-notice {
  background: #fdfaf5;
  border-left: 4px solid #f58e11;
  padding: 15px;
  margin: 20px 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #f58e11;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover { background: #e07d0d; }

@media (max-width: 800px) {
  .contact-container { grid-template-columns: 1fr; padding: 20px; }
}