/* ════════════════════════════════════
   BASE
════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  height: 100vh;
  background: #000;
  user-select: none;
}

/* ════════════════════════════════════
   DESKTOP + WALLPAPER
════════════════════════════════════ */
.xp-desktop {
  position: fixed;
  inset: 0 0 44px 0;
  background: url('./assets/bliss.jpg') center/cover no-repeat;
  overflow: hidden;
}

/* ════════════════════════════════════
   DESKTOP ICONS
════════════════════════════════════ */
.desktop-icons {
  position: absolute;
  top: 16px; left: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.desktop-icon {
  display: flex; flex-direction: column; align-items: center;
  width: 72px; cursor: pointer; gap: 4px;
  border-radius: 4px; padding: 4px;
  transition: background .15s;
}
.desktop-icon:hover  { background: rgba(255,255,255,.18); }
.desktop-icon:active { background: rgba(255,255,255,.32); }
.icon-img { font-size: 36px; line-height: 1; }
.desktop-icon span {
  font-size: 11px; color: #fff;
  text-shadow: 0 1px 3px #000, 0 0 6px #000;
  text-align: center; word-break: break-word;
}

/* ════════════════════════════════════
   GENERIC WINDOW
════════════════════════════════════ */
.win-window {
  position: absolute;
  display: flex; flex-direction: column;
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.15);
  min-width: 320px; min-height: 220px;
  transition: box-shadow .15s;
  z-index: 10;
}
.win-window.focused {
  box-shadow: 0 12px 60px rgba(0,120,215,.5), 0 0 0 1px rgba(255,255,255,.25);
  z-index: 20;
}
.win-window.hidden { display: none; }
.win-window.minimized { display: none; }
.win-window.maximized {
  left: 0 !important; top: 0 !important;
  width: 100% !important; height: 100% !important;
  border-radius: 0;
}

/* ════════════════════════════════════
   AERO GLASS TITLEBAR
════════════════════════════════════ */
.aero-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 32px; padding: 0 6px 0 8px;
  flex-shrink: 0; cursor: move;

  /* Real glass look */
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.45) 0%,
      rgba(180,210,255,.28) 40%,
      rgba(100,160,255,.18) 70%,
      rgba(60,120,220,.22) 100%);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.titlebar-left {
  display: flex; align-items: center; gap: 6px;
  overflow: hidden; min-width: 0;
}
.window-icon { font-size: 14px; flex-shrink: 0; }
.window-title {
  font-size: 12px; font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.window-controls { display: flex; gap: 3px; flex-shrink: 0; }
.control-btn {
  width: 21px; height: 21px;
  border: none; border-radius: 4px;
  font-size: 11px; font-weight: bold; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: filter .1s;
}
.control-min  { background: linear-gradient(180deg,#e8e8e8,#c0c0c0); color:#333; }
.control-max  { background: linear-gradient(180deg,#e8e8e8,#c0c0c0); color:#333; }
.control-close{ background: linear-gradient(180deg,#f66,#c00); color:#fff; }
.control-btn:hover { filter: brightness(1.2); }
.control-btn:active { filter: brightness(.85); }

/* ════════════════════════════════════
   WINDOW BODY
════════════════════════════════════ */
.win-body {
  flex: 1; display: flex; flex-direction: column;
  background: rgba(15,20,35,.88);
  backdrop-filter: blur(8px);
  overflow: hidden;
  min-height: 0;
}

/* ════════════════════════════════════
   RESIZE HANDLE
════════════════════════════════════ */
.resize-handle {
  position: absolute; bottom: 0; right: 0;
  width: 16px; height: 16px;
  cursor: se-resize;
  background:
    linear-gradient(135deg,
      transparent 50%,
      rgba(255,255,255,.35) 50%,
      rgba(255,255,255,.35) 60%,
      transparent 60%,
      transparent 70%,
      rgba(255,255,255,.35) 70%,
      rgba(255,255,255,.35) 80%,
      transparent 80%);
}

/* ════════════════════════════════════
   FOTOVERKENNER INTERNALS
════════════════════════════════════ */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; gap: 8px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.nav-btn {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #dde; border-radius: 4px; padding: 3px 12px;
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.nav-btn:hover { background: rgba(255,255,255,.22); }
.viewer-meta { text-align: center; min-width: 0; flex: 1; }
.meta-title  { display: block; font-size: 12px; color: #adf; font-weight: 600; }
.meta-count  { font-size: 11px; color: #889; }

.viewer-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 0;
}
.photo-frame {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; margin: 0;
}
.photo-frame img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
  image-rendering: pixelated;
}
.stage-hit {
  position: absolute; top: 0; bottom: 0; width: 48px;
  background: none; border: none;
  font-size: 36px; color: rgba(255,255,255,.35);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.stage-hit:hover { color: #fff; background: rgba(255,255,255,.08); }
.stage-hit-left  { left: 0; }
.stage-hit-right { right: 0; }

.filmstrip-shell {
  height: 72px; border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.3); flex-shrink: 0;
}
.filmstrip {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  padding: 6px; gap: 5px;
  scroll-behavior: smooth;
}
.filmstrip::-webkit-scrollbar { height: 4px; }
.filmstrip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 2px; }
.thumb {
  flex-shrink: 0; border: 2px solid transparent;
  background: transparent; border-radius: 3px;
  cursor: pointer; padding: 1px; transition: border-color .12s;
  height: 56px; width: 56px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; image-rendering: pixelated; }
.thumb:hover  { border-color: rgba(255,255,255,.4); }
.thumb.active { border-color: #4af; }

/* ════════════════════════════════════
   ABOUT / DEZE COMPUTER
════════════════════════════════════ */
.about-body {
  display: flex; gap: 24px; padding: 24px; align-items: flex-start;
}
.about-avatar img {
  width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid rgba(100,180,255,.5);
  box-shadow: 0 0 20px rgba(80,160,255,.4);
  flex-shrink: 0;
}
.about-content { flex: 1; min-width: 0; }
.about-content h2 {
  font-size: 24px; color: #e8f4ff;
  text-shadow: 0 0 20px rgba(100,200,255,.5);
  margin-bottom: 4px;
}
.about-tagline { font-size: 12px; color: #8ab; margin-bottom: 14px; }
.about-divider { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 12px 0; }
.about-content p { font-size: 13px; color: #bcd; line-height: 1.6; margin-bottom: 10px; }
.about-specs { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.spec-row { display: flex; gap: 12px; font-size: 12px; }
.spec-label { color: #6af; min-width: 70px; font-weight: 600; }
.spec-val   { color: #cde; }

/* ════════════════════════════════════
   FLIP 3D OVERLAY (ALT+TAB)
════════════════════════════════════ */
.flip3d-overlay {
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  perspective: 1200px;
}
.flip3d-overlay[hidden] { display: none !important; }
.flip3d-scene {
  position: relative;
  width: 560px; height: 380px;
  transform-style: preserve-3d;
}
.flip3d-card {
  position: absolute; inset: 0;
  border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94), opacity .35s, filter .35s;
  cursor: pointer;
  backface-visibility: hidden;
}
.flip3d-card canvas, .flip3d-card .card-preview {
  width: 100%; height: 100%; object-fit: cover;
}
.flip3d-card .card-preview {
  background: rgba(15,20,35,.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.flip3d-label {
  margin-top: 28px;
  font-size: 18px; font-weight: 600; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.flip3d-hint {
  margin-top: 6px;
  font-size: 11px; color: rgba(255,255,255,.45);
}

/* ════════════════════════════════════
   TASKBAR
════════════════════════════════════ */
.xp-taskbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 44px;
  display: flex; align-items: center; gap: 0;
  background: linear-gradient(180deg, #1c5ea8 0%, #1a4e94 40%, #1652a0 60%, #1c5ea8 100%);
  box-shadow: 0 -2px 8px rgba(0,0,0,.5);
  z-index: 8000; padding: 0 4px;
}
.start-btn {
  display: flex; align-items: center; gap: 5px;
  background: linear-gradient(180deg,#5cb85c,#3a9a3a,#2e8b2e);
  border: none; border-radius: 0 12px 12px 0;
  padding: 6px 14px 6px 10px; height: 34px;
  font-size: 14px; font-style: italic; font-weight: 900;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5);
  cursor: pointer; box-shadow: 2px 0 6px rgba(0,0,0,.4);
  margin-right: 4px;
}
.start-btn:hover { filter: brightness(1.15); }
.start-logo { font-size: 16px; }

.taskbar-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,.2); margin: 0 4px;
}
.taskbar-tasks {
  flex: 1; display: flex; gap: 3px; overflow: hidden;
  align-items: center; height: 100%;
}
.taskbar-app {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px; padding: 3px 10px; height: 28px;
  font-size: 12px; color: #fff; cursor: pointer;
  white-space: nowrap; max-width: 180px; overflow: hidden;
  text-overflow: ellipsis; transition: background .12s;
}
.taskbar-app:hover  { background: rgba(255,255,255,.25); }
.taskbar-app.active { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.4); }

.taskbar-tray {
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px;
  border-left: 1px solid rgba(255,255,255,.2);
}
.tray-icon { font-size: 14px; cursor: default; }
.tray-clock { color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ════════════════════════════════════
   START MENU
════════════════════════════════════ */
.start-menu {
  position: fixed; bottom: 44px; left: 0;
  width: 280px; z-index: 8500;
  background: linear-gradient(135deg, #1a5bb0, #1237a0);
  border-radius: 0 8px 0 0;
  box-shadow: 4px -4px 20px rgba(0,0,0,.6);
  overflow: hidden;
}
.start-menu[hidden] { display: none; }
.start-menu-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: linear-gradient(90deg,#1a3a80,#2a6ad0);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.start-user-icon { font-size: 28px; }
.start-menu-header span { color:#fff; font-weight:700; font-size:14px; }
.start-menu-body { padding: 8px 0; }
.start-col { display: flex; flex-direction: column; }
.start-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 16px; color: #dde; font-size: 13px; cursor: pointer;
  transition: background .12s;
}
.start-item:hover { background: rgba(255,255,255,.18); }
.start-item span { font-size: 16px; }
hr { border-color: rgba(255,255,255,.15); margin: 4px 0; }
.start-menu-footer {
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex; justify-content: flex-end;
}
.start-menu-footer button {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: #dde; border-radius: 4px; padding: 4px 10px;
  font-size: 12px; cursor: pointer;
}

/* ════════════════════════════════════
   BODY DRAG CURSOR
════════════════════════════════════ */
body.dragging { cursor: move !important; }
body.resizing { cursor: se-resize !important; }
