/* PresentTool™ — Interactieve demo */
:root {
  --pt-primary:   #8B4513;
  --pt-secondary: #C8956C;
  --pt-text:      #1A1A1A;
  --pt-muted:     #6B6B6B;
  --pt-bg:        #F5F4F1;
  --pt-surface:   #FFFFFF;
  --pt-border:    #E5E5E0;
  --pt-sidebar-w: 190px;
  --pt-ok:        #22C55E;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #ddd; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 0; }
img { max-width: 100%; display: block; }

/* ─── Banner ───────────────────────────────────────────────────────────── */
.demo-banner {
  width: 100%; background: var(--pt-primary); color: #fff;
  font-size: 12px; padding: 8px 16px;
}
.demo-banner-inner { display: flex; align-items: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.demo-badge { background: rgba(255,255,255,.2); border-radius: 4px; padding: 2px 6px; font-weight: 700; font-size: 10px; letter-spacing:.05em; flex-shrink:0; }
.demo-banner span:nth-child(2) { flex: 1; }
.demo-banner-cta { color: #fff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.demo-banner-close { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: 14px; padding: 0 4px; flex-shrink:0; }
.demo-banner-close:hover { color: #fff; }

/* ─── Plugin shell ─────────────────────────────────────────────────────── */
.plugin-shell {
  width: 860px; height: 580px; max-width: 100vw;
  display: flex; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,0,0,0.1);
  background: var(--pt-surface); position: relative;
  flex: 1;
}

/* ─── Sidebar ──────────────────────────────────────────────────────────── */
.plugin-sidebar {
  width: var(--pt-sidebar-w); min-width: var(--pt-sidebar-w);
  background: #1C1C1E; color: #fff;
  display: flex; flex-direction: column;
}
.plugin-brand { padding: 14px 14px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.plugin-logo { height: 24px; filter: brightness(0) invert(1); }
.plugin-model-status {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; font-size: 11px; color: rgba(255,255,255,.45);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.plugin-model-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pt-ok); flex-shrink:0; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }

.plugin-nav { flex: 1; padding: 6px 0; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.plugin-step {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 14px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.45); font-size: 12px; font-weight: 500; text-align: left;
  transition: background 140ms, color 140ms;
}
.plugin-step:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.plugin-step.is-active { background: rgba(139,69,19,.28); color: #fff; border-left: 2px solid var(--pt-secondary); }
.step-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.plugin-step.is-active .step-num { background: var(--pt-secondary); color: var(--pt-primary); }
.step-label { flex: 1; }
.step-status { font-size: 10px; color: rgba(255,255,255,.3); }
.step-status.is-done { color: var(--pt-ok); }

.plugin-sidebar-footer {
  padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
}
.plugin-credits { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,.4); }
.plugin-assist-btn {
  background: rgba(255,255,255,.08); border: none; border-radius: 6px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.6); transition: background 140ms;
}
.plugin-assist-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ─── Main ─────────────────────────────────────────────────────────────── */
.plugin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.plugin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 42px; background: var(--pt-surface);
  border-bottom: 1px solid var(--pt-border); flex-shrink: 0;
}
.plugin-step-title { font-size: 12.5px; font-weight: 600; color: var(--pt-text); }
.plugin-topbar-right { display: flex; align-items: center; gap: 10px; }
.plugin-save-indicator { font-size: 11px; color: var(--pt-muted); }
.plugin-icon-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--pt-border);
  background: none; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--pt-muted);
  display: flex; align-items: center; justify-content: center; transition: background 140ms;
}
.plugin-icon-btn:hover { background: var(--pt-bg); color: var(--pt-text); }

.plugin-content { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* ─── Generic UI elements ──────────────────────────────────────────────── */
.pt-card { background: var(--pt-bg); border: 1px solid var(--pt-border); border-radius: 8px; padding: 14px; }
.pt-card-title { font-weight: 600; font-size: 12.5px; margin-bottom: 10px; }
.pt-label { font-size: 11px; font-weight: 600; color: var(--pt-muted); margin-bottom: 5px; display: block; }
.pt-input { width: 100%; padding: 7px 9px; border: 1px solid var(--pt-border); border-radius: 6px; font-size: 12px; background: var(--pt-surface); color: var(--pt-text); outline: none; }
.pt-input:focus { border-color: var(--pt-primary); }
.pt-textarea { width: 100%; padding: 7px 9px; border: 1px solid var(--pt-border); border-radius: 6px; font-size: 12px; background: var(--pt-surface); color: var(--pt-text); outline: none; resize: vertical; min-height: 70px; }
.pt-field { margin-bottom: 10px; }

.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pt-chip {
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500;
  border: 1px solid var(--pt-border); background: var(--pt-surface); cursor: pointer;
  color: var(--pt-muted); transition: all 140ms;
}
.pt-chip:hover { border-color: var(--pt-secondary); color: var(--pt-primary); }
.pt-chip.is-active { background: var(--pt-primary); color: #fff; border-color: var(--pt-primary); }

.pt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--pt-border); background: var(--pt-surface);
  color: var(--pt-text); transition: background 140ms; white-space: nowrap;
}
.pt-btn:hover { background: var(--pt-bg); }
.pt-btn--primary { background: var(--pt-primary); color: #fff; border-color: var(--pt-primary); }
.pt-btn--primary:hover { background: #7a3c10; }
.pt-btn--sm { padding: 5px 10px; font-size: 11px; }
.pt-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Moodboard grid ────────────────────────────────────────────────────── */
.mood-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 8px; }
.mood-img {
  aspect-ratio: 4/3; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, #d4c4b5, #b8a090);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: rgba(255,255,255,.7); font-style: italic;
  cursor: pointer; transition: transform 140ms;
}
.mood-img:hover { transform: scale(1.02); }
.mood-img.is-anchor { box-shadow: 0 0 0 2px var(--pt-primary); }
.mood-img span { text-align: center; padding: 4px; }

/* ─── Render result ─────────────────────────────────────────────────────── */
.render-result {
  aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #2c1810, #8b4513, #d4a88a, #f5e6d8);
  position: relative; display: flex; align-items: flex-end;
}
.render-overlay { padding: 12px; color: #fff; font-size: 11px; opacity: .7; }
.render-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ─── Meshy ─────────────────────────────────────────────────────────────── */
.meshy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
.meshy-item {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--pt-border);
  background: linear-gradient(135deg, #e8e0d8, #d0c4b8);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: border-color 140ms;
}
.meshy-item:hover { border-color: var(--pt-secondary); }
.meshy-item.is-selected { border-color: var(--pt-primary); border-width: 2px; }
.meshy-label { position: absolute; bottom: 6px; left: 6px; right: 6px; font-size: 10px; color: var(--pt-muted); text-align: center; }

/* ─── Assistant ─────────────────────────────────────────────────────────── */
.plugin-assistant {
  position: absolute; bottom: 60px; left: var(--pt-sidebar-w); right: 0; margin: 0 16px;
  background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 100;
  animation: slide-up 220ms ease-out both;
}
@keyframes slide-up { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.assist-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--pt-border); }
.assist-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--pt-primary); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.assist-name { font-size: 12px; font-weight: 600; flex: 1; }
.assist-close { background: none; border: none; cursor: pointer; color: var(--pt-muted); font-size: 13px; }
.assist-body { padding: 10px 14px; font-size: 12px; line-height: 1.5; color: var(--pt-text); }
.assist-actions { padding: 8px 14px 12px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── Progress overlay ──────────────────────────────────────────────────── */
.plugin-progress-overlay {
  position: absolute; inset: 0; background: rgba(255,255,255,.88);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 200;
}
.progress-box { text-align: center; }
.progress-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--pt-border); border-top-color: var(--pt-primary);
  animation: spin 0.8s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.progress-sub { font-size: 11px; color: var(--pt-muted); margin-bottom: 12px; }
.progress-bar-track { width: 200px; height: 4px; background: var(--pt-border); border-radius: 2px; margin: 0 auto; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--pt-primary); border-radius: 2px; width: 0; transition: width 400ms ease; }

/* ─── Story section ─────────────────────────────────────────────────────── */
.story-preview { border: 1px solid var(--pt-border); border-radius: 8px; overflow: hidden; }
.story-hero { background: linear-gradient(160deg,#2c1810,#8b4513); color:#fff; padding:20px; }
.story-hero h2 { font-family:"Source Serif 4",serif; font-size:18px; font-weight:600; margin-bottom:6px; }
.story-hero p { font-size:12px; opacity:.75; }
.story-section { padding:14px; border-top:1px solid var(--pt-border); display:flex; gap:10px; align-items:flex-start; }
.story-thumb { width:60px; height:45px; border-radius:5px; background:linear-gradient(135deg,#d4c4b5,#b8a090); flex-shrink:0; }
.story-text h4 { font-size:12px; font-weight:600; margin-bottom:3px; }
.story-text p { font-size:11px; color:var(--pt-muted); line-height:1.4; }
.story-link-bar { display:flex; align-items:center; gap:8px; padding:10px 14px; background:rgba(139,69,19,.05); border-top:1px solid var(--pt-border); }
.story-link-url { flex:1; font-size:11px; color:var(--pt-primary); font-family:monospace; background:var(--pt-surface); padding:5px 8px; border:1px solid var(--pt-border); border-radius:5px; }

/* --- Ruimtetype-selector -------------------------------------------------- */
.room-selector-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,10,12,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.room-selector-box {
  background: #fff; border-radius: 16px; padding: 40px 36px;
  max-width: 480px; width: 100%; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.room-selector-logo { font-size: 18px; font-weight: 700; color: var(--pt-primary); margin-bottom: 8px; }
.room-selector-badge { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-primary); background: rgba(139,69,19,.1); border: 1px solid rgba(139,69,19,.2); border-radius: 100px; padding: 4px 12px; display: inline-block; margin-bottom: 20px; }
.room-selector-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.room-selector-sub { font-size: 13px; color: #6b6b6b; margin-bottom: 28px; line-height: 1.55; }
.room-options { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.room-option { background: #fafaf8; border: 2px solid #e5e5e0; border-radius: 12px; padding: 18px 20px; cursor: pointer; transition: border-color 150ms, background 150ms; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 110px; }
.room-option:hover { border-color: var(--pt-primary); background: rgba(139,69,19,.05); }
.room-icon { font-size: 28px; }
.room-label { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.room-selector-note { font-size: 12px; color: #9b9b9b; }

/* --- Post-demo overlay ---------------------------------------------------- */
.post-demo-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(10,10,12,0.80); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.post-demo-overlay[hidden] { display: none; }
.post-demo-box {
  background: #fff; border-radius: 16px; padding: 40px 36px;
  max-width: 500px; width: 100%; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.post-demo-icon { font-size: 40px; margin-bottom: 14px; }
.post-demo-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: #1a1a1a; }
.post-demo-sub { font-size: 13px; color: #6b6b6b; margin-bottom: 24px; line-height: 1.6; max-width: 380px; margin-left: auto; margin-right: auto; }
.post-demo-cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.btn-post-demo { display: inline-block; padding: 11px 22px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--pt-primary); color: var(--pt-primary); cursor: pointer; background: transparent; transition: background 150ms, color 150ms; }
.btn-post-demo--primary { background: var(--pt-primary); color: #fff; border-color: var(--pt-primary); }
.btn-post-demo--primary:hover { background: #a0522d; }
.btn-post-demo:hover { background: rgba(139,69,19,.07); }
.btn-post-demo--sm { padding: 8px 14px; font-size: 12px; }
.post-demo-lead { border-top: 1px solid #e5e5e0; padding-top: 20px; margin-top: 4px; }
.post-demo-lead-label { font-size: 12px; color: #6b6b6b; margin-bottom: 10px; }
.post-demo-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.post-demo-email { border: 1px solid #e5e5e0; border-radius: 6px; padding: 8px 12px; font-size: 13px; width: 200px; }
.post-demo-email:focus { outline: 2px solid var(--pt-primary); border-color: transparent; }
.post-demo-lead-note { font-size: 11px; color: var(--pt-primary); margin-top: 8px; min-height: 16px; }
.post-demo-close { margin-top: 16px; background: none; border: none; color: #9b9b9b; font-size: 12px; cursor: pointer; text-decoration: underline; }
