/*  WebPooper2000 — Fecal Princess Desktop (Full-Window Mode)
    One giant idiot window for fools who worship glittery sewage.
*/

/* ========================================
 *  1. Settings / variables
 * ===================================== */

:root {
  /* Base background colors */
  --bg-deep: #130018;
  --bg-mid: #2b0633;
  --bg-acid: #283311;
  --bg-mud: #3a2410;
  --bg-bruised: #121e3a;

  /* Main text colors */
  --text-main: #ffeefc;
  --text-soft: #f8c5ff;
  --text-gross: #f9ffb0;
  --text-warning: #ffbaba;

  /* Fecal palette */
  --poop-dark: #4e2b07;
  --poop-mid: #7a4a12;
  --piss-bright: #fff27e;

  /* Hyper-girly candy */
  --candy-pink: #ff66c4;
  --candy-pink-soft: #ff9ad9;
  --candy-lilac: #c58bff;
  --candy-blue: #7ed5ff;
  --candy-mint: #baffd3;
  --candy-orange: #ffb36d;

  /* Hover color set */
  --hover-pink: #ff3f9b;
  --hover-green: #79ff4f;
  --hover-yellow: #fff27e;
  --hover-cyan: #6ffcff;
  --hover-purple: #e091ff;
  --hover-red: #ff4b6e;

  /* Window chrome */
  --chrome-top: #56146a;
  --chrome-bottom: #2b0633;
  --chrome-border: rgba(255, 214, 245, 0.9);

  /* Radii */
  --radius-outer: 26px;
  --radius-inner: 18px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-heavy: 0 26px 48px rgba(0, 0, 0, 0.85);
  --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.7);

  /* Fonts */
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-girl: "Comic Sans MS", "Comic Neue", system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, Monaco, Consolas, monospace;
}

/* ========================================
 *  2. Global base
 * ===================================== */

/* ===== RESET / BASE ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
}

body.wp2k-desktop {
  margin: 0;
  min-width: 1024px; /* proudly desktop-only */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 3% 0%, #ff9ad9 0, transparent 55%),
    radial-gradient(circle at 100% 15%, #7ed5ff 0, transparent 55%),
    radial-gradient(circle at 0% 100%, #b4ff5c 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #ffb36d 0, transparent 55%),
    radial-gradient(circle at 50% 50%, #3a2410 0, transparent 65%),
    #130018;
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 18px;
  overflow: hidden; /* scroll is on the big window */
}

/* ========================================
 *  3. Desktop layout (background, desktop icon, main area, taskbar)
 * ===================================== */

/* ===== BACKGROUND IMAGE LAYER ===== */

.desktop-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.desktop-bg__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.1) brightness(0.8);
  transform: scale(1.02);
}

/* slime + smear overlay */
.desktop-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(255, 214, 245, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(40, 51, 17, 0.4), transparent 45%, rgba(58, 36, 16, 0.5)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 30%, rgba(0, 0, 0, 0.9));
  mix-blend-mode: soft-light;
}

/* TV static noise */
.desktop-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/img/noise.png");
  opacity: 0.16;
  mix-blend-mode: soft-light;
}

/* ===== ROOT LAYOUT (PATCH) ===== */

/* lock layout to viewport */
.main-window-area {
  flex: 1;
  padding: 16px 18px 10px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0; /* important for inner scroll in flex */
  position: relative;
  z-index: 1;
}

/* reserve space for fixed bottom bar */
.wp2k-desktop::after {
  content: "";
  height: 52px;
  flex-shrink: 0;
}

/* ===== DESKTOP ICON ===== */

.desktop-icon {
  position: fixed;
  z-index: 2;
  top: 18px;
  left: 18px;
  width: 120px;
  padding: 10px 10px 12px;
  border-radius: 18px;
  border: 2px solid rgba(255, 214, 245, 0.85);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  text-align: center;
  display: none; /* shown via .is-open */
}

.desktop-icon.is-open {
  display: block;
}

.desktop-icon__img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px solid rgba(255, 214, 245, 0.85);
  object-fit: cover;
  display: block;
  margin: 0 auto 6px;
}

.desktop-icon__label {
  font-family: var(--font-girl);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-gross);
}

/* ===== BOTTOM TASKBAR ===== */

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(11, 0, 18, 0.96), rgba(12, 0, 16, 0.98));
  border-top: 2px solid rgba(255, 214, 245, 0.7);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9);
}

/* pill utility (status, taskbar chips, etc.) */
.pill,
.bottom-bar__pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 214, 245, 0.8);
  background: rgba(0, 0, 0, 0.5);
}

/* primary pill styling if you ever want to reuse the Start look */
.pill--primary {
  border-color: var(--poop-dark);
  background: radial-gradient(circle at 0 0, #fff, #ffef5c, #b06d1f);
  color: #3d1700;
  font-family: var(--font-girl);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* start button */
.bottom-bar__start {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 0 0, #fff, #ffef5c, #b06d1f);
  border: 2px solid var(--poop-dark);
  color: #3d1700;
  font-family: var(--font-girl);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.bottom-bar__start:hover {
  background: radial-gradient(circle at 0 0, #fff, #b4ff5c, #4e2b07);
  color: #200800;
  box-shadow: 0 0 22px rgba(180, 255, 92, 0.7);
}

/* status pills (cpu, ram, etc.) */
.bottom-bar__status {
  display: flex;
  gap: 8px;
  margin-left: 6px;
}

.bottom-bar__pill:hover {
  border-color: var(--hover-pink);
  color: var(--hover-yellow);
}

/* highlight the taskbar window pill a bit */
.bottom-bar__pill--window {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* clock */
.bottom-bar__clock {
  margin-left: auto;
  color: var(--text-soft);
}

.bottom-bar__clock:hover {
  color: var(--hover-cyan);
}

/* ===== LINKS ===== */

a {
  color: var(--candy-mint);
}

a:hover {
  color: var(--hover-red);
}

/* ========================================
 *  4. Window shell + main window (chrome, buttons, resize, states)
 * ===================================== */

.window-shell {
  position: relative;
  width: 100%;
 /* max-width: 1200px;*/
  height: 87vh; /* starting height; JS resize will override */
}

/* ===== WINDOW ===== */

.window {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius-outer);
  background: linear-gradient(
    180deg,
    rgba(43, 6, 51, 0.98),
    rgba(19, 0, 24, 0.98)
  );
  border: 3px solid rgba(255, 214, 245, 0.95);
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  height: 100%; /* follow .window-shell height */
}

/* poop crust on the frame */
.window::before {
  content: "";
  position: absolute;
  inset: auto -10px 0 -10px;
  height: 22px;
  background:
    radial-gradient(80% 180% at 40% 150%, rgba(78, 43, 7, 1), transparent 70%),
    radial-gradient(80% 160% at 80% 120%, rgba(122, 74, 18, 0.96), transparent 70%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* window chrome */
.window__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(
    180deg,
    rgba(86, 20, 106, 0.98),
    rgba(43, 6, 51, 0.98)
  );
  border-bottom: 2px solid rgba(255, 214, 245, 0.7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

/* dots */
.window__buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.window__dot--close {
  background: radial-gradient(circle at 30% 30%, #fff, #ff4b6e);
}

.window__dot--min {
  background: radial-gradient(circle at 30% 30%, #fff, #ffd75c);
}

.window__dot--max {
  background: radial-gradient(circle at 30% 30%, #fff, #66ff9d);
}

/* dot hover: change colours, wiggle a bit */
.window__dot:hover {
  animation: wp2k-wiggle 0.45s ease-in-out;
  transform-origin: center;
}

/* title */
.window__title {
  font-family: var(--font-girl);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

/* drag handle covers chrome */
.window__chrome {
  cursor: move;
}

/* scrollable body: the “whole website” now */
.window__body {
  padding: 18px 20px 22px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--candy-pink) rgba(19, 0, 24, 0.98);
}

/* custom scrollbar */
.window__body::-webkit-scrollbar {
  width: 10px;
}

.window__body::-webkit-scrollbar-track {
  background: rgba(19, 0, 24, 0.98);
}

.window__body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff66c4, #c58bff);
  border-radius: 999px;
}

/* resize handle bottom-right */
.window__resize-handle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(255, 214, 245, 0.6);
  background: rgba(0, 0, 0, 0.8);
  cursor: se-resize;
  pointer-events: auto;
}

.window--maximized + .window__resize-handle {
  opacity: 0;
  pointer-events: none;
}

/* ===== WINDOW STATES ===== */

.window.is-minimized {
  display: none;
}

.window.is-closed {
  display: none;
}

.window.window--maximized {
  /* ACTUALLY maximized: fill the viewport and sit above the taskbar/start menu */
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  z-index: 9999;
}


/* ========================================
 *  5. Start menu & in-window nav
 * ===================================== */

/* ===== START MENU ===== */

.start-menu {
  position: fixed;
  left: 12px;
  bottom: 52px; /* slightly above taskbar */
  z-index: 6;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.start-menu--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.start-menu__panel {
  min-width: 220px;
  border-radius: 18px;
  padding: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.16), transparent 65%),
    rgba(10, 0, 16, 0.98);
  border: 2px solid rgba(255, 214, 245, 0.85);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.start-menu__item {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-soft);
  background: transparent;
}

.start-menu__item:hover {
  background: rgba(255, 102, 196, 0.18);
  color: var(--hover-yellow);
}

.start-menu__item--active {
  background: rgba(255, 102, 196, 0.35);
  color: var(--text-main);
}

/* ===== IN-WINDOW NAV (FLOATING) ===== */

.window-nav {
  position: absolute;
  top: 80px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.window-nav__item {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 214, 245, 0.7);
  color: var(--text-soft);
  cursor: pointer;
}

.window-nav__item:hover {
  border-color: var(--hover-cyan);
  color: var(--hover-yellow);
}

.window-nav__item--active {
  background: linear-gradient(90deg, #ff66c4, #c58bff);
  color: #200800;
}

/* ========================================
 *  6. Content panels (releases, artists, submit, contact, log)
 * ===================================== */

/* ===== TYPOGRAPHY ===== */

h1,
h2,
h3 {
  font-family: var(--font-girl);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-gross);
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

p {
  margin: 0 0 10px;
  line-height: 1.5;
}

/* gross emphasiser */
.fecal {
  color: var(--text-gross);
  font-weight: 700;
}

/* hover on .fecal itself */
.fecal:hover {
  color: var(--hover-green);
}

/* ===== SEPARATORS ===== */

.window-sep {
  height: 1px;
  margin: 18px 0 16px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 214, 245, 0.7),
    transparent
  );
}

/* ===== LAYOUT PANELS / GRID ===== */

.window-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.window-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.window-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* generic panel style (shared) */
.panel,
.window-panel {
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(186, 255, 211, 0.12), transparent 60%),
    rgba(12, 0, 18, 0.98);
  border: 2px solid rgba(255, 214, 245, 0.85);
  padding: 12px 14px 14px;
  position: relative;
}

/* lace / doodle frame */
.window-panel::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 14px;
  border: 2px dashed rgba(255, 239, 92, 0.8);
  opacity: 0.7;
  pointer-events: none;
}

/* panel hover: glow & wobble */
.window-panel:hover {
  border-color: var(--hover-pink);
  box-shadow: 0 0 22px rgba(255, 102, 196, 0.7);
  transform: translateY(-2px);
}

/* ===== IMAGES ===== */

/* hero image */
.hero-art {
  margin-top: 8px;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--candy-pink);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.8);
}

.hero-art__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* albums grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.album-grid__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--candy-blue);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
}

.album-grid__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.album-grid__item:hover {
  border-color: var(--hover-yellow);
  transform: translateY(-3px);
}

/* logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.logo-grid__item {
  border-radius: 14px;
  border: 3px solid var(--candy-lilac);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.logo-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* frames / fake windows */
.frame-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.frame-grid__item {
  border-radius: 14px;
  border: 3px solid rgba(255, 214, 245, 0.8);
  padding: 6px 8px 8px;
  background: rgba(10, 0, 16, 0.96);
}

/* log / console style block */
.log-panel {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(5, 0, 8, 0.98);
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 214, 245, 0.5);
  max-height: 200px;
  overflow-y: auto;
}

/* form */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

label {
  font-size: 0.85rem;
  color: var(--text-soft);
}

input[type="text"],
input[type="email"],
textarea {
  border-radius: 999px;
  border: 2px solid rgba(255, 214, 245, 0.8);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

textarea {
  border-radius: 18px;
  min-height: 120px;
  resize: vertical;
}

/* submit button */
.btn-submit {
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #ff66c4, #c58bff);
  border: 2px solid rgba(255, 214, 245, 0.9);
  color: #200800;
  font-family: var(--font-girl);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.btn-submit:hover {
  background: linear-gradient(90deg, #baffd3, #ff9ad9);
  box-shadow: 0 0 24px rgba(255, 102, 196, 0.8);
}

/* ========================================
 *  7. Poop window styles
 * ===================================== */

/* ===== P00P EASTER EGG WINDOW ===== */

.window-shell--poop {
  position: fixed;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  max-width: 90vw;
  z-index: 7;
}

.window--poop {
  max-width: none;
}

/* reuse chrome but slightly nastier */
.window__chrome--poop {
  background: linear-gradient(
    180deg,
    rgba(78, 43, 7, 0.96),
    rgba(40, 19, 1, 0.98)
  );
}

/* secret poop panel variant */
.secret-panel--poop {
  border-color: var(--piss-bright);
  box-shadow: 0 0 26px rgba(255, 239, 92, 0.85);
}

/* visible animation */
.window-shell--poop.poop-window--visible {
  animation: poop-window-pop 0.35s ease-out;
}

/* ========================================
 *  8. Utilities (helpers, animations)
 * ===================================== */

/* ===== GENERIC HIDDEN HELPER ===== */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* wiggle animation for close/min/max dots */
@keyframes wp2k-wiggle {
  0% {
    transform: rotate(0deg) translateX(0);
  }
  25% {
    transform: rotate(-6deg) translateX(-1px);
  }
  50% {
    transform: rotate(6deg) translateX(1px);
  }
  75% {
    transform: rotate(-3deg) translateX(-1px);
  }
  100% {
    transform: rotate(0deg) translateX(0);
  }
}

@keyframes poop-window-pop {
  0% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

/* ===== BASIC MEDIA TWEAKS (still desktop-first) ===== */

@media (max-width: 1100px) {
  .window-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .window-nav {
    right: 10px;
  }
}
