@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Inter:wght@400;600&display=swap');

/* ============================================================
   Kleurvariabelen
   ============================================================ */
:root {
  --geel:       #FFD700;
  --zwart:      #1a1a1a;
  --wit:        #ffffff;
  --lichtgrijs: #f8f8f8;
}

/* ============================================================
   Reset en basis
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--wit);
  color: var(--zwart);
  min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--wit);
  border-bottom: 3px solid var(--geel);
  padding: 16px 24px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-logo {
  width: 72px;
  height: auto;
  margin-bottom: 8px;
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--zwart);
  letter-spacing: 3px;
}

header h1 span {
  color: var(--geel);
}

.ondertitel {
  color: #666;
  margin-top: 4px;
  font-size: 0.9rem;
}

/* ============================================================
   MAIN
   ============================================================ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 64px;
}

section h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--geel);
  display: inline-block;
}

/* ============================================================
   SPEELTJES RASTER
   ============================================================ */
.speeltjes-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.speeltje-kaart {
  border: 2px solid var(--geel);
  background: var(--wit);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.speeltje-kaart:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(255, 215, 0, 0.28);
}

.speeltje-kaart img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #eee;
}

.kaart-info {
  padding: 16px;
}

.kaart-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.kaart-prijs {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.kaart-voorraad {
  font-size: 0.85rem;
  color: #555;
}

.kaart-voorraad.uitverkocht {
  color: #cc2200;
  font-weight: 600;
}

.badge-uitverkocht {
  display: inline-block;
  background: #cc2200;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 4px;
}

.geen-speeltjes {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 1.05rem;
  grid-column: 1 / -1;
}

/* ============================================================
   BESTELFORMULIER (donkere sectie)
   ============================================================ */
.bestel-sectie {
  background: var(--zwart);
  color: var(--wit);
  border-radius: 14px;
  padding: 40px;
}

.bestel-sectie h2 {
  color: var(--wit);
  border-bottom-color: var(--geel);
}

.bestel-intro {
  color: #bbb;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.formulier-groep {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #444;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #2a2a2a;
  color: var(--wit);
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--geel);
}

select option {
  background: #2a2a2a;
}

textarea {
  height: 110px;
  resize: vertical;
}

/* ============================================================
   KNOPPEN
   ============================================================ */
.knop-geel {
  background: var(--geel);
  color: var(--zwart);
  border: none;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.1s;
}

.knop-geel:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.knop-geel:active {
  transform: translateY(0);
}

.knop-zwart {
  background: var(--zwart);
  color: var(--wit);
  border: 2px solid var(--geel);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.knop-zwart:hover {
  background: #333;
}

.knop-gevaar {
  background: transparent;
  color: #cc2200;
  border: 2px solid #cc2200;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.knop-gevaar:hover {
  background: #cc2200;
  color: #fff;
}

/* ============================================================
   FORMULIER SUCCES BERICHT
   ============================================================ */
.form-succes {
  background: #0d2e0d;
  border: 2px solid #44aa44;
  color: #88ee88;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  display: none;
  font-weight: 600;
}

/* Formspree foutmeldingen */
.veld-fout {
  display: block;
  color: #ff8888;
  font-size: 0.82rem;
  margin-top: 4px;
}

.form-fout {
  background: #3a0d0d;
  border: 2px solid #cc2200;
  color: #ff8888;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 600;
  display: none;
}

.form-fout:not(:empty) {
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: 24px;
  border-top: 2px solid var(--geel);
  font-size: 0.85rem;
  color: #777;
}

footer a {
  color: var(--zwart);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--geel);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s;
}

footer a:hover {
  background: var(--geel);
  color: var(--zwart);
}

/* ============================================================
   INLOGSCHERM
   ============================================================ */
.login-scherm {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
  padding: 24px;
  background: var(--lichtgrijs);
}

.login-kaart {
  background: var(--wit);
  border: 2px solid var(--geel);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* ============================================================
   ADMIN - HEADER
   ============================================================ */
.admin-header {
  background: var(--zwart);
  color: var(--wit);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--geel);
}

.admin-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--geel);
  letter-spacing: 2px;
}

/* ============================================================
   ADMIN - MAIN
   ============================================================ */
.admin-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px;
}

.admin-sectie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-sectie-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
}

/* ============================================================
   ADMIN - SPEELTJESLIJST
   ============================================================ */
.admin-speeltje-lijst {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-speeltje-rij {
  border: 2px solid var(--geel);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--wit);
}

.admin-speeltje-rij img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #eee;
}

.admin-speeltje-info {
  flex: 1;
}

.admin-speeltje-info h3 {
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-speeltje-info p {
  font-size: 0.85rem;
  color: #555;
}

.admin-knoppen {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   ADMIN - FORMULIER (toevoegen/bewerken)
   ============================================================ */
.admin-formulier-container {
  border: 2px solid var(--geel);
  border-radius: 12px;
  padding: 28px;
  margin-top: 28px;
  background: var(--lichtgrijs);
}

.admin-formulier-container h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin-bottom: 22px;
}

.admin-formulier label {
  color: var(--zwart);
}

.admin-formulier input,
.admin-formulier select,
.admin-formulier textarea {
  background: var(--wit);
  color: var(--zwart);
  border: 2px solid #ccc;
}

.admin-formulier input:focus,
.admin-formulier select:focus,
.admin-formulier textarea:focus {
  border-color: var(--geel);
}

.foto-preview {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border: 2px solid var(--geel);
  border-radius: 6px;
  margin-top: 10px;
  display: none;
}

.formulier-knoppen {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.formulier-knoppen .knop-geel {
  flex: 1;
}

.knop-annuleer {
  background: #e8e8e8;
  color: var(--zwart);
  border: 2px solid #ccc;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.knop-annuleer:hover {
  background: #ddd;
}

/* ============================================================
   POP-UP MELDING
   ============================================================ */
.melding {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--zwart);
  color: var(--wit);
  border: 2px solid var(--geel);
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 1000;
  transform: translateX(200%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.melding.zichtbaar {
  transform: translateX(0);
}

/* ============================================================
   RESPONSIVE (mobiel)
   ============================================================ */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.4rem;
  }

  .header-logo {
    width: 52px;
  }

  .bestel-sectie {
    padding: 24px 16px;
    border-radius: 0;
  }

  .admin-speeltje-rij {
    flex-wrap: wrap;
  }

  .admin-knoppen {
    width: 100%;
  }

  .admin-knoppen button {
    flex: 1;
  }

  .formulier-knoppen {
    flex-direction: column;
  }
}
