* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #8ec5fc 0%, #c9e7fb 50%, #e0f2fe 100%);
  min-height: 100vh;
  min-height: 100svh; /* houdt rekening met de adresbalk op mobiel */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.35) 2px, transparent 2px);
  background-size: 60px 60px;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(50, 100, 150, 0.25);
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  margin: 0 0 8px;
  color: #1565c0;
  font-size: 1.8rem;
}

h2 {
  color: #1c3a52;
  font-size: 1.3rem;
  margin: 0 0 24px;
}

.subtitle {
  color: #5a7d94;
  margin: 0 0 24px;
}

form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

label {
  font-size: 0.85rem;
  color: #5a7d94;
  margin: 12px 0 4px;
  font-weight: 600;
}

input[type="text"],
input[type="password"] {
  padding: 12px 14px;
  border: 2px solid #c3e0f7;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #2196f3;
}

button {
  margin-top: 24px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2196f3, #64b5f6);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.35);
}

button:active {
  transform: translateY(0);
}

.error {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
}

.hints-overview {
  background: #eaf6fd;
  border: 2px solid #c3e0f7;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  text-align: left;
}

.hints-overview-title {
  font-weight: 700;
  color: #1565c0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.hints-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hints-list li {
  font-size: 0.88rem;
  color: #1c3a52;
  line-height: 1.4;
}

.hints-list li.locked {
  color: #7b9aab;
  font-style: italic;
}

.hints-list .hint-number {
  font-weight: 700;
  margin-right: 4px;
}

.progress-wrap {
  margin-bottom: 20px;
}

.progress-label {
  font-size: 0.85rem;
  color: #5a7d94;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #c3e0f7;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #2196f3, #64b5f6);
  width: 20%;
  transition: width 0.35s ease;
  border-radius: 999px;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-btn {
  margin-top: 0;
  background: white;
  color: #1c3a52;
  border: 2px solid #c3e0f7;
  text-align: left;
  padding: 14px 16px;
  font-weight: 500;
}

.answer-btn:hover {
  border-color: #2196f3;
  transform: none;
  box-shadow: none;
  background: #eaf6fd;
}

.answer-btn.correct {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #2e7d32;
}

.answer-btn.wrong {
  background: #ffebee;
  border-color: #e57373;
  color: #c62828;
}

.hint {
  margin-top: 20px;
  padding: 14px;
  background: #fff3e0;
  border: 2px dashed #ffb74d;
  border-radius: 10px;
  color: #8a5a00;
  font-size: 0.95rem;
}

.locked-box {
  padding: 20px 8px 4px;
  text-align: center;
}

.locked-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.locked-text {
  color: #1c3a52;
  font-size: 1rem;
  margin: 0 0 6px;
}

.locked-sub {
  color: #5a7d94;
  font-size: 0.9rem;
  margin: 0;
}

.reveal-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  animation: wiggle 1.8s ease-in-out infinite;
}

.cta-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2196f3, #64b5f6);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.35);
}

.info-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.info-list li {
  background: #eaf6fd;
  border: 2px solid #c3e0f7;
  border-radius: 10px;
  padding: 14px 16px;
  color: #1c3a52;
  font-size: 0.95rem;
}

.hint-btn {
  margin-top: 24px;
  transition: transform 0.25s ease;
}

.hint-image {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #c3e0f7;
  margin-top: 12px;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: #1565c0;
  font-weight: 600;
  text-decoration: none;
}

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

.home-fab {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid #c3e0f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(50, 100, 150, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.home-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

/* ============================== */
/* OVERZICHT / TEGELS             */
/* ============================== */

.home-card {
  max-width: 480px;
}

.tiles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 2px solid #c3e0f7;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: #1c3a52;
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.2);
  border-color: #2196f3;
}

.tile-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.tile-desc {
  font-size: 0.85rem;
  color: #5a7d94;
}

.badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: linear-gradient(135deg, #ffb74d, #ff9800);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(255, 152, 0, 0.4);
}

.badge-red {
  background: linear-gradient(135deg, #ef5350, #e53935);
  box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
}

/* ============================== */
/* UNDER CONSTRUCTION              */
/* ============================== */

.construction-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  animation: wiggle 1.8s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

/* ============================== */
/* TIJDLIJN                        */
/* ============================== */

.timeline-card {
  max-width: 560px;
}

.timeline {
  position: relative;
  margin: 28px 0 8px;
  padding-left: 28px;
  text-align: left;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: linear-gradient(#2196f3, #64b5f6);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 4px solid #2196f3;
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.timeline-photo {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 2px solid #c3e0f7;
  margin-bottom: 10px;
}

.timeline-title {
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 4px;
}

.timeline-text {
  color: #1c3a52;
  font-size: 0.9rem;
}

.timeline-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 160px;
  background: #eaf6fd;
  border: 2px dashed #c3e0f7;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}

.timeline-locked .locked-icon {
  font-size: 2rem;
  margin-bottom: 0;
}

.timeline-locked .locked-text {
  color: #5a7d94;
  font-size: 0.9rem;
  margin: 0;
}

/* ============================== */
/* MOBIEL                          */
/* ============================== */

button,
.tile,
.answer-btn,
.back-link,
.hint-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

input[type="text"],
input[type="password"] {
  font-size: 16px; /* voorkomt automatisch inzoomen op iOS bij focus */
}

@media (max-width: 480px) {
  .app {
    padding: 16px 12px;
  }

  .card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .subtitle {
    margin-bottom: 20px;
  }

  .tile {
    padding: 14px;
    gap: 12px;
  }

  .tile-icon {
    font-size: 1.6rem;
  }

  .tile-title {
    font-size: 0.95rem;
  }

  .tile-desc {
    font-size: 0.8rem;
  }

  .badge {
    top: -8px;
    right: 8px;
    font-size: 0.62rem;
    padding: 3px 8px;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-dot {
    left: -22px;
    width: 18px;
    height: 18px;
    border-width: 3px;
  }

  .info-list li {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 340px) {
  .tile-desc {
    display: none;
  }
}
