/* Bestand: scan.css */
/* Specifieke styling voor de Inner MANA Scan applicatie */

:root {
  --bg: #050608;
  --card-bg: #111319;
  --accent: #c89a5b; /* donkerbrons */
  --accent-soft: rgba(200, 154, 91, 0.16);
  --accent-hover: rgba(200, 154, 91, 0.25);
  --text-main: #f5f5f5;
  --text-muted: #9ca3af;
  --border-soft: #1f2933;
  --error: #f97373;
  --success: #4ade80;
  --chart-glow: #00eaff;
}

* { box-sizing: border-box; }

body.scan-page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Achtergrond met overlay */
  background: linear-gradient(rgba(5, 6, 8, 0.75), rgba(5, 6, 8, 0.75)), url('images/sequoia-sunrise.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 12px;
}

.app {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), transparent);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 24px 18px 32px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  transition: height 0.3s ease;
  position: relative;
}

@media (min-width: 768px) {
  .app { padding: 28px 32px 32px; }
}

/* Header & Typography */
h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

h1 span.badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  text-transform: none;
  white-space: nowrap;
}

.subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 36rem;
}

.divider {
  height: 1px;
  width: 100%;
  margin: 16px 0 18px;
  background: linear-gradient(to right, transparent, var(--accent-soft), transparent);
}

/* Quiz Components */
.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.chip {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
}

.question-card {
  margin-top: 12px;
  background: rgba(7, 9, 15, 0.8);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 24px 16px;
  animation: fadeIn 0.4s ease-out;
  text-align: center;
}

.question-icon svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 10px var(--accent-soft));
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-text {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 500;
  text-align: center;
  color: var(--text-main);
  display: block;
}

/* Options (Buttons) */
.options {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.option-btn {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  font-size: 0.95rem;
  background: rgba(15,23,42,0.85);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.option-btn:hover {
  border-color: var(--accent-soft);
  background: rgba(15,23,42,1);
  transform: translateY(-1px);
}

.option-btn.selected {
  border-color: var(--accent);
  background: rgba(200,154,91,0.1);
  box-shadow: 0 0 0 1px rgba(200,154,91,0.3);
}

.option-btn span.label-main { flex: 1; }
.option-btn span.label-tag {
  font-size: 0.75rem; color: var(--text-muted); margin-left: 8px; white-space: nowrap;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: #111319;
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 30px 24px;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 0 40px rgba(200,154,91,0.2);
}

.modal-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-text {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

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

/* Sliders */
.slider-wrapper { padding: 0 10px; margin-bottom: 10px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }

input[type="range"] { width: 100%; -webkit-appearance: none; background: transparent; cursor: pointer; height: 30px; }
input[type="range"]::-webkit-slider-runnable-track { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; border: 1px solid var(--border-soft); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; height: 28px; width: 28px; border-radius: 50%; background: var(--accent); margin-top: -11px; box-shadow: 0 0 15px rgba(200,154,91,0.6); border: 3px solid #050608; transition: transform 0.1s; }

.slider-value-display { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-top: 8px; text-align: right; }
.slider-value-display span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }

.mana-sliders { margin-top: 12px; animation: fadeIn 0.6s ease-out; }
.mana-sliders h2 { margin-bottom: 6px; font-size: 1.3rem; }
.mana-sliders p.intro-text { margin-top: 0; margin-bottom: 20px; font-size: 0.95rem; color: var(--text-muted); }
.checkin-block { margin-bottom: 24px; padding: 20px; border-radius: 14px; background: rgba(7, 9, 15, 0.6); border: 1px solid var(--border-soft); }
.checkin-block label { display: block; font-size: 1rem; margin-bottom: 16px; color: var(--text-main); font-weight: 500; }

/* Navigation Buttons */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 8px; }
.btn { border-radius: 999px; border: 1px solid var(--border-soft); padding: 10px 24px; background: rgba(15,23,42,0.9); color: var(--text-main); font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s ease; font-weight: 500; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #050608; font-weight: 600; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary:hover:not(:disabled) { background: #d4aa70; box-shadow: 0 4px 12px rgba(200,154,91,0.3); }
.btn-ghost { background: transparent; border-color: transparent; padding: 10px 12px; }
.btn-ghost:hover { color: var(--accent); }

.hidden { display: none !important; }

/* Results */
#results { margin-top: 12px; animation: fadeIn 0.6s ease-out; }
.chart-container { position: relative; width: 100%; max-width: 500px; margin: 24px auto; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); aspect-ratio: 4 / 3; background: #000; }
.chart-background { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1.0; }
#results-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { font-size: 0.75rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-soft); color: var(--text-muted); background: rgba(15,23,42,0.6); }
.pill strong { color: var(--accent); }

.result-style { margin-top: 20px; padding: 20px; border-radius: 16px; border: 1px solid var(--border-soft); background: linear-gradient(145deg, rgba(7, 9, 15, 0.9), rgba(15, 20, 28, 0.8)); }
.result-style h3 { font-size: 1.1rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.result-style h3 span.tag { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent-soft); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.result-style p { font-size: 0.95rem; color: #d1d5db; margin: 8px 0 12px; line-height: 1.6; }
.result-bullets { font-size: 0.9rem; color: var(--text-muted); margin: 8px 0; padding-left: 20px; line-height: 1.5; }
.result-bullets li { margin-bottom: 6px; }

.persona-box { border-color: var(--accent); background: rgba(200, 154, 91, 0.05); }
.persona-highlight { color: var(--accent); font-weight: 500; }

.cta-box { margin-top: 24px; padding: 20px; border-radius: 16px; border: 1px dashed var(--accent-soft); background: rgba(200,154,91,0.05); font-size: 0.95rem; color: var(--text-muted); }
.cta-box strong.cta-title { display: block; color: var(--accent); font-size: 1.05rem; margin-bottom: 8px; }
.email-capture-form { margin: 16px 0; padding: 16px; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid var(--border-soft); }
.input-row { display: flex; gap: 8px; }
.input-field { flex: 1; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-soft); background: rgba(15,23,42,0.8); color: var(--text-main); font-family: inherit; font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.input-field:focus { border-color: var(--accent); }
.form-success-msg { color: var(--success); font-size: 0.85rem; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.cta-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }