/* Reference-accurate layer for the exported Figma screens. */

:root {
  --workspace-glass: rgb(183 198 218 / 76%);
  --workspace-line: rgb(47 77 119 / 32%);
}

body {
  background-image:
    linear-gradient(rgb(254 254 254 / 68%), rgb(254 254 254 / 68%)),
    url("assets/paper-texture.png");
  background-position: 0 0, 0 0;
  background-size: auto, 475px 315px;
  background-repeat: repeat, repeat;
}

.slide-kicker { display: none; }

.workspace-topbar .icon-button img,
.workspace-dock img,
.profile-panel__title img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Step 12: the workspace remains a desktop, not a dashboard. */
.workspace-app {
  overflow: hidden;
  background-color: #e9e6da;
  background-image:
    linear-gradient(rgb(233 230 218 / 52%), rgb(233 230 218 / 52%)),
    url("assets/paper-texture.png");
  background-position: 0 0, 0 0;
  background-size: auto, 475px 315px;
  background-repeat: repeat, repeat;
}

.workspace-topbar {
  top: 10px;
  right: 40px;
  left: 40px;
  height: 32px;
  gap: 14px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: rgb(173 190 211 / 62%);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.workspace-topbar button { font-size: 14px; }
.workspace-brand { flex: none; font-weight: 500; }
.workspace-topbar nav { display: flex; gap: 14px; }
.workspace-tools { gap: 12px; }

.workspace-tools .icon-button {
  width: 20px;
  height: 20px;
  padding: 1px;
  border: 0;
  border-radius: 0;
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 18px;
}

.workspace-tools .icon-button:hover,
.workspace-tools .icon-button:focus-visible {
  color: #ef3f43;
  background: transparent;
  transform: translateY(-1px);
}

.workspace-dock { top: 72px; left: 58px; gap: 26px; }
.workspace-dock--right { right: 55px; left: auto; }

.workspace-dock button {
  display: grid;
  width: 74px;
  justify-items: center;
  gap: 3px;
  padding: 0;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 2px 4px rgb(0 0 0 / 44%);
}

.workspace-dock button:hover,
.workspace-dock button:focus-visible {
  color: #2f4d77;
  transform: translateY(-2px);
}

.workspace-dock span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 0;
}

.workspace-dock img {
  color: currentColor;
  filter: brightness(0) invert(1) drop-shadow(0 2px 2px rgb(0 0 0 / 35%));
}

.workspace-dock button:hover img,
.workspace-dock button:focus-visible img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(19%) saturate(1807%) hue-rotate(173deg) brightness(91%);
}

.workspace-view { inset: 42px 0 0; }

.workspace-hero {
  top: 9%;
  left: 70%;
  width: min(570px, 52vw);
  height: 84%;
}

.workspace-hero > span {
  top: 22%;
  width: min(454px, 36vw);
  filter: none;
  opacity: 1;
}

.workspace-hero img { height: 92%; }
.workspace-hero strong { display: none; }
.desktop-widgets { display: none; }

.workspace-player {
  position: absolute;
  z-index: 45;
  top: 32%;
  right: 0;
  width: 32px;
  height: 380px;
  overflow: hidden;
  border-radius: 28px 0 0 28px;
  color: #fff;
  background: #2f4d77;
  box-shadow: -7px 8px 0 rgb(47 77 119 / 18%);
  transition: width 360ms cubic-bezier(.16, 1, .3, 1);
}

.workspace-player::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "Lo - Fi Work By Aslan";
  font-size: 13px;
  line-height: 1;
  writing-mode: vertical-rl;
}

.workspace-player > * { opacity: 0; transition: opacity 160ms ease; }
.workspace-player:hover,
.workspace-player:focus-within { width: 108px; }
.workspace-player:hover::before,
.workspace-player:focus-within::before { opacity: 0; }
.workspace-player:hover > *,
.workspace-player:focus-within > * { opacity: 1; }

.workspace-player > img {
  width: 76px;
  height: 76px;
  margin: 20px 16px 8px;
  border-radius: 9px;
  object-fit: cover;
}

.workspace-player > div {
  display: grid;
  gap: 2px;
  padding: 0 10px;
  font-size: 12px;
  text-align: center;
}

.workspace-player__controls {
  display: flex !important;
  justify-content: center;
  gap: 7px !important;
  margin-top: 12px;
  font-size: 13px !important;
  white-space: nowrap;
}

.workspace-player__controls button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.workspace-player__controls button:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

/* Steps 13, 15 and 16: centered translucent desktop windows. */
.finder-window,
.preview-window,
.editor-window {
  top: 20px;
  right: 16%;
  bottom: 30px;
  left: 16%;
  border: 0;
  border-radius: 20px;
  background: var(--workspace-glass);
  box-shadow: none;
  backdrop-filter: blur(15px);
}

.finder-window > header,
.preview-window > header {
  height: 40px;
  padding: 0 24px;
  background: rgb(160 177 201 / 64%);
}

.finder-window > header i,
.preview-window > header i {
  width: 19px;
  height: 19px;
  background: #ef0808;
}

.finder-sidebar {
  top: 40px;
  width: 234px;
  padding: 48px 5px 18px;
  border-right: 1px solid rgb(17 17 17 / 35%);
  background: rgb(224 224 224 / 76%);
}

.finder-sidebar button {
  margin-bottom: 7px;
  padding: 5px 30px;
  border-radius: 10px;
  font-size: 17px;
}

.finder-sidebar button.is-active { background: rgb(128 128 128 / 62%); }

.finder-files {
  top: 40px;
  left: 234px;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 24px;
  padding: 34px 56px;
}

.file-tile {
  min-height: 92px;
  border-radius: 0;
  color: #fff;
  background: transparent;
  text-shadow: 0 2px 4px rgb(0 0 0 / 34%);
}

.file-tile span { font-size: 52px; }

.file-tile:hover,
.file-tile:focus-visible {
  color: #2f4d77;
  background: rgb(255 255 255 / 22%);
}

.profile-panel {
  width: min(575px, 66vw);
  height: calc(100% - 8px);
  border-radius: 0 0 20px 20px;
  background: rgb(183 198 218 / 68%);
  box-shadow: none;
}

.profile-panel__title {
  top: 34px;
  left: 42px;
  gap: 18px;
  font-size: 29px;
}

.profile-panel__title span { width: 68px; height: 68px; font-size: 0; }

.profile-panel__title img {
  color: #ef4044;
  filter: brightness(0) saturate(100%) invert(37%) sepia(75%) saturate(2456%) hue-rotate(334deg) brightness(103%);
}

.profile-art { inset: 6% 0 15%; }
.profile-art span { top: 32%; width: 62%; filter: blur(18px); opacity: .36; }
.profile-panel > strong { bottom: 10%; }
.preview-window > img { height: calc(100% - 40px); }

.editor-window {
  grid-template-columns: 234px 1fr;
  background: rgb(220 220 220 / 86%);
}

.editor-outline {
  padding: 54px 5px 18px;
  border-right: 1px solid rgb(17 17 17 / 35%);
}

.editor-outline button {
  padding: 6px 30px;
  border-radius: 10px;
  font-size: 16px;
}

.editor-main { padding: 70px clamp(34px, 7vw, 110px); }
.profile-popover { top: 50px; right: 40px; }
.workspace-toast { right: 46px; bottom: 28px; }

@media (max-width: 760px) {
  .workspace-topbar {
    top: 10px;
    right: 20px;
    left: 20px;
    height: 32px;
    justify-content: flex-end;
    padding: 0 10px;
  }

  .workspace-brand,
  .workspace-topbar nav { display: none; }
  .workspace-tools { margin-left: 0; }
  .workspace-tools .icon-button { width: 22px; height: 22px; }
  .workspace-tools .icon-button[data-workspace-close] { display: none; }

  .workspace-dock,
  .workspace-dock--right {
    top: 72px;
    right: auto;
    left: 26px;
    display: grid;
    width: 74px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .workspace-dock--right { left: 120px; }
  .workspace-dock button { width: 72px; font-size: 12px; }
  .workspace-dock span { width: 42px; height: 42px; }
  .workspace-view { inset: 42px 0 0; }

  .workspace-hero {
    top: 21%;
    left: 50%;
    width: 100vw;
    height: 72%;
  }

  .workspace-hero > span { top: 20%; width: 108vw; }
  .workspace-hero img { height: 92%; }
  .workspace-hero strong { display: none; }

  .workspace-player,
  .workspace-player:hover,
  .workspace-player:focus-within {
    top: auto;
    right: 34px;
    bottom: 0;
    left: 34px;
    display: grid;
    width: auto;
    height: 108px;
    grid-template-columns: 76px 1fr;
    grid-template-rows: 52px 34px;
    column-gap: 12px;
    padding: 10px 14px;
    border-radius: 28px 28px 0 0;
    box-shadow: none;
  }

  .workspace-player::before { display: none; }
  .workspace-player > * { opacity: 1; }
  .workspace-player > img { grid-row: 1 / 3; width: 76px; height: 76px; margin: 0; }
  .workspace-player > div { align-content: center; padding: 0; text-align: left; }
  .workspace-player__controls {
    justify-content: flex-start;
    margin-top: 0;
    font-size: 15px !important;
  }

  .finder-window,
  .preview-window,
  .editor-window {
    top: 14px;
    right: 8px;
    bottom: 116px;
    left: 8px;
    border-radius: 14px;
  }

  .finder-sidebar {
    top: 40px;
    right: 0;
    bottom: auto;
    width: auto;
    height: 50px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 7px;
    border-right: 0;
    border-bottom: 1px solid rgb(17 17 17 / 24%);
  }

  .finder-sidebar button {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 9px;
    font-size: 10px;
  }

  .finder-files {
    top: 90px;
    left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .profile-panel { width: calc(100% - 16px); height: calc(100% - 116px); }
  .profile-panel__title { top: 18px; left: 20px; }
  .profile-panel__title span { width: 44px; height: 44px; }
  .profile-switch { overflow-x: auto; justify-content: flex-start; }
  .preview-window > img { object-fit: cover; object-position: top center; }
  .editor-window { grid-template-columns: 104px 1fr; }
  .editor-outline { padding: 24px 5px; }
  .editor-outline button { padding: 7px 5px; font-size: 10px; }
  .editor-main { padding: 24px 10px; }
  .profile-popover { top: 50px; right: 8px; width: calc(100% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-player,
  .workspace-dock button { transition: none; }
}
