/* ══════════════════════════════════════════════════════════════
   Lumea Living – AI Vloer Visualizer CSS
   ══════════════════════════════════════════════════════════════ */

.lv-wrap {
  --lv-brown:  #4A4039;
  --lv-gold:   #C9BBA4;
  --lv-gold-d: #A8967E;
  --lv-cream:  #F8F7F5;
  --lv-beige:  #EAE7E2;
  --lv-muted:  #9E9189;
  --lv-green:  #2D7A4F;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--lv-cream);
  padding: 80px 24px;
  color: var(--lv-brown);
  position: relative;
  overflow: hidden;
}

/* Decoratief stippenpatroon */
.lv-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #EAE7E2 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
  pointer-events: none;
}

.lv-stap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.lv-header { text-align: center; margin-bottom: 36px; }

.lv-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--lv-gold);
}

.lv-titel {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--lv-brown);
}

.lv-titel em { font-style: normal; color: var(--lv-gold-d); }

.lv-sub {
  font-size: 15px;
  color: var(--lv-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Upload zone ─────────────────────────────────────────────────────────────── */
.lv-upload-zone {
  border: 2px dashed var(--lv-beige);
  border-radius: 20px;
  background: #fff;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.lv-upload-zone:hover,
.lv-upload-zone.drag-over {
  border-color: var(--lv-gold);
  background: var(--lv-cream);
}

.lv-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}

.lv-upload-icon {
  width: 48px;
  height: 48px;
  color: var(--lv-beige);
  stroke: var(--lv-muted);
}

.lv-upload-tekst {
  font-size: 15px;
  color: var(--lv-brown);
  margin: 0;
  line-height: 1.5;
}

.lv-upload-tekst span {
  color: var(--lv-gold-d);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lv-upload-hint {
  font-size: 13px;
  color: var(--lv-muted);
  margin: 0;
}

/* Preview */
.lv-preview {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.lv-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lv-preview-verwijder {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(74,64,57,.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.lv-preview-verwijder:hover { background: var(--lv-brown); }

/* ── Knoppen ─────────────────────────────────────────────────────────────────── */
.lv-acties {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.lv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  border: none;
}

.lv-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.lv-btn-camera {
  background: var(--lv-beige);
  color: var(--lv-brown);
  cursor: pointer;
}
.lv-btn-camera:hover { background: #d5cfc8; }

.lv-btn-genereer {
  background: var(--lv-brown);
  color: #F8F7F5;
  min-width: 220px;
  justify-content: center;
}
.lv-btn-genereer:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.lv-btn-genereer:disabled { opacity: .4; cursor: not-allowed; }

.lv-btn-download {
  background: var(--lv-beige);
  color: var(--lv-brown);
}
.lv-btn-download:hover { background: #d5cfc8; }

.lv-btn-calc {
  background: var(--lv-brown);
  color: #F8F7F5;
}
.lv-btn-calc:hover { opacity: .88; }

.lv-btn-opnieuw {
  background: transparent;
  color: var(--lv-muted);
  border: 1px solid var(--lv-beige);
  font-size: 13px;
  padding: 10px 20px;
}
.lv-btn-opnieuw:hover { border-color: var(--lv-brown); color: var(--lv-brown); }

/* ── Error ──────────────────────────────────────────────────────────────────── */
.lv-error {
  background: #fdf2f2;
  border: 1px solid #f5c6c6;
  color: #c0392b;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
}

/* ── Laden stap ─────────────────────────────────────────────────────────────── */
.lv-laden-wrap {
  text-align: center;
  padding: 48px 0;
}

.lv-laden-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 32px;
}

.lv-laden-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lv-brown);
  opacity: .2;
  animation: lv-dot-pulse 1.5s ease-in-out infinite;
}

.lv-laden-dot:nth-child(1) { animation-delay: 0s; }
.lv-laden-dot:nth-child(2) { animation-delay: .2s; }
.lv-laden-dot:nth-child(3) { animation-delay: .4s; }

@keyframes lv-dot-pulse {
  0%, 80%, 100% { opacity: .2; transform: scale(.85); }
  40%           { opacity: 1;  transform: scale(1.25); }
}

.lv-laden-titel {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--lv-brown);
}

.lv-laden-sub {
  font-size: 14px;
  color: var(--lv-muted);
  margin: 0 0 28px;
}

.lv-progressbar {
  width: 100%;
  max-width: 320px;
  height: 4px;
  background: var(--lv-beige);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}

.lv-progressbar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--lv-gold) 0%, var(--lv-brown) 100%);
  border-radius: 99px;
  width: 0%;
  transition: width .6s ease;
}

/* ── Before/After slider ────────────────────────────────────────────────────── */
.lv-resultaat-header {
  text-align: center;
  margin-bottom: 20px;
}

.lv-resultaat-titel {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--lv-brown);
}

.lv-resultaat-sub {
  font-size: 14px;
  color: var(--lv-muted);
  margin: 0;
}

.lv-slider-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--lv-beige);
  margin-bottom: 24px;
  cursor: ew-resize;
  box-shadow: 0 12px 40px rgba(74,64,57,.15);
  user-select: none;
}

.lv-slider-voor,
.lv-slider-na {
  position: absolute;
  inset: 0;
}

.lv-slider-voor img,
.lv-slider-na img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.lv-slider-na {
  clip-path: inset(0 50% 0 0);
  transition: clip-path .05s;
}

.lv-slider-lijn {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
}

.lv-slider-handel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lv-slider-handel svg {
  width: 20px;
  height: 20px;
  stroke: var(--lv-brown);
}

.lv-slider-label {
  position: absolute;
  bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(74,64,57,.6);
  padding: 4px 10px;
  border-radius: 99px;
  pointer-events: none;
}

.lv-label-voor { left: 12px; }
.lv-label-na   { right: 12px; }

.lv-resultaat-acties {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Fout stap ──────────────────────────────────────────────────────────────── */
.lv-fout-wrap {
  text-align: center;
  padding: 40px 0;
}

.lv-fout-wrap svg {
  width: 56px;
  height: 56px;
  color: var(--lv-muted);
  margin-bottom: 16px;
}

.lv-fout-wrap h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
}

.lv-fout-wrap p {
  color: var(--lv-muted);
  margin: 0 0 24px;
}

/* ── No key waarschuwing ────────────────────────────────────────────────────── */
.lv-no-key {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--lv-beige);
  position: relative;
  z-index: 1;
}

.lv-no-key svg {
  width: 40px;
  height: 40px;
  color: var(--lv-muted);
  margin-bottom: 12px;
}

.lv-no-key p {
  font-size: 14px;
  color: var(--lv-muted);
  margin: 0;
}

.lv-no-key a { color: var(--lv-gold-d); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .lv-wrap { padding: 48px 16px; }
  .lv-acties { flex-direction: column; align-items: stretch; }
  .lv-btn { justify-content: center; }
  .lv-slider-wrap { aspect-ratio: 4/3; }
  .lv-resultaat-acties { flex-direction: column; align-items: stretch; }
}
