/* =========================
   SASHA COLOR SYSTEM
========================= */

:root {
  --fur-black: #0B0C0F;
  --fur-shadow: #1C1517;
  --fur-chocolate: #442A25;

  --toe-light: #b6a296;
  --toe-dark: #865c4d;

  --gold-main: #9a9b51; 
  --gold-deep: #95a64e;
  --gold-highlight: #F7C33E;
  --lighter-highlight: #a5ab53;

  --sage-accent: #C8D3AB;
  --rust-accent: #6F432B;

  --text-soft: #C9C7C2;
  --menu-text: #0B0C0F;
  --menu-border-dark: #1C1517;
  --menu-border-light: #b68870;
}

/* =========================
   GLOBAL STYLES
========================= */

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  background: radial-gradient(circle at 20% 10%, var(--fur-chocolate), var(--fur-black) 70%);
  color: var(--text-soft);
  height: 100vh;
  overflow: hidden;
}

/* Subtle retro grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* =========================
   TOP BAR
========================= */

.menubar{
  height: 34px;
  background: linear-gradient(var(--toe-light), var(--toe-dark));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 2px solid rgba(0,0,0,0.35);
  box-sizing: border-box;
}

.menubar-left, .menubar-right{
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-pill{
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--menu-text);
  background: rgba(255,255,255,0.25);
  border: 1px solid var(--menu-border-dark);
  padding: 6px 10px;
  border-radius: 3px;
  box-shadow:
    inset 1px 1px 0 var(--menu-border-light),
    inset -1px -1px 0 rgba(0,0,0,0.35);
}

button.menu-pill{
  cursor: pointer;
}

button.menu-pill:active{
  box-shadow:
    inset -1px -1px 0 var(--menu-border-light),
    inset 1px 1px 0 rgba(0,0,0,0.35);
  transform: translateY(1px);
}

/* Update desktop height since top is now 34px (not 45px) */
.desktop {
  position: relative;
  height: calc(100vh - 34px - 48px);
  overflow: hidden;
}


/* =========================
   DESKTOP WINDOW
========================= */

.window {
  width: 500px;
  background: var(--fur-shadow);
  border: 2px solid var(--fur-chocolate);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.05),
    inset -2px -2px 0 rgba(0,0,0,0.6),
    0 20px 40px rgba(0,0,0,0.6);
  position: absolute;
  top: 100px;
  left: 100px;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.titlebar {
  background: linear-gradient(var(--gold-highlight), var(--lighter-highlight), var(--gold-deep));
  color: var(--fur-black);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-buttons span {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

.window-buttons span:hover {
  color: var(--rust-accent);
}

.window-content {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.window-heading {
  color: var(--gold-main);
  margin-top: 0;
}

.window-content a {
  color: var(--sage-accent);
  text-decoration: none;
}

.window-content a:hover {
  text-decoration: underline;
}

/* =========================
   SASHA BOT PLACEHOLDER
========================= */

.sasha {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: var(--fur-chocolate);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sasha:hover {
  transform: scale(1.05);
}

.window.active {
  border-color: var(--gold-main);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.06),
    inset -2px -2px 0 rgba(0,0,0,0.65),
    0 25px 55px rgba(0,0,0,0.75);
}

.windows { position: relative; height: 100%; }

.window-content {
  flex: 1;
  overflow: auto;          /* ✅ key */
  min-height: 0;           /* ✅ fixes flex overflow clipping */
}

/* make titlebar feel draggable */
.titlebar {
  cursor: grab;
}
.titlebar:active {
  cursor: grabbing;
}


/* Desktop Icons */
.icons {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  grid-auto-rows: min-content;
  gap: 14px;
  z-index: 1;
}

.icon {
  width: 92px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
}

.icon:hover {
  border-color: rgba(200, 211, 171, 0.4); /* sage */
  background: rgba(200, 211, 171, 0.07);
}

.icon-img{
  height: 32px;
  display: block;
  margin: 0 auto 6px;
  image-rendering: pixelated; /* nice for retro icons */
}


.icon-label {
  font-size: 12px;
  line-height: 1.1;
}

.window.minimized,
.window.closed {
  display: none;
}

/* Make titlebar draggable on touch devices */
.titlebar { touch-action: none; cursor: grab; }
.titlebar:active { cursor: grabbing; }

/* Taskbar */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: var(--fur-shadow);
  border-top: 2px solid var(--rust-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 9999;
}

.taskbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.start {
  background: linear-gradient(var(--gold-highlight), var(--gold-deep));
  border: 1px solid rgba(0,0,0,0.35);
  color: var(--fur-black);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
}

.tasks {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: auto;
  max-width: 70vw;
  padding-bottom: 2px;
}

.task {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200, 211, 171, 0.25);
  color: var(--text-soft);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.task.active {
  border-color: rgba(229, 171, 72, 0.6);
  box-shadow: 0 0 0 1px rgba(229, 171, 72, 0.15) inset;
}

.taskbar-right {
  font-family: "IBM Plex Mono", monospace;
  color: var(--sage-accent);
  font-size: 12px;
}
.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

.window.maximized .window-content {
  height: calc(100% - 42px);
  overflow: auto;
}

/* keep sasha above taskbar */
.sasha { z-index: 9998; }

/* list */
.list { margin: 10px 0 0; padding-left: 18px; }
.list li { margin: 6px 0; }
