/* Body & basisreset */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Zoekformulier compact & mobielvriendelijk */
.zoekformulier {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border: 1px solid #ccc;
}

.zoekformulier .form-group {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.zoekformulier input,
.zoekformulier select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    margin-bottom: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.zoekformulier .zoekenBtn {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 15px;
}

.zoekformulier .zoekenBtn:hover {
    background: #0056b3;
}

/* Boeken container: 1 kolom layout */
.boeken-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 140px 10px 20px 10px; /* ruimte voor zoekformulier */
    gap: 16px;
}

/* Boekkaarten smaller & compacter */
.boek {
    width: 95%;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.boek:hover {
    transform: scale(1.01);
}

.boek img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
}

/* Horizontale kaart: cover links, tekst rechts */
.boeken-container .boek {
    display: flex;
    flex-direction: row;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
}

.boeken-container .boek img {
    width: 90px;
    height: auto;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
    border-radius: 0;
    background-color: #e9ecef;
}

.boek-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    min-width: 0;
    flex: 1;
}

.boek-titel {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.boek-auteur {
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boek-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 12px;
}

.boek-genre {
    background-color: #e7f1ff;
    color: #0b5ed7;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.boek-pg {
    color: #868e96;
}

.boek h3 {
    font-size: 16px;
    margin: 8px 0;
}

.boek p {
    font-size: 13px;
    color: #444;
    margin: 4px 0;
}

.beschrijving {
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Paginering */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
}

.pagination a {
    padding: 8px 12px;
    font-size: 13px;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 5px;
    background: white;
    text-decoration: none;
}

.pagination a:hover {
    background: #007bff;
    color: white;
}

.pagination a.active {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

.home-button {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    background: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s;
    font-size: 0; /* extra zekerheid, kan ook weggelaten worden nu */
}

.home-button::before {
    content: "🏠";
    font-size: 24px;
    color: white;
}


.home-button:hover {
    background: #357abd;
    transform: scale(1.1);
}
/* Toggle knop styling */
.toggle-btn {
  background: #007bff;
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Pijltje draaien bij toggle */
.toggle-btn::after {
  content: "▼";
  transition: transform 0.3s ease;
}

.zoekformulier.ingekapt .toggle-btn::after {
  transform: rotate(-90deg);
}

/* Zoekcontent uitklappen en inklappen */
#zoekcontent {
  margin-top: 10px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  max-height: 1000px; /* groot genoeg om alles te tonen */
  opacity: 1;
}

.zoekformulier.ingekapt #zoekcontent {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  margin-top: 0;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-right: 10px;
}

.form-control {
  padding: 8px;
  font-size: 16px;
}

.zoekenBtn {
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
}

/* 📱 Formulier responsive voor mobiel */
@media (max-width: 600px) {
  .form-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .form-group {
    margin-right: 0;
    margin-bottom: 10px;
    width: 100%;
  }

  .form-control {
    width: 100%;
  }

  .zoekenBtn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
  }
}

