/* ==========================================================================
   CKV POSTER STUDIO — STYLESHEET
   Professionele Canva-achtige editor voor A3/A4 CKV Kunstposters
   Matthijs van der Elst — VWO 4 CKV
   ========================================================================== */

:root {
  /* Studio UI Kleuren */
  --ui-bg-root: #0b0f17;
  --ui-bg-panel: #131b2b;
  --ui-bg-panel-sub: #1a2337;
  --ui-bg-hover: #222e48;
  --ui-border: rgba(255, 255, 255, 0.1);
  --ui-border-accent: rgba(56, 189, 248, 0.5);
  --ui-text-main: #f1f5f9;
  --ui-text-muted: #94a3b8;
  --ui-accent-blue: #38bdf8;
  --ui-accent-pink: #ec4899;
  --ui-accent-amber: #f59e0b;
  --ui-accent-green: #10b981;
  --ui-danger: #ef4444;

  /* Typografie in Editor */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  
  /* Typografie op de Poster */
  --font-marker: 'Permanent Marker', cursive;
  --font-hand: 'Caveat', cursive;
  --font-typewriter: 'Special Elite', monospace;
  --font-courier: 'Courier Prime', monospace;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  /* Poster Dimensies (in CSS mm & schaalbare px) */
  /* A3 Portrait: 297mm x 420mm (1 : 1.4141) */
  --canvas-width-mm: 297mm;
  --canvas-height-mm: 420mm;
  --canvas-base-width: 1122px;  /* ca. 96 DPI schaalbare basis voor interactie */
  --canvas-base-height: 1587px;

  /* Poster Kleuren & Texturen */
  --paper-vintage: #f4eee2;
  --paper-white: #ffffff;
  --paper-grid: #faf9f6;
  --paper-dark: #16181f;
  --ink-black: #1a1816;
  --ink-red: #b92b27;
  --ink-blue: #1e3a8a;
  --postit-yellow: #fff9c4;
  --postit-pink: #fce4ec;
  --postit-blue: #e0f2fe;
  --postit-green: #e8f5e9;
  --tape-color: rgba(254, 249, 225, 0.85);
  --tape-border: rgba(218, 207, 169, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--ui-bg-root);
  color: var(--ui-text-main);
  font-family: var(--font-ui);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   TOP APPLICATION TOOLBAR
   ========================================================================== */

.studio-header {
  height: 58px;
  background: var(--ui-bg-panel);
  border-bottom: 1px solid var(--ui-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
  flex-shrink: 0;
  gap: 1rem;
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--ui-accent-blue);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-author {
  font-size: 0.73rem;
  color: var(--ui-text-muted);
}

.save-status {
  font-size: 0.72rem;
  color: var(--ui-accent-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Header Center Controls: Formaat, Thema, Zoom */
.header-center-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--ui-border);
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-divider {
  width: 1px;
  height: 20px;
  background: var(--ui-border);
  margin: 0 0.3rem;
}

.tool-select {
  background: var(--ui-bg-panel-sub);
  color: var(--ui-text-main);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.tool-select:hover, .tool-select:focus {
  border-color: var(--ui-accent-blue);
  background: var(--ui-bg-hover);
}

.tool-btn-icon {
  background: var(--ui-bg-panel-sub);
  color: var(--ui-text-main);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.tool-btn-icon:hover {
  background: var(--ui-bg-hover);
  border-color: var(--ui-accent-blue);
  color: #fff;
}

.zoom-indicator {
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 44px;
  text-align: center;
  color: var(--ui-text-muted);
}

/* Header Right Actions: AI Collaboration & PDF Export */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-ai-copy {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.btn-ai-copy:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #fff;
  transform: translateY(-1px);
}

.btn-ai-import {
  background: var(--ui-bg-panel-sub);
  color: var(--ui-text-main);
  border-color: var(--ui-border);
}

.btn-ai-import:hover {
  background: var(--ui-bg-hover);
  border-color: var(--ui-accent-blue);
}

.btn-export-pdf {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.btn-export-pdf:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   APP WORKSPACE LAYOUT (SIDEBAR + STAGE + INSPECTOR)
   ========================================================================== */

.studio-main {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   LEFT SIDEBAR: TOOL TABS & ELEMENT DRAWER
   -------------------------------------------------------------------------- */

.studio-sidebar {
  width: 360px;
  background: var(--ui-bg-panel);
  border-right: 1px solid var(--ui-border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  flex-shrink: 0;
  transition: width 0.25s ease;
}

.sidebar-tabs {
  display: flex;
  background: var(--ui-bg-root);
  border-bottom: 1px solid var(--ui-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.sidebar-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 68px;
  padding: 0.65rem 0.3rem;
  background: none;
  border: none;
  color: var(--ui-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.tab-btn .tab-icon {
  font-size: 1.15rem;
}

.tab-btn:hover {
  color: var(--ui-text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--ui-accent-blue);
  border-bottom-color: var(--ui-accent-blue);
  background: var(--ui-bg-panel);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Custom modern scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
  width: 6px;
}
.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ui-accent-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-desc {
  font-size: 0.75rem;
  color: var(--ui-text-muted);
  line-height: 1.4;
  margin-top: -0.5rem;
}

/* Element Drawer Grid */
.element-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.element-grid.single-col {
  grid-template-columns: 1fr;
}

.drawer-card {
  background: var(--ui-bg-panel-sub);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  padding: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}

.drawer-card:hover {
  border-color: var(--ui-accent-blue);
  background: var(--ui-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.drawer-card-preview {
  height: 64px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.35rem;
}

.drawer-card-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 70%);
  border-radius: 4px;
}

.drawer-card-icon {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
}

.drawer-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-card-sub {
  font-size: 0.68rem;
  color: var(--ui-text-muted);
  line-height: 1.3;
}

.drawer-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.62rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--ui-accent-blue);
  font-weight: 600;
}

/* Template selection buttons */
.template-btn-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-template {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--ui-bg-panel-sub);
  border: 1px solid var(--ui-border);
  color: var(--ui-text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-template:hover {
  background: var(--ui-bg-hover);
  border-color: var(--ui-accent-blue);
  transform: translateY(-1px);
}

.btn-template.highlight {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
}

.template-icon {
  font-size: 1.5rem;
}

.template-info h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.template-info p {
  font-size: 0.7rem;
  color: var(--ui-text-muted);
  margin-top: 0.15rem;
}

/* Quick Text Add Buttons */
.text-add-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  background: var(--ui-bg-panel-sub);
  border: 1px solid var(--ui-border);
  color: var(--ui-text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.text-add-btn:hover {
  border-color: var(--ui-accent-blue);
  background: var(--ui-bg-hover);
}

.text-add-preview {
  display: flex;
  flex-direction: column;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.15);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--ui-accent-blue);
  background: rgba(56, 189, 248, 0.08);
}

.upload-dropzone p {
  font-size: 0.78rem;
  color: var(--ui-text-muted);
  margin-top: 0.4rem;
}

/* ==========================================================================
   CENTER CANVAS STAGE & VIEWPORT
   ========================================================================== */

.studio-stage-viewport {
  flex: 1;
  background: #090c12;
  overflow: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.03) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
}

/* Het Fysieke Poster Canvas */
.poster-canvas {
  width: var(--canvas-base-width);
  height: var(--canvas-base-height);
  position: relative;
  background-color: var(--paper-vintage);
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.1);
  transform-origin: top center;
  transition: transform 0.15s ease-out, background-color 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
}

/* Canvas Achtergrond Thema's */
.poster-canvas.theme-vintage {
  background-color: var(--paper-vintage);
  background-image: 
    radial-gradient(#dfd9cc 1px, transparent 1px),
    radial-gradient(#dfd9cc 1px, #f4eee2 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.poster-canvas.theme-white {
  background-color: var(--paper-white);
  background-image: none;
}

.poster-canvas.theme-grid {
  background-color: var(--paper-grid);
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}

.poster-canvas.theme-dark {
  background-color: var(--paper-dark);
  background-image: 
    radial-gradient(circle at 50% 50%, #202431 0%, #16181f 100%);
  color: #f1f5f9;
}

.poster-canvas.theme-motherboard {
  background-color: #0b0f19;
  background-image: 
    /* Subtiele koperbanen en circuit traces */
    radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.07) 0%, transparent 60%),
    linear-gradient(to right, rgba(212, 175, 55, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 175, 55, 0.09) 1px, transparent 1px),
    radial-gradient(#1e293b 2px, transparent 2px),
    radial-gradient(#d4af37 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px, 72px 72px, 18px 18px;
  background-position: 0 0, 0 0, 0 0, 0 0, 9px 9px;
  color: #f1f5f9;
  border: 4px solid #1e2638;
}

/* Thema 5: Zonnestelsel & Diepe Kosmos (Het Culturele Universum) */
.poster-canvas.theme-cosmos {
  background-color: #030712;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 65%),
    radial-gradient(circle at 20% 25%, rgba(56, 189, 248, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(236, 72, 153, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(#ffffff 0.7px, transparent 0.7px),
    radial-gradient(rgba(56, 189, 248, 0.6) 0.5px, transparent 0.5px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 48px 48px, 96px 96px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 24px 24px;
  color: #f1f5f9;
  border: 4px solid #312e81;
}

/* Canvas Papier Textuur Overlay */
.canvas-texture-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.18;
  background-image: radial-gradient(circle at 50% 50%, #000 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

/* ==========================================================================
   INTERACTIEVE POSTER ELEMENTEN
   ========================================================================== */

.poster-element {
  position: absolute;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: center center;
}

.poster-element.is-dragging {
  cursor: grabbing !important;
  opacity: 0.95;
}

/* Selectiekader & Handvatten */
.poster-element.is-selected {
  outline: 2px solid var(--ui-accent-blue);
  outline-offset: 2px;
}

.selection-controls {
  display: none;
  position: absolute;
  inset: -6px;
  pointer-events: none;
  z-index: 1000;
}

.poster-element.is-selected > .selection-controls {
  display: block;
}

/* 8 Resize Handvatten */
.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid var(--ui-accent-blue);
  border-radius: 50%;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.handle-nw { top: -5px; left: -5px; cursor: nwse-resize; }
.handle-ne { top: -5px; right: -5px; cursor: nesw-resize; }
.handle-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.handle-se { bottom: -5px; right: -5px; cursor: nwse-resize; }
.handle-n  { top: -5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.handle-s  { bottom: -5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.handle-w  { top: 50%; left: -5px; transform: translateY(-50%); cursor: ew-resize; }
.handle-e  { top: 50%; right: -5px; transform: translateY(-50%); cursor: ew-resize; }

/* Rotatiehendel aan de bovenkant */
.rotate-handle {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid var(--ui-accent-blue);
  border-radius: 50%;
  cursor: grab;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.rotate-stem {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 16px;
  background: var(--ui-accent-blue);
}

/* Zwevende Actiebalk bij selectie */
.element-quick-bar {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ui-bg-panel);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  pointer-events: auto;
  white-space: nowrap;
  z-index: 1001;
}

.quick-btn {
  background: transparent;
  border: none;
  color: var(--ui-text-muted);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.quick-btn:hover {
  background: var(--ui-bg-hover);
  color: #fff;
}

.quick-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--ui-danger);
}

/* --------------------------------------------------------------------------
   SOORTEN POSTER ELEMENTEN (Polaroid, Scrap, Text, Stickers, Stempels)
   -------------------------------------------------------------------------- */

/* 1. Polaroid Foto Kaart */
.el-polaroid {
  background: #ffffff;
  padding: 10px 10px 24px 10px;
  box-shadow: 
    0 12px 28px -6px rgba(0,0,0,0.25),
    0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.el-polaroid .polaroid-photo {
  width: 100%;
  height: calc(100% - 50px);
  min-height: 120px;
  background-color: #222;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.el-polaroid .polaroid-photo-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.el-polaroid .polaroid-caption {
  margin-top: 10px;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.25;
  color: #1a1816;
  text-align: center;
  outline: none;
  min-height: 24px;
}

.el-polaroid .polaroid-sub {
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  color: #666;
  margin-top: 2px;
  text-align: center;
  outline: none;
}

/* 2. Scrap Paper / Post-It / Vragen */
.el-scrap {
  padding: 16px 18px;
  box-shadow: 
    0 10px 25px -5px rgba(0,0,0,0.2),
    0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  color: #1a1816;
}

.el-scrap.scrap-yellow {
  background-color: var(--postit-yellow);
  border-left: 4px solid #fbc02d;
}

.el-scrap.scrap-pink {
  background-color: var(--postit-pink);
  border-left: 4px solid #f48fb1;
}

.el-scrap.scrap-blue {
  background-color: var(--postit-blue);
  border-left: 4px solid #90caf9;
}

.el-scrap.scrap-white {
  background-color: #fff;
  border: 1px solid #e0dbce;
}

.el-scrap.scrap-lined {
  background-color: #fff;
  background-image: linear-gradient(#e1e8ed 1px, transparent 1px);
  background-size: 100% 24px;
  border-left: 3px solid #ff7043;
}

.el-scrap .scrap-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b92b27;
  margin-bottom: 4px;
  outline: none;
}

.el-scrap .scrap-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #1a1816;
  outline: none;
}

.el-scrap .scrap-body {
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #2b2824;
  outline: none;
  flex: 1;
}

/* 3. Vrije Tekstelementen */
.el-text {
  padding: 4px 8px;
  min-width: 60px;
  min-height: 30px;
  outline: none;
  cursor: text;
}

.el-text.text-marker-title {
  font-family: var(--font-marker);
  font-size: 2.2rem;
  color: #1a1816;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.08);
}

.el-text.text-hand-quote {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: #b92b27;
  line-height: 1.2;
}

.el-text.text-typewriter {
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  color: #222;
  line-height: 1.5;
}

.el-text.text-sans-body {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

/* 4. Stickers & Decoraties */
/* Washi Tape Strip */
.tape-decor {
  position: absolute;
  height: 22px;
  background: var(--tape-color);
  border-top: 1px solid var(--tape-border);
  border-bottom: 1px solid var(--tape-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  z-index: 10;
  pointer-events: none;
}

.tape-top-center {
  width: 70px;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
}

.tape-corner-left {
  width: 60px;
  top: -10px;
  left: -15px;
  transform: rotate(-35deg);
}

.tape-corner-right {
  width: 60px;
  top: -10px;
  right: -15px;
  transform: rotate(35deg);
}

/* Prikbord Speld / Thumbtack */
.pin-decor {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 15;
  pointer-events: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.35);
}

.pin-decor.pin-red {
  background: radial-gradient(circle at 35% 35%, #ff6b6b 0%, #b92b27 70%, #7f1d1d 100%);
  border: 1px solid #7f1d1d;
}

.pin-decor.pin-gold {
  background: radial-gradient(circle at 35% 35%, #fde047 0%, #ca8a04 70%, #713f12 100%);
  border: 1px solid #713f12;
}

.pin-top-center {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

/* CKV Rubber Stempel */
.el-stamp {
  display: inline-block;
  padding: 6px 14px;
  border: 3px dashed #b92b27;
  color: #b92b27;
  font-family: var(--font-typewriter);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  opacity: 0.85;
  transform: rotate(-5deg);
  background: rgba(185, 43, 39, 0.04);
}

.el-stamp.stamp-blue {
  border-color: #1e3a8a;
  color: #1e3a8a;
  background: rgba(30, 58, 138, 0.04);
}

/* Thought Cloud / Gedachtenwolk */
.el-thought-cloud {
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 2px solid #dfd9cc;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.el-thought-cloud .cloud-text {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1816;
  outline: none;
}

.el-thought-bubble-dot {
  background: #fff;
  border-radius: 50%;
  border: 2px solid #dfd9cc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Portret Frame */
.el-portrait {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 16px 36px -8px rgba(0,0,0,0.3);
  border: 2px solid #222;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.el-portrait .portrait-img-wrap {
  width: 100%;
  height: calc(100% - 32px);
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.el-portrait .portrait-caption {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #111;
  text-align: center;
  outline: none;
}

/* ==========================================================================
   PC HARDWARE COMPONENTEN (MSI B650 / RYZEN / ARCTIC / XFX / FURY)
   ========================================================================== */

/* 1. CPU Socket met ARCTIC Liquid Freezer III AIO Pomp (Jouw Portret) */
.el-cpu-arctic {
  background: #0f131d;
  border: 3px solid #38bdf8;
  border-radius: 50%;
  box-shadow: 
    0 0 35px rgba(56, 189, 248, 0.4),
    inset 0 0 25px rgba(236, 72, 153, 0.35),
    0 15px 35px rgba(0,0,0,0.6);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.el-cpu-arctic::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px dashed rgba(56, 189, 248, 0.45);
  border-radius: 50%;
  animation: cpuRotateRing 25s linear infinite;
  pointer-events: none;
}

@keyframes cpuRotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.arctic-display-screen {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  position: relative;
}

.arctic-display-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-align: center;
}

/* 2. Hardware Spec & Heatsink Panel */
.el-hardware-panel {
  background: linear-gradient(145deg, #131926 0%, #0d121c 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--ui-accent-blue);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 
    0 12px 28px -6px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,0,0,0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  color: #f1f5f9;
}

.el-hardware-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #ec4899, #f59e0b);
  border-radius: 0 0 8px 8px;
  opacity: 0.8;
}

.hw-screw {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #94a3b8 30%, #334155 100%);
  border-radius: 50%;
  border: 1px solid #1e293b;
}
.hw-screw.tl { top: 6px; left: 6px; }
.hw-screw.tr { top: 6px; right: 6px; }
.hw-screw.bl { bottom: 8px; left: 6px; }
.hw-screw.br { bottom: 8px; right: 6px; }

.hw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 0.5rem;
}

.hw-part-badge {
  font-family: var(--font-courier);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ui-accent-blue);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-domain-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.hw-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.hw-body {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cbd5e1;
  flex: 1;
}

.hw-review {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.74rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.35;
}

/* 3. BIOS / UEFI Firmware ROM Chip Panel */
.el-bios-panel {
  background: #080c14;
  border: 1px solid #10b981;
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 
    0 0 20px rgba(16, 185, 129, 0.15),
    0 10px 30px rgba(0,0,0,0.6);
  position: relative;
  display: flex;
  flex-direction: column;
}

.bios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  padding-bottom: 4px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 700;
  font-family: var(--font-courier);
}

.bios-q-tag {
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.7rem;
  margin-bottom: 4px;
  font-family: var(--font-courier);
}

.bios-q-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.bios-q-body {
  color: #93c5fd;
  font-size: 0.78rem;
  line-height: 1.4;
  font-family: var(--font-courier);
  flex: 1;
}

/* ==========================================================================
   AUTHENTIEKE MOEDERBORD HARDWARE ARCHITECTUUR (MSI B650 REALISTISCH)
   ========================================================================== */

/* Moederbord Onderlaag (Solder Mask, Koperbanen, Montagegaten, Poorten) */
.motherboard-pcb-underlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* 9 ATX Montagegaten met Soldeereilanden */
.atx-mount-hole {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #080c14;
  border: 3px solid #8590a6;
  box-shadow: 
    0 0 0 4px #080c14,
    0 0 0 7px rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.atx-mount-hole::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  border: 1px solid #475569;
}

/* 24-Pin ATX Hoofdvoeding Connector (Rechterrand) */
.atx-24pin-connector {
  position: absolute;
  right: 18px;
  top: 360px;
  width: 32px;
  height: 220px;
  background: #0d121c;
  border: 2px solid #2a3447;
  border-radius: 4px;
  box-shadow: -4px 0 12px rgba(0,0,0,0.6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 3px;
  padding: 4px;
}
.atx-pin {
  background: #1a2233;
  border: 1px solid #d4af37;
  border-radius: 1px;
}

/* Dual 8-Pin CPU EPS Voedingsconnectors (Linksboven) */
.cpu-8pin-cluster {
  position: absolute;
  left: 60px;
  top: 18px;
  display: flex;
  gap: 8px;
}
.cpu-8pin-connector {
  width: 48px;
  height: 24px;
  background: #0d121c;
  border: 2px solid #2a3447;
  border-radius: 3px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  padding: 2px;
}

/* Rear I/O Metaal Schild (Linker Rand) */
.rear-io-shroud {
  position: absolute;
  left: 0;
  top: 60px;
  width: 32px;
  height: 600px;
  background: linear-gradient(to right, #475569 0%, #1e293b 80%, #0f172a 100%);
  border-right: 2px solid #64748b;
  box-shadow: 6px 0 18px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 10px 2px;
}
.io-port-usb {
  width: 18px;
  height: 24px;
  background: #0284c7;
  border: 1px solid #38bdf8;
  border-radius: 2px;
}
.io-port-hdmi {
  width: 18px;
  height: 14px;
  background: #0f172a;
  border: 1px solid #94a3b8;
  border-radius: 2px;
}
.io-port-lan {
  width: 20px;
  height: 22px;
  background: #334155;
  border: 1px solid #94a3b8;
  position: relative;
}
.io-port-lan::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.io-port-wifi {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 30%, #ca8a04 100%);
  border: 1px solid #713f12;
}

/* Fysieke PCIe x16 Steel Armor Slot Rail */
.pcie-slot-steel-armor {
  position: absolute;
  left: 50px;
  top: 960px;
  width: 500px;
  height: 18px;
  background: linear-gradient(to bottom, #94a3b8 0%, #cbd5e1 50%, #475569 100%);
  border: 1px solid #334155;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.pcie-slot-steel-armor::after {
  content: 'MSI STEEL ARMOR // PCIe 4.0 x16';
  font-family: var(--font-courier);
  font-size: 8px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.1em;
}
.pcie-release-clip {
  width: 18px;
  height: 26px;
  background: #f1f5f9;
  border: 1px solid #64748b;
  border-radius: 3px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

/* Fysieke 4x DDR5 DIMM Slot Rails */
.dimm-slot-cluster {
  position: absolute;
  right: 60px;
  top: 240px;
  width: 240px;
  height: 380px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.dimm-rail {
  width: 32px;
  height: 100%;
  background: #0d121c;
  border: 1px solid #2a3447;
  border-radius: 2px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.dimm-latch {
  width: 24px;
  height: 14px;
  background: #f1f5f9;
  border: 1px solid #94a3b8;
  border-radius: 2px;
}

/* Oplichtende Audio Trace Scheidingslijn (Geel/Amber) */
.audio-isolation-trace {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 530px;
  height: 330px;
  border-top: 2px solid #f59e0b;
  border-right: 2px solid #f59e0b;
  border-top-right-radius: 24px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), inset 0 0 12px rgba(245, 158, 11, 0.1);
  pointer-events: none;
}
.audio-isolation-trace::after {
  content: 'AUDIO BOOST // PCB ISOLATED ANALOG SECTION';
  position: absolute;
  top: -14px;
  left: 20px;
  font-family: var(--font-courier);
  font-size: 8px;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.15em;
  background: #0b0f19;
  padding: 0 6px;
}

/* Koperbanen (PCB Copper Bus Lines SVG) */
.pcb-circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   INTERACTIEVE HARDWARE ELEMENTEN (FOTOREALISTISCHE OPMAAK)
   -------------------------------------------------------------------------- */

/* 1. CPU: AMD AM5 Socket + ARCTIC Liquid Freezer III 360 AIO */
.el-cpu-arctic {
  background: #0d121c;
  border: 4px solid #1e293b;
  border-radius: 50%;
  box-shadow: 
    0 0 45px rgba(56, 189, 248, 0.5),
    inset 0 0 30px rgba(236, 72, 153, 0.4),
    0 25px 60px rgba(0,0,0,0.8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

/* AM5 Vierkant Metalen Voetstuk onder de Ronde Koeler */
.el-cpu-arctic::before {
  content: '';
  position: absolute;
  inset: -28px;
  background: linear-gradient(145deg, #242c3d 0%, #151b27 100%);
  border: 2px solid #475569;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
  z-index: -2;
}

/* AM5 Socket Bevestigingshendel (Rechterkant) */
.el-cpu-arctic::after {
  content: '';
  position: absolute;
  right: -36px;
  top: 20px;
  bottom: 20px;
  width: 8px;
  background: linear-gradient(to right, #94a3b8 0%, #f1f5f9 50%, #64748b 100%);
  border-radius: 4px;
  box-shadow: 2px 0 6px rgba(0,0,0,0.5);
  z-index: -1;
}

/* Gevlochten Zwarte Vloeistofslangen (Naar boven gericht) */
.arctic-coolant-hoses {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 55px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.coolant-hose {
  width: 22px;
  height: 100%;
  background: repeating-linear-gradient(45deg, #111 0px, #111 4px, #262626 4px, #262626 8px);
  border-left: 2px solid #404040;
  border-right: 2px solid #404040;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.8);
}

/* Ronde LCD Telemetrie Scherm van de Koeler */
.arctic-display-screen {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 3px solid #38bdf8;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.85);
  position: relative;
}

.arctic-telemetry-hud {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(56, 189, 248, 0.6);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hud-temp-badge {
  font-family: var(--font-courier);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hud-name-caption {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  outline: none;
}

/* 2. GPU: XFX Speedster QICK 319 Radeon RX 6750 XT 12GB */
.el-gpu-card {
  background: linear-gradient(180deg, #181d28 0%, #0f141e 100%);
  border: 2px solid #334155;
  border-left: 8px solid #64748b; /* PCI Bracket */
  border-radius: 6px;
  box-shadow: 
    0 20px 40px -10px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.06);
  padding: 16px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Geborsteld Aluminium Textuur & Ventilatiepatroon */
.el-gpu-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: 
    radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, transparent 70%),
    radial-gradient(#1e293b 3px, transparent 3px);
  background-size: 100% 100%, 14px 14px;
  opacity: 0.7;
  pointer-events: none;
}

/* Dual 8-Pin PCIe Voedingsconnectors bovenaan de videokaart */
.gpu-power-sockets {
  position: absolute;
  top: -12px;
  right: 40px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.gpu-8pin-plug {
  width: 38px;
  height: 14px;
  background: #090d14;
  border: 2px solid #475569;
  border-radius: 2px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.6);
}

.gpu-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.gpu-model-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gpu-model-badge::before {
  content: 'XFX';
  background: #e11d48;
  color: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 800;
  font-size: 0.68rem;
}

.gpu-vram-tag {
  font-family: var(--font-courier);
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* 3. RAM: Kingston FURY Beast DDR5-6000 Modules */
.el-ram-fury {
  background: linear-gradient(135deg, #171c26 0%, #0d1117 100%);
  border: 1px solid #334155;
  border-top: 3px solid #ec4899;
  border-radius: 6px;
  box-shadow: 
    0 16px 36px rgba(0,0,0,0.7),
    0 0 20px rgba(236, 72, 153, 0.15);
  padding: 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ram-fury-badge {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ram-fury-badge::before {
  content: 'FURY';
  background: linear-gradient(90deg, #ec4899, #a855f7);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 800;
  font-size: 0.65rem;
}

/* 4. SSD: WD_BLACK SN770 M.2 Heatsink */
.el-ssd-wd {
  background: linear-gradient(135deg, #181d28 0%, #0c1017 100%);
  border: 1px solid #334155;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.7);
  padding: 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.wd-black-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wd-black-badge::before {
  content: 'WD_BLACK™';
  background: #f59e0b;
  color: #000;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 900;
  font-size: 0.68rem;
}

/* 5. Audio Boost Sectie met Gouden Condensatoren */
.el-audio-boost {
  background: linear-gradient(145deg, #141824 0%, #0b0f17 100%);
  border: 1px solid #d4af37;
  border-radius: 6px;
  box-shadow: 
    0 0 25px rgba(212, 175, 55, 0.2),
    0 16px 36px rgba(0,0,0,0.7);
  padding: 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 4 Fysieke Gouden Cilinder Condensatoren */
.gold-caps-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.gold-cap-cyl {
  width: 18px;
  height: 24px;
  background: linear-gradient(to right, #b45309 0%, #fde047 50%, #ca8a04 100%);
  border: 1px solid #713f12;
  border-radius: 3px 3px 1px 1px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}
.gold-cap-cyl::before {
  content: '+';
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 900;
  color: #000;
}

/* 6. AMD B650 Chipset Heatsink */
.el-chipset-b650 {
  background: linear-gradient(135deg, #1a202c 0%, #0d1117 100%);
  border: 2px solid #475569;
  border-radius: 8px;
  box-shadow: 
    0 16px 40px rgba(0,0,0,0.8),
    inset 0 0 15px rgba(255,255,255,0.05);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.chipset-dragon-crest {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-courier);
  font-size: 0.72rem;
  font-weight: 800;
  color: #e11d48;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* 7. VRM Extended Heatsink */
.el-vrm-heatsink {
  background: linear-gradient(180deg, #242c3d 0%, #151b27 100%);
  border: 1px solid #64748b;
  border-left: 4px solid #a855f7;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.7);
  padding: 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 8. UEFI BIOS ROM Chip met Debug 7-Segment Code */
.el-bios-chip {
  background: #05080f;
  border: 2px solid #10b981;
  border-radius: 6px;
  box-shadow: 
    0 0 25px rgba(16, 185, 129, 0.25),
    0 16px 40px rgba(0,0,0,0.8);
  padding: 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bios-debug-display {
  background: #000;
  border: 1px solid #10b981;
  color: #10b981;
  font-family: var(--font-courier);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.debug-led-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.5s infinite;
}

/* ==========================================================================
   INLINE TEKST FORMAAT WERKBALK (FLOATING TEXT TOOLBAR)
   ========================================================================== */

.floating-text-toolbar {
  position: absolute;
  display: none;
  background: var(--ui-bg-panel);
  border: 1px solid var(--ui-border-accent);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  gap: 0.35rem;
  align-items: center;
  z-index: 1050;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.floating-text-toolbar.is-active {
  display: flex;
}

.ft-btn {
  background: transparent;
  border: none;
  color: var(--ui-text-main);
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ft-btn:hover {
  background: var(--ui-bg-hover);
  color: var(--ui-accent-blue);
}

.ft-btn.is-active {
  background: var(--ui-accent-blue);
  color: #000;
}

.ft-select {
  background: var(--ui-bg-panel-sub);
  color: var(--ui-text-main);
  border: 1px solid var(--ui-border);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  outline: none;
  cursor: pointer;
}

.ft-color-picker {
  width: 24px;
  height: 24px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}

/* ==========================================================================
   MODALS (AI DATA EXPORT / IMPORT / SPELLCHECK)
   ========================================================================== */

.studio-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.studio-modal-overlay.is-open {
  display: flex;
}

.studio-modal-card {
  background: var(--ui-bg-panel);
  border: 1px solid var(--ui-border-accent);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--ui-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--ui-text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-alert-box {
  background: rgba(56, 189, 248, 0.1);
  border-left: 4px solid var(--ui-accent-blue);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #bae6fd;
}

.modal-alert-box.danger {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: var(--ui-danger);
  color: #fca5a5;
}

.modal-textarea {
  width: 100%;
  height: 220px;
  background: var(--ui-bg-root);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  color: #e2e8f0;
  font-family: var(--font-courier);
  font-size: 0.78rem;
  padding: 0.75rem;
  resize: vertical;
  outline: none;
}

.modal-textarea:focus {
  border-color: var(--ui-accent-blue);
}

.modal-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--ui-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  background: var(--ui-bg-root);
}

/* Toast notification */
.studio-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ui-bg-panel);
  border: 1px solid var(--ui-accent-blue);
  color: #fff;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.studio-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   ZONNESTELSEL & KOSMISCHE ELEMENTEN (HET CULTURELE UNIVERSUM)
   ========================================================================== */

/* Kosmische Planetaire Banen Onderlaag (SVG Orbit Lines) */
.cosmos-orbital-underlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.cosmos-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 1. De Centrale Zon (Matthijs van der Elst) */
.el-sun-core {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #fffbeb 0%, #fde047 35%, #f59e0b 65%, #ea580c 85%, #7c2d12 100%);
  box-shadow: 
    0 0 50px rgba(245, 158, 11, 0.7),
    0 0 100px rgba(234, 88, 12, 0.5),
    0 0 160px rgba(239, 68, 68, 0.35),
    inset 0 0 30px rgba(254, 240, 138, 0.9);
  animation: sunGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes sunGlowPulse {
  0% { box-shadow: 0 0 45px rgba(245, 158, 11, 0.6), 0 0 90px rgba(234, 88, 12, 0.4), inset 0 0 25px rgba(254, 240, 138, 0.8); }
  100% { box-shadow: 0 0 65px rgba(245, 158, 11, 0.85), 0 0 130px rgba(234, 88, 12, 0.6), inset 0 0 40px rgba(254, 240, 138, 1); }
}

/* Roterende Zonnecorona Ring */
.el-sun-core::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(253, 224, 71, 0.6);
  animation: rotateCorona 40s linear infinite;
  pointer-events: none;
}

@keyframes rotateCorona {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Het Portret van Matthijs in de kern */
.sun-portrait-disc {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid #fff;
  box-shadow: 
    0 0 25px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.sun-badge-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid #f59e0b;
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  color: #fef08a;
  white-space: nowrap;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.7);
  z-index: 3;
}

/* 2. De 8 Planeten (De CKV Disciplines) */
.el-planet-card {
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(56, 189, 248, 0.1);
  overflow: visible;
  transition: border-color 0.2s ease;
}

.el-planet-card:hover {
  border-color: rgba(56, 189, 248, 0.6);
}

/* Planeet Header Bar met Kosmische Bol & Manen */
.planet-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* De Ronde Kosmische Planeet Bol */
.planet-sphere-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.planet-sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 
    inset -8px -8px 16px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(56, 189, 248, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.sphere-terra {
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #0284c7 40%, #0f766e 70%, #0f172a 100%);
  box-shadow: inset -6px -6px 14px rgba(0,0,0,0.85), 0 0 16px rgba(56, 189, 248, 0.6);
}
.sphere-mars {
  background: radial-gradient(circle at 35% 35%, #fb7185 0%, #e11d48 45%, #881337 75%, #050508 100%);
  box-shadow: inset -6px -6px 14px rgba(0,0,0,0.85), 0 0 16px rgba(244, 63, 94, 0.6);
}
.sphere-venus {
  background: radial-gradient(circle at 35% 35%, #fde047 0%, #f59e0b 45%, #b45309 75%, #451a03 100%);
  box-shadow: inset -6px -6px 14px rgba(0,0,0,0.85), 0 0 16px rgba(245, 158, 11, 0.6);
}
.sphere-jupiter {
  background: radial-gradient(circle at 35% 35%, #c084fc 0%, #9333ea 45%, #581c87 75%, #0f172a 100%);
  box-shadow: inset -6px -6px 14px rgba(0,0,0,0.85), 0 0 16px rgba(168, 85, 247, 0.6);
}
.sphere-neptune {
  background: radial-gradient(circle at 35% 35%, #67e8f9 0%, #06b6d4 45%, #0e7490 75%, #082f49 100%);
  box-shadow: inset -6px -6px 14px rgba(0,0,0,0.85), 0 0 16px rgba(6, 182, 212, 0.6);
}
.sphere-mercury {
  background: radial-gradient(circle at 35% 35%, #6ee7b7 0%, #10b981 45%, #047857 75%, #022c22 100%);
  box-shadow: inset -6px -6px 14px rgba(0,0,0,0.85), 0 0 16px rgba(16, 185, 129, 0.6);
}
.sphere-saturn {
  background: radial-gradient(circle at 35% 35%, #fed7aa 0%, #f97316 45%, #c2410c 75%, #431407 100%);
  box-shadow: inset -6px -6px 14px rgba(0,0,0,0.85), 0 0 16px rgba(249, 115, 22, 0.6);
}
.sphere-uranus {
  background: radial-gradient(circle at 35% 35%, #bae6fd 0%, #38bdf8 45%, #0284c7 75%, #0c4a6e 100%);
  box-shadow: inset -6px -6px 14px rgba(0,0,0,0.85), 0 0 16px rgba(56, 189, 248, 0.6);
}

/* Optionele Planetaire Ringen (zoals Saturnus) */
.planet-ring-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 24px;
  border: 2px solid rgba(253, 224, 71, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* Planeet Naam & Badge */
.planet-title-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.planet-domain-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planet-main-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

/* De 2 Oplichtende Manen (Concrete Voorbeelden) */
.planet-moons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px 0;
}

.planet-moon-badge {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 12px;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.planet-moon-badge::before {
  content: '🌕';
  font-size: 0.65rem;
}

/* Persoonlijke Reflectie & Toelichting */
.planet-reflection-body {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.4;
  color: #cbd5e1;
  flex: 1;
  white-space: pre-line;
}

.planet-personal-quote {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.35;
}

/* 3. De 4 Constellaties / Sterrenbeelden (De 4 Kernvragen) */
.el-constellation-box {
  width: 100%;
  height: 100%;
  background: rgba(7, 12, 26, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 16px 36px rgba(0,0,0,0.7),
    0 0 25px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

/* Subtiele sterrenlijnen in de hoek */
.el-constellation-box::after {
  content: '✦';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.1rem;
  color: #fde047;
  opacity: 0.7;
  animation: starPulse 2.5s infinite alternate;
}

@keyframes starPulse {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px #fde047); }
}

.constellation-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 4px;
}

.constellation-rule-tag {
  font-family: var(--font-courier);
  font-size: 0.72rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.08em;
}

.constellation-q-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.constellation-q-answer {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #e2e8f0;
  flex: 1;
  white-space: pre-line;
}

/* ==========================================================================
   DRUKKLARE PDF EXPORT STYLING (@media print)
   Verwijdert alle editor balken en print uitsluitend de poster op A3/A4
   ========================================================================== */

@media print {
  @page {
    size: A3 portrait;
    margin: 0mm;
  }

  /* Schakel scrollbars en alle browser interface uit */
  html, body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Verberg alle editor chrome, werkbalken, zijbalken, selectiekaders en modals */
  .studio-header,
  .studio-sidebar,
  .selection-controls,
  .element-quick-bar,
  .floating-text-toolbar,
  .studio-modal-overlay,
  .studio-toast,
  .no-print {
    display: none !important;
  }

  /* De stage vult de volledige pagina zonder padding of achtergrond */
  .studio-main,
  .studio-stage-viewport {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    overflow: visible !important;
  }

  /* Het canvas vult 100% van het blad */
  .poster-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Zorg dat alle tekst en afbeeldingen haarscherp renderen */
  .poster-element {
    outline: none !important;
  }
}
