/* --------------------------------------------------
   AEZEL Tijdmachine – gedeeld stijldocument voor login en overzicht
   -------------------------------------------------- */
:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #05060f;
  --bg-alt: #0f1425;
  --fg: #f6f8ff;
  --muted: rgba(246, 248, 255, 0.7);
  --card: #121932;
  --card-soft: #192344;
  --accent: #64f4ac;
  --accent-strong: #32c1ff;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

/* Light theme previously supported — removed to keep dark-only UI */

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* -------------------------------------------------- */
/* Layout shells                                       */
/* -------------------------------------------------- */
.app-shell {
  min-height: 100vh;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-card {
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: 28px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 5% 10%, rgba(100, 244, 172, 0.25), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(50, 193, 255, 0.25), transparent 50%),
    linear-gradient(135deg, #1a1f33, #131a2d 55%, #0d1223);
  box-shadow: var(--shadow);
  text-align: left;
}

.hero-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(130deg, var(--accent), var(--accent-strong));
  color: #041018;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 20px 28px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------- */
/* Login grid                                          */
/* -------------------------------------------------- */
.login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.login-card,
.login-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card h2,
.login-form h2 {
  margin: 0;
}

.status-pill {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.login-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.login-steps strong {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, var(--accent), var(--accent-strong));
  color: #041018;
}

.auth-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem;
  border-radius: 999px;
}

.auth-tab {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.25);
  color: #1e1a2c;
}

.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.auth-form input {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 1rem;
  background: rgba(15, 15, 26, 0.7);
  color: #fff;
}

.auth-message {
  min-height: 1.2em;
  font-weight: 600;
}

.auth-message.success {
  color: #8de86f;
}

.auth-message.error {
  color: #ff9ea6;
}

/* -------------------------------------------------- */
/* Summary page layout                                 */
/* -------------------------------------------------- */
.summary-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1rem, 3vw, 2rem);
}

.summary-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
}

.summary-card {
  background: var(--card);
  border-radius: 26px;
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-card--flex {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location-list button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  cursor: pointer;
  font-weight: 600;
  transition: border 150ms ease, background 150ms ease;
}

.location-list button.is-active {
  border-color: var(--accent);
  background: rgba(100, 244, 172, 0.15);
}

.photo-stage {
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-photo img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.summary-empty {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.notice {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 99, 132, 0.1);
  border: 1px solid rgba(255, 99, 132, 0.4);
}



@media (max-width: 640px) {
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .login-steps strong {
    flex-shrink: 0;
  }
}

/* -------------------------------------------------- */
/* Quiz tabs                                          */
/* -------------------------------------------------- */
.tabs-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tab-button {
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.tab-button:hover {
  color: var(--fg);
}

.tab-button.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* -------------------------------------------------- */
/* Quiz cards                                         */
/* -------------------------------------------------- */
.quiz-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.quiz-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.quiz-progress {
  margin-bottom: 32px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--card-soft);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  width: 0%;
  transition: width 0.3s ease;
}

#question-counter {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.quiz-question {
  margin-bottom: 32px;
}

#question-text {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--fg);
}

.answer-options {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-option {
  display: flex;
  align-items: center;
}

.answer-option input[type="radio"] {
  margin-right: 12px;
  cursor: pointer;
  accent-color: var(--accent);
}

.answer-option label {
  flex: 1;
  padding: 16px;
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.answer-option label:hover {
  border-color: var(--accent);
  background: rgba(100, 244, 172, 0.1);
}

.answer-option input[type="radio"]:checked + label {
  background: rgba(100, 244, 172, 0.15);
  border-color: var(--accent);
}

.quiz-actions {
  display: flex;
  gap: 12px;
}

#quiz-results {
  text-align: center;
}

.quiz-score {
  font-size: 3rem;
  color: var(--accent);
  margin: 24px 0;
  font-weight: bold;
}

.notice {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 16px;
  color: #ff9090;
  margin-top: 16px;
}

/* -------------------------------------------------- */
/* Location Lock                                      */
/* -------------------------------------------------- */
.location-lock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 6, 15, 0.95);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.location-lock .lock-icon {
  font-size: 4rem;
  margin: 0;
}

.location-lock h3 {
  margin: 0;
  font-size: 1.3rem;
}

.location-lock p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  max-width: 250px;
}

.summary-card--flex {
  position: relative;
}

.summary-card--flex.is-locked {
  filter: blur(2px);
  pointer-events: none;
}

/* -------------------------------------------------- */
/* Learn Section                                      */
/* -------------------------------------------------- */
.learn-section {
  background: rgba(100, 244, 172, 0.05);
  border: 1px solid rgba(100, 244, 172, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.learn-section h3 {
  margin: 0 0 12px 0;
  color: var(--accent);
}

.learn-facts {
  background: rgba(100, 244, 172, 0.1);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.learn-facts p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.learn-tips {
  font-size: 0.9rem;
}

.learn-tips strong {
  color: var(--accent);
}

.learn-tips ul {
  margin: 8px 0;
  padding-left: 20px;
}

.learn-tips li {
  margin: 6px 0;
  color: var(--muted);
}

/* -------------------------------------------------- */
/* Responsive                                         */
/* -------------------------------------------------- */
@media (max-width: 1200px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-content {
    grid-template-columns: 1fr;
  }

  .tabs-container {
    margin-bottom: 16px;
  }

  #map {
    min-height: 300px !important;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .login-steps strong {
    flex-shrink: 0;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-content {
    grid-template-columns: 1fr;
  }

  #quiz-results {
    padding: 24px;
  }

  .quiz-score {
    font-size: 2rem;
  }
}

/* -------------------------------------------------- */
/* Map Markers                                        */
/* -------------------------------------------------- */
.summary-marker {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 3px solid #05060f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(100, 244, 172, 0.4);
  font-weight: bold;
  font-size: 16px;
  color: #000;
}

.summary-marker:hover {
  width: 40px;
  height: 40px;
  box-shadow: 0 6px 20px rgba(100, 244, 172, 0.6);
}

.summary-marker.is-active {
  width: 44px;
  height: 44px;
  box-shadow: 0 8px 24px rgba(100, 244, 172, 0.8);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

