/* =========================================================
   Y2KAVE_OS — DESKTOP STYLE
   passend zu index.html
   KEINE MATRIX
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --purple-dark: #12001f;
  --purple: #6d18a8;
  --purple-light: #a93bd1;

  --pink: #ff6ec7;
  --pink-light: #ffb4e8;

  --cyan: #00fff2;
  --green: #39ff8f;

  --black: #050008;
  --black2: #0b0012;

  --win-gray: #c7c7d1;
  --win-light: #ffffff;
  --win-dark: #555565;

  --text: #f8eaff;

  --display: "Press Start 2P", monospace;
  --body: "VT323", monospace;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(112, 25, 160, 0.35),
      transparent 45%
    ),
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 40, 170, 0.12),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #030006 0%,
      #10001d 50%,
      #040008 100%
    );

  color: var(--text);

  font-family: var(--body);
  font-size: 20px;

  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 2v21l6-5 4 10 4-2-4-10h8L5 2z' fill='%23ffffff' stroke='%23000000' stroke-width='2'/%3E%3Ccircle cx='24' cy='7' r='3' fill='%23ff6ec7'/%3E%3C/svg%3E")
    4 2,
    auto;
}


/* =========================================================
   BACKGROUND CANVASES
   ========================================================= */

#stars {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 0;

  pointer-events: none;
}


/*
   Wichtig:
   Kein Matrix-Canvas.
   Falls aus einer alten Version noch #matrix existiert,
   wird er hier sicher unsichtbar gemacht.
*/

#matrix {
  display: none !important;
}


/* =========================================================
   CRT EFFECT
   ========================================================= */

.crt {
  position: fixed;
  inset: 0;

  z-index: 80;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      transparent 55%,
      rgba(0, 0, 0, 0.45)
    );
}


/* Scanlines */

.crt::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
}


/* =========================================================
   DESKTOP
   ========================================================= */

.desktop {
  position: relative;

  width: 100%;
  height: 100vh;

  min-height: 550px;

  overflow: hidden;

  z-index: 2;

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(78, 0, 120, 0.18),
      transparent 60%
    );
}


/* =========================================================
   DESKTOP ICONS
   ========================================================= */

.desktop-icons {
  position: absolute;

  top: 22px;
  left: 20px;

  width: 100px;

  display: flex;
  flex-direction: column;

  gap: 18px;

  z-index: 10;
}


.desktop-icon {
  width: 95px;

  padding: 5px 3px;

  border: 0;

  background: transparent;

  color: white;

  font-family: var(--body);

  cursor: pointer;

  text-align: center;

  text-shadow:
    1px 1px #000,
    -1px -1px #000;
}


.desktop-icon:hover {
  background: rgba(95, 20, 130, 0.28);
}


.desktop-icon.selected {
  background: rgba(70, 20, 110, 0.55);

  outline: 1px dotted var(--cyan);
}


.icon-image {
  display: block;

  width: 54px;
  height: 54px;

  margin: 0 auto 5px;

  font-size: 42px;

  line-height: 54px;

  filter:
    drop-shadow(2px 2px 0 #000)
    drop-shadow(0 0 5px rgba(255, 110, 199, 0.4));
}


.icon-name {
  display: block;

  font-family: var(--display);

  font-size: 7px;

  line-height: 1.5;

  color: #fff;

  word-break: break-word;
}


/* =========================================================
   CENTER LOGO
   ========================================================= */

.desktop-center {
  position: absolute;

  top: 11%;
  left: 50%;

  transform: translateX(-50%);

  width: min(700px, 70%);

  text-align: center;

  z-index: 3;

  pointer-events: none;
}


.logo-glitch {
  position: relative;

  display: inline-block;

  font-family: var(--display);

  font-size: clamp(36px, 7vw, 80px);

  letter-spacing: 8px;

  color: var(--pink);

  text-shadow:
    4px 4px 0 var(--purple),
    -3px -3px 0 var(--cyan),
    0 0 20px rgba(255, 110, 199, 0.8),
    0 0 45px rgba(255, 110, 199, 0.35);

  animation: logoPulse 3s ease-in-out infinite;
}


.logo-glitch::before,
.logo-glitch::after {
  content: attr(data-text);

  position: absolute;

  inset: 0;

  pointer-events: none;
}


.logo-glitch::before {
  color: var(--cyan);

  transform: translate(-3px, 1px);

  clip-path: inset(0 0 55% 0);

  opacity: 0.55;

  animation: glitchTop 2.7s infinite steps(2);
}


.logo-glitch::after {
  color: var(--pink);

  transform: translate(3px, -1px);

  clip-path: inset(55% 0 0 0);

  opacity: 0.55;

  animation: glitchBottom 2.2s infinite steps(2);
}


.logo-sub {
  margin-top: 15px;

  font-family: var(--display);

  font-size: 9px;

  letter-spacing: 3px;

  color: var(--cyan);

  text-shadow: 0 0 8px rgba(0, 255, 242, 0.7);
}


.binary {
  margin-top: 15px;

  font-family: var(--display);

  font-size: 7px;

  line-height: 1.8;

  color: rgba(255, 255, 255, 0.35);

  letter-spacing: 1px;
}


@keyframes logoPulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.2);
  }
}


@keyframes glitchTop {
  0%,
  90%,
  100% {
    transform: translate(0);
  }

  92% {
    transform: translate(-5px, -2px);
  }

  94% {
    transform: translate(4px, 1px);
  }
}


@keyframes glitchBottom {
  0%,
  86%,
  100% {
    transform: translate(0);
  }

  88% {
    transform: translate(5px, 2px);
  }

  90% {
    transform: translate(-4px, -1px);
  }
}


/* =========================================================
   SYSTEM INFO
   ========================================================= */

.system-info {
  position: absolute;

  top: 25px;
  right: 25px;

  padding: 12px 15px;

  min-width: 180px;

  background: rgba(3, 0, 8, 0.75);

  border: 1px solid var(--purple);

  box-shadow:
    0 0 12px rgba(130, 40, 190, 0.25),
    inset 0 0 12px rgba(0, 0, 0, 0.7);

  font-family: var(--display);

  font-size: 7px;

  line-height: 2.1;

  color: var(--pink);

  z-index: 10;
}


.system-info .online {
  color: var(--green);

  text-shadow:
    0 0 5px var(--green);
}


/* =========================================================
   WINDOWS — GENERAL
   ========================================================= */

.window {
  position: absolute;

  background: var(--win-gray);

  border: 2px solid #000;

  box-shadow:
    inset 2px 2px 0 var(--win-light),
    inset -2px -2px 0 var(--win-dark),
    8px 8px 0 rgba(0, 0, 0, 0.55);

  color: #08000d;

  z-index: 20;

  display: none;
}


.window.open {
  display: block;
}


/* =========================================================
   Y2KAVE EXPLORER WINDOW
   ========================================================= */

.explorer-window {
  width: min(720px, calc(100vw - 180px));

  height: 470px;

  left: 50%;
  top: 52%;

  transform: translate(-50%, -50%);
}


/* =========================================================
   WINDOW TITLE
   ========================================================= */

.window-title {
  height: 30px;

  padding: 4px 6px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  background:
    linear-gradient(
      90deg,
      #35106a,
      #7020a0 45%,
      #b63cc7 75%,
      #ff65c9
    );

  color: white;

  border-bottom: 2px solid #000;

  font-family: var(--display);

  font-size: 9px;

  text-shadow: 1px 1px #25002f;
}


/* =========================================================
   WINDOW BUTTONS
   ========================================================= */

.window-buttons {
  display: flex;

  gap: 3px;
}


.window-btn {
  width: 20px;
  height: 19px;

  padding: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #c7c7d1;

  border: 1px solid #000;

  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #555;

  color: #000;

  font-family: Arial, sans-serif;

  font-size: 12px;

  font-weight: bold;

  line-height: 1;

  cursor: pointer;
}


.window-btn:active {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #555;
}


/* =========================================================
   MENU BAR
   ========================================================= */

.menu-bar {
  height: 29px;

  display: flex;

  align-items: center;

  gap: 24px;

  padding: 0 10px;

  background: #c7c7d1;

  border-bottom: 1px solid #777;

  color: #160022;

  font-family: var(--body);

  font-size: 18px;
}


.menu-bar span {
  cursor: default;
}


.menu-bar span:first-letter {
  text-decoration: underline;
}


/* =========================================================
   ADDRESS BAR
   ========================================================= */

.address-bar {
  height: 31px;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 4px 7px;

  background: #c7c7d1;

  border-bottom: 2px solid #888;

  color: #12001c;

  font-family: var(--body);

  font-size: 18px;
}


/* =========================================================
   EXPLORER BODY
   ========================================================= */

.explorer-body {
  height: calc(100% - 92px);

  padding: 18px;

  display: grid;

  grid-template-columns: repeat(4, minmax(100px, 1fr));

  align-content: start;

  gap: 18px;

  overflow: auto;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(105, 25, 150, 0.25),
      transparent 60%
    ),
    #10001a;

  border-top: 1px solid #222;

  color: white;
}


/* =========================================================
   FILE ICONS
   ========================================================= */

.file-icon {
  min-height: 105px;

  padding: 8px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: flex-start;

  gap: 4px;

  background: transparent;

  border: 1px solid transparent;

  color: white;

  font-family: var(--body);

  cursor: pointer;

  text-align: center;
}


.file-icon:hover {
  background: rgba(108, 26, 145, 0.25);

  border: 1px dotted var(--cyan);
}


.file-icon.selected {
  background: rgba(73, 10, 105, 0.55);

  border: 1px dotted var(--cyan);

  box-shadow:
    0 0 10px rgba(0, 255, 242, 0.15);
}


.file-icon > span {
  display: block;

  font-size: 40px;

  line-height: 45px;

  filter: drop-shadow(2px 2px #000);
}


.file-icon strong {
  display: block;

  font-family: var(--display);

  font-size: 7px;

  line-height: 1.5;

  color: var(--pink);
}


.file-icon small {
  display: block;

  font-family: var(--body);

  font-size: 15px;

  line-height: 1;

  color: #cdbbd5;
}


/* =========================================================
   STATUS BAR
   ========================================================= */

.status-bar {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 31px;

  padding: 5px 8px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  background: #c7c7d1;

  border-top: 2px solid #000;

  box-shadow:
    inset 1px 1px #fff;

  color: #18001f;

  font-family: var(--body);

  font-size: 17px;
}


/* =========================================================
   SMALL POPUP WINDOW
   ========================================================= */

.small-window {
  width: min(500px, calc(100vw - 40px));

  min-height: 250px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);
}


.small-window-body {
  min-height: 210px;

  padding: 20px;

  background:
    radial-gradient(
      circle at center,
      rgba(87, 16, 120, 0.3),
      transparent 70%
    ),
    #0b0012;

  color: white;

  font-family: var(--body);

  font-size: 21px;

  line-height: 1.2;
}


.popup-heading {
  margin-bottom: 18px;

  color: var(--cyan);

  font-family: var(--display);

  font-size: 11px;

  text-shadow: 0 0 8px rgba(0, 255, 242, 0.5);
}


.green-text {
  color: var(--green);

  text-shadow: 0 0 5px rgba(57, 255, 143, 0.5);
}


.pink-text {
  color: var(--pink);
}


.hint {
  color: #b9a4c4;

  font-style: italic;
}


/* =========================================================
   SYSTEM LIST
   ========================================================= */

.system-list {
  margin-top: 15px;

  padding: 12px;

  background: #050008;

  border: 1px solid var(--purple);

  color: var(--cyan);

  line-height: 1.7;
}


/* =========================================================
   PLAYER
   ========================================================= */

.player {
  padding: 15px;

  background: #030006;

  border: 2px solid var(--purple);

  box-shadow:
    inset 0 0 15px rgba(130, 30, 180, 0.25);
}


.player-screen {
  padding: 14px;

  margin-bottom: 12px;

  background: #020804;

  border: 1px solid var(--green);

  color: var(--green);

  font-family: var(--display);

  font-size: 8px;

  text-align: center;
}


.player-buttons {
  display: flex;

  justify-content: center;

  gap: 5px;
}


.player-buttons button {
  min-width: 45px;
  height: 30px;

  background: #c7c7d1;

  border: 2px solid #000;

  cursor: pointer;
}


.volume {
  margin-top: 12px;

  color: var(--cyan);

  font-family: var(--display);

  font-size: 7px;

  text-align: center;
}


/* =========================================================
   CONNECTION
   ========================================================= */

.connection-list {
  padding: 12px;

  background: #030006;

  border: 1px solid var(--green);
}


.connection-list p {
  margin: 8px 0;
}


/* =========================================================
   SHUTDOWN
   ========================================================= */

.shutdown-screen {
  height: 180px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  color: var(--pink);

  font-family: var(--display);

  font-size: 12px;

  line-height: 2;
}


.shutdown-small {
  color: var(--cyan);

  font-family: var(--body);

  font-size: 22px;
}


/* =========================================================
   START MENU
   ========================================================= */

.start-menu {
  position: absolute;

  left: 6px;
  bottom: 48px;

  width: 300px;

  display: none;

  background: #c7c7d1;

  border: 2px solid #000;

  box-shadow:
    inset 2px 2px #fff,
    inset -2px -2px #555,
    7px 7px rgba(0, 0, 0, 0.55);

  z-index: 70;
}


.start-menu.open {
  display: flex;
}


/* Left vertical Y2KAVE strip */

.start-side {
  width: 42px;

  padding: 10px 5px;

  display: flex;

  align-items: flex-end;

  justify-content: center;

  writing-mode: vertical-rl;

  transform: rotate(180deg);

  background:
    linear-gradient(
      180deg,
      #3c0b6e,
      #9e2fb6,
      #ff63c9
    );

  color: white;

  font-family: var(--display);

  font-size: 10px;

  letter-spacing: 2px;
}


.start-content {
  flex: 1;

  padding: 7px;
}


.start-content button {
  width: 100%;

  height: 38px;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 5px 9px;

  background: transparent;

  border: 1px solid transparent;

  color: #12001c;

  font-family: var(--body);

  font-size: 20px;

  text-align: left;

  cursor: pointer;
}


.start-content button:hover {
  background:
    linear-gradient(
      90deg,
      #6d18a8,
      #c13fc7
    );

  color: white;
}


.start-content button span {
  flex: 1;
}


.start-separator {
  height: 2px;

  margin: 5px 3px;

  background: #777;

  box-shadow: 0 1px #fff;
}


/* =========================================================
   TASKBAR
   ========================================================= */

.taskbar {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 46px;

  display: flex;

  align-items: center;

  gap: 7px;

  padding: 4px 6px;

  background: #c7c7d1;

  border-top: 2px solid #fff;

  box-shadow:
    0 -2px 0 #000;

  color: #000;

  font-family: var(--display);

  font-size: 8px;

  z-index: 90;
}


/* =========================================================
   START BUTTON
   ========================================================= */

.start-button {
  height: 35px;

  min-width: 95px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  padding: 4px 10px;

  background:
    linear-gradient(
      #ef91dc,
      #96277f
    );

  border: 2px solid #000;

  box-shadow:
    inset 1px 1px #ffd0f3,
    inset -1px -1px #4c0742;

  color: white;

  font-family: var(--display);

  font-size: 8px;

  cursor: pointer;
}


.start-button:active {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #555;

  transform: translate(1px, 1px);
}


/* =========================================================
   WINDOWS LOGO
   ========================================================= */

.windows-logo {
  width: 18px;
  height: 18px;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1px;

  transform: skewY(-5deg);
}


.windows-logo i {
  display: block;

  background: var(--cyan);

  border: 1px solid #000;
}


.windows-logo i:nth-child(2) {
  background: var(--pink);
}


.windows-logo i:nth-child(3) {
  background: var(--pink);
}


.windows-logo i:nth-child(4) {
  background: var(--cyan);
}


/* =========================================================
   TASK DIVIDER
   ========================================================= */

.task-divider {
  width: 2px;
  height: 31px;

  background: #777;

  box-shadow: 1px 0 #fff;
}


/* =========================================================
   TASK ITEM
   ========================================================= */

.task-item {
  height: 34px;

  min-width: 190px;

  padding: 5px 12px;

  background: #b7b7c1;

  border: 2px inset #aaa;

  color: #12001c;

  font-family: var(--display);

  font-size: 7px;

  cursor: pointer;

  text-align: left;

  overflow: hidden;

  white-space: nowrap;
}


.task-item.active {
  background: #aaaab5;

  border:
    2px inset #777;
}


/* =========================================================
   TASK SPACER
   ========================================================= */

.task-spacer {
  flex: 1;
}


/* =========================================================
   SYSTEM TRAY
   ========================================================= */

.tray {
  height: 34px;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 4px 9px;

  background: #b7b7c1;

  border: 2px inset #aaa;

  color: #18001f;

  font-family: var(--display);

  font-size: 8px;
}


.tray-divider {
  width: 1px;
  height: 20px;

  background: #777;

  box-shadow: 1px 0 #fff;
}


.online-dot {
  color: var(--green);

  text-shadow:
    0 0 5px var(--green);
}


#clock {
  min-width: 36px;

  text-align: center;
}


/* =========================================================
   SCROLLBARS
   ========================================================= */

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}


::-webkit-scrollbar-track {
  background: #c7c7d1;

  border: 1px solid #777;
}


::-webkit-scrollbar-thumb {
  background:
    linear-gradient(
      135deg,
      #ff8bd8,
      #8d2aa2
    );

  border: 2px solid #000;

  box-shadow:
    inset 1px 1px #ffd5f4,
    inset -1px -1px #4b1245;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
  background: var(--pink);

  color: #100018;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .desktop-icons {
    left: 10px;

    gap: 12px;
  }


  .desktop-center {
    top: 10%;

    width: 65%;
  }


  .system-info {
    right: 12px;

    top: 12px;

    min-width: 160px;
  }


  .explorer-window {
    width: min(680px, calc(100vw - 150px));

    height: 430px;
  }


  .explorer-body {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
}


@media (max-width: 650px) {

  .desktop {
    min-height: 500px;
  }


  .desktop-icons {
    width: 75px;

    gap: 8px;
  }


  .desktop-icon {
    width: 75px;
  }


  .icon-image {
    width: 45px;
    height: 45px;

    font-size: 34px;

    line-height: 45px;
  }


  .icon-name {
    font-size: 6px;
  }


  .desktop-center {
    top: 15%;

    width: 75%;
  }


  .logo-glitch {
    font-size: 32px;

    letter-spacing: 4px;
  }


  .logo-sub {
    font-size: 7px;
  }


  .binary {
    display: none;
  }


  .system-info {
    display: none;
  }


  .explorer-window {
    left: 50%;
    top: 47%;

    width: calc(100vw - 100px);

    height: 410px;
  }


  .explorer-body {
    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

    padding: 10px;
  }


  .file-icon {
    min-height: 95px;
  }


  .file-icon > span {
    font-size: 32px;
  }


  .file-icon strong {
    font-size: 6px;
  }


  .file-icon small {
    font-size: 13px;
  }


  .task-item {
    min-width: 120px;
  }


  .tray span[title] {
    display: none;
  }


  .start-menu {
    width: 270px;
  }
}


@media (max-width: 450px) {

  .desktop-icons {
    top: 10px;
    left: 5px;

    gap: 4px;
  }


  .desktop-icon {
    width: 65px;
  }


  .icon-image {
    font-size: 28px;
  }


  .icon-name {
    font-size: 5px;
  }


  .desktop-center {
    top: 9%;

    left: 55%;

    width: 70%;
  }


  .logo-glitch {
    font-size: 24px;

    letter-spacing: 2px;
  }


  .logo-sub {
    font-size: 6px;

    letter-spacing: 1px;
  }


  .explorer-window {
    width: calc(100vw - 85px);

    height: 390px;
  }


  .menu-bar {
    gap: 12px;

    font-size: 15px;
  }


  .address-bar {
    font-size: 15px;
  }


  .task-item {
    display: none;
  }


  .start-button {
    min-width: 82px;
  }


  .start-menu {
    left: 4px;

    width: 250px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;

    transition: none !important;
  }
}