
/* ============================================
   SMARTOVAL // THE WIRED ARCHIVE
   Homepage Prototype 01
   ============================================ */

/* CUSTOM FONTS */

@font-face {
  font-family: "LoveLetter";
  src: url("fonts/LoveLetter.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Chitani";
  src: url("fonts/ChitaniBT-Roman.ttf") format("truetype");
  font-display: swap;
}

/* CHANGE THESE COLORS ANYTIME */

:root {
  --black: #050809;
  --panel: rgba(5, 11, 12, 0.94);
  --green: #a3e875;
  --blue: #a8c7d5;
  --red: #c28b96;
  --text: #c0c9c5;
  --muted: #8a9b99;
  --border: #5b7774;
  --font: "Chitani", "Courier New", monospace;
}

/* GENERAL */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--black);
  font: 13px/1.55 var(--font);
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.placeholder-art img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  left: 0px;  /* Positive = right, negative = left */
  top: 0px;   /* Positive = down, negative = up */
}


.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 999;
  background: var(--green);
  color: #000;
  padding: 10px;
}

.skip-link:focus {
  top: 15px;
}

/* ============================================
   BACKGROUND GIF
   Replace assets/background.gif with yours.
   ============================================ */

.world-background {
  display: none;
}

body {
    background-color: #000000;

  background-image: url("assets/bg.gif");

  background-size: 70% auto;
  background-position: 54% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  
}

/* Keep all actual website content above the GIF */

.desktop,
.desktop-icons {
  position: relative;
  z-index: 1;
}

/* Keep the bottom taskbar on top */

.taskbar {
  z-index: 90;
}

/* CRT texture, stationary rather than flashing */

.screen-texture {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.3;

  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.28) 4px
  );
}

/* ============================================
   DESKTOP SPACE
   ============================================ */

.desktop {
  position: relative;
  width: min(1440px, 100%);
  min-height: 1050px;
  margin: 0 auto;
  padding: 70px 25px 110px;
}

.desktop-icons {
  position: absolute;
  z-index: 5;
  top: 65px;
  left: max(12px, calc((100vw - 1510px) / 2));
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.desktop-icon {
  width: 80px;
  text-align: center;
  text-decoration: none;
  color: #d5e0dd;
  font-size: 12px;
  text-shadow: 1px 2px 3px #000;
}

.icon-symbol {
  display: block;
  font: 34px/1.2 "Courier New", monospace;
  color: var(--blue);
  text-shadow: 0 0 12px #000;
}

.desktop-icon:hover .icon-symbol {
  color: var(--green);
}

/* ============================================
   SHARED WINDOW APPEARANCE
   ============================================ */

.window {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow:
    3px 4px 0 rgba(0, 0, 0, 0.7),
    0 12px 35px rgba(0, 0, 0, 0.35);
}

.window::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(150, 184, 177, 0.08);
  pointer-events: none;
}

.titlebar {
  min-height: 27px;
  padding: 4px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  background: #0d1719;
  border-bottom: 1px solid var(--border);
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.draggable {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.draggable:active {
  cursor: grabbing;
}

.close-window {
  border: 1px solid #526568;
  color: #d3dddd;
  background: #10191b;
  padding: 0 6px;
  line-height: 18px;
}

.close-window:hover {
  background: #673d49;
  color: white;
}

.window-body {
  padding: 15px;
}

.window-body p {
  margin: 5px 0;
}

.window-body .section-label {
  margin-bottom: 12px;
}

.green {
  color: var(--green);
}

.signal {
  color: var(--red);
}

.section-label {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.tiny {
  color: var(--muted);
  font-size: 10px;
}

.hidden {
  display: none !important;
}

/* ============================================
   MAIN WINDOW
   ============================================ */

.main-window {
  top: 185px;
  left: 18%;
  width: 64%;
  min-height: 475px;
  z-index: 10;
}

.main-inner {
  display: grid;
  grid-template-columns: 43% 57%;
  gap: 0;
  padding: 28px 24px 24px;
}

.main-left {
  padding-right: 20px;
}

.main-right {
  padding-left: 12px;
}

.system-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

h1 {
  white-space: nowrap;
  font-size: clamp(28px, 4vw, 54px);
  margin: 14px 0 0;
  font: normal clamp(34px, 4.8vw, 64px)/1.1
    "LoveLetter", "Courier New", monospace;
  color: var(--green);
  overflow-wrap: anywhere;
}

.cursor {
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.tagline {
  color: var(--blue);
  margin: 8px 0;
}

.description {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 25px;
}

.directory {
  border-top: 1px solid #36504d;
  padding-top: 12px;
}

.directory a,
.directory button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 3px 4px;
  border: none;
  background: none;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
}

.directory a:hover,
.directory button:hover {
  color: var(--green);
  background: rgba(163, 232, 117, 0.08);
  padding-left: 10px;
}

.image-header {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: 10px;
  margin-bottom: 6px;
}

.image-header span:last-child {
  color: var(--red);
}

/* Featured artwork slot */

.featured-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  border: 1px solid #597b80;
  background:
    linear-gradient(135deg, #182a2b, #071010 65%, #23343a);
}

.placeholder-art {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #9ab7b5;
  letter-spacing: 0.12em;
}

.placeholder-art span {
  font-size: 24px;
  opacity: 0.5;
}

.placeholder-art small {
  font-size: 10px;
}

.crosshair {
  position: absolute;
  color: var(--blue);
  font: 25px "Courier New", monospace;
}

.top-left {
  top: 3px;
  left: 7px;
}

.bottom-right {
  bottom: 3px;
  right: 7px;
}

.image-caption {
  color: var(--muted);
  font-size: 11px;
}

.window-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #334c49;
  padding: 7px 12px;
  color: #79998b;
  font-size: 10px;
}

/* ============================================
   FLOATING WINDOW POSITIONS
   Intentionally asymmetrical
   ============================================ */

.floating {
  z-index: 12;
}

.status-window {
  top: 30px;
  right: 5%;
  width: 245px;
}

.updates-window {
  top: 275px;
  right: 1.5%;
  width: 235px;
}

.audio-window {
  top: 770px;
  left: 4%;
  width: 260px;
}

.console-window {
  top: 740px;
  left: 29%;
  width: 310px;
}

.fragment-window {
  top: 440px;
  left: 2%;
  width: 230px;
}

.misc-window {
  top: 795px;
  right: 9%;
  width: 240px;
  z-index: 12;
}

.secret-window {
  top: 150px;
  left: 42%;
  width: 300px;
  z-index: 30;
  border-color: var(--red);
}

.secret-window .titlebar {
  color: var(--red);
}

/* ============================================
   INDIVIDUAL WIDGETS
   ============================================ */

.update-entry {
  padding: 8px 0;
  border-bottom: 1px dotted #36504d;
}

.update-entry time {
  color: var(--blue);
  font-size: 11px;
}

.update-entry p {
  color: var(--text);
  font-size: 11px;
}

.small-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  text-decoration: none;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.audio-controls button {
  padding: 5px 9px;
  color: var(--green);
  background: #0e1913;
  border: 1px solid #66845c;
}

.audio-controls label {
  font-size: 10px;
}

.audio-controls input {
  width: 75px;
  accent-color: var(--green);
}

.console-text {
  color: #b6c7b7;
  font-size: 11px;
}

.fragment-image {
  min-height: 175px;
  background: linear-gradient(
    145deg, #233439, #0a1014, #30423b
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #b5c7c7;
  text-align: center;
}

.fragment-image small {
  color: #8b9f9e;
  font-size: 10px;
}

.misc-links {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.misc-links a {
  padding: 6px;
  border: 1px solid #506b68;
  text-decoration: none;
  font-size: 10px;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

.ambient-label {
  position: absolute;
  color: #a4b5ae;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-shadow: 1px 1px 4px black;
  pointer-events: none;
}

.label-one {
  top: 105px;
  left: 28%;
  transform: rotate(-3deg);
}

.label-two {
  position: absolute;

  /* Position the message behind the window */
  top: 850px;
  right: 12%;
  bottom: auto;

  color: #c59da5;
  transform: rotate(2deg);

  /* Keep it behind draggable windows */
  z-index: 1;
}

/* ============================================
   BOTTOM TASKBAR
   ============================================ */

.taskbar {
  position: fixed;
  z-index: 90;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 37px;
  padding: 5px 12px;

  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;

  border-top: 1px solid #5a7972;
  background: rgba(5, 11, 12, 0.97);
}

.taskbar-brand {
  color: var(--green);
  margin-right: 15px;
  white-space: nowrap;
  font-size: 11px;
}

.taskbar button {
  border: 1px solid #425b58;
  padding: 4px 8px;
  color: var(--text);
  background: #111b1c;
  font-size: 10px;
  white-space: nowrap;
}

.taskbar button:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ============================================
   MOBILE AND SMALL SCREENS
   ============================================ */

@media (max-width: 900px) {
  .desktop-icons {
    position: relative;
    top: auto;
    left: auto;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 8px 0;
    gap: 12px;
  }

  .desktop {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
    padding: 24px 15px 100px;
  }

  .window,
  .main-window,
  .floating {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    transform: none !important;
  }

  .main-window {
    order: -1;
    min-height: 0;
  }

  .main-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .main-left,
  .main-right {
    padding: 0;
  }

  .featured-image {
    height: 260px;
  }

  .ambient-label {
    display: none;
  }

  .taskbar-brand {
    display: none;
  }
}

@media (max-width: 480px) {
  .desktop {
    padding: 15px 9px 100px;
  }

  .main-inner {
    padding: 18px 14px;
  }

  .featured-image {
    height: 205px;
  }

  .titlebar {
    font-size: 10px;
  }

  .window-footer {
    font-size: 9px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }

  .world-background {
    background-image:
      linear-gradient(#071011, #111d1c);
  }
}


/* ============================================
   ATMOSPHERIC ELEMENTS / VERSION 01
   Add to the END of home.css
   ============================================ */

/* 1. SIGNAL MONITOR */

.signal-monitor {
  position: absolute;
  top: 115px;
  left: 11%;
  z-index: 8;

  width: 180px;
  padding: 11px;

  background: rgba(5, 11, 12, 0.87);
  border: 1px solid #42635c;

  box-shadow: 3px 5px 0 rgba(0, 0, 0, 0.45);

  transform: rotate(-2deg);
}

.signal-heading {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: 10px;
}

.signal-indicator {
  color: var(--green);
  animation: signal-pulse 3s ease-in-out infinite;
}

.signal-bars {
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 10px 0;
}

.signal-bars span {
  width: 5px;
  height: 40%;
  background: #83bda0;

  animation: signal-wave 2s ease-in-out infinite alternate;
}

.signal-bars span:nth-child(3n) {
  background: #bd8394;
}

.signal-bars span:nth-child(2n) {
  animation-delay: -0.4s;
}

.signal-bars span:nth-child(3n) {
  animation-delay: -0.9s;
}

.signal-bars span:nth-child(5n) {
  animation-delay: -1.4s;
}

.signal-footer {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

@keyframes signal-wave {
  0%   { height: 12%; }
  50%  { height: 45%; }
  100% { height: 85%; }
}

@keyframes signal-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* 2. ROTATING SYSTEM MESSAGE */

.system-message {
  position: absolute;
  top: 690px;
  right: 5%;
  z-index: 9;

  max-width: 240px;
  padding: 9px 12px;

  background: rgba(5, 10, 11, 0.82);
  border-left: 2px solid #a3e875;

  color: var(--text);
  font-size: 11px;

  transform: rotate(1.5deg);
}

.message-prefix {
  display: block;
  color: var(--green);
  font-size: 9px;
  margin-bottom: 4px;
}

#rotating-message {
  display: block;
  min-height: 18px;
}

/* 3. FLOATING MEMORY FRAGMENT */

.memory-fragment {
  position: absolute;
  top: 920px;
  left: 23%;
  z-index: 8;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;

  padding: 10px 14px;
  border: 1px dashed #6b5660;

  background: rgba(10, 9, 12, 0.77);
  color: #c28b96;

  transform: rotate(-4deg);
}

.fragment-label,
.fragment-id {
  font-size: 9px;
  letter-spacing: 0.05em;
}

.fragment-symbol {
  font-size: 28px;
  color: #b7d0d8;
  text-shadow: 0 0 9px rgba(168, 199, 213, 0.35);
}

/* 4. SUBTLE WINDOW INTERACTION */

.window {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.window:hover {
  border-color: #82a7a0;
  box-shadow:
    3px 4px 0 rgba(0, 0, 0, 0.7),
    0 12px 35px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(133, 192, 163, 0.10);
}

/* 5. MOBILE LAYOUT */

@media (max-width: 900px) {
  .signal-monitor,
  .system-message,
  .memory-fragment {
    position: relative;
    top: auto;
    left: auto;
    right: auto;

    width: min(100%, 300px);
    max-width: 100%;
    margin: 8px auto;

    transform: none;
  }

  .system-message {
  width: 260px;
  max-width: none;
  }
}

/* 6. REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .signal-bars span,
  .signal-indicator {
    animation: none;
  }

  .signal-bars span:nth-child(3n) {
    height: 70%;
  }

  .signal-bars span:nth-child(2n) {
    height: 35%;
  }
}
/* FORCE SIGNAL MONITOR ANIMATION */

.signal-bars span {
  display: block;
  flex-shrink: 0;
  height: 20%;
  transform-origin: center;

  animation: signal-wave 1.2s ease-in-out infinite alternate;
  animation-play-state: running;
}

.signal-bars span:nth-child(2n) {
  animation-duration: 0.7s;
}

.signal-bars span:nth-child(3n) {
  animation-duration: 1.5s;
}

.signal-bars span:nth-child(5n) {
  animation-duration: 0.9s;
}

@keyframes signal-wave {
  0% {
    height: 10%;
  }

  100% {
    height: 95%;
  }
}
.loading-dots::after {
  content: "";
  animation: loading-dots 1.2s steps(1, end) infinite;
}

@keyframes loading-dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
}
.loading-dots {
  display: inline-block;
  width: 3ch;
  text-align: left;
  white-space: nowrap;
}
.fragment-image img {
  transform: scaleX(-1);
}



/* ==========================================
   MEMORY FRAGMENT COLLECTION SYSTEM
   ========================================== */

/* Clickable star */

.fragment-collect {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  padding: 0;
  border: none;
  background: transparent;

  cursor: pointer;
}

/* Existing star appearance */

.fragment-collect .fragment-symbol {
  color: #b7d0d8;
  font-size: 28px;

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Hidden collection prompt */

.fragment-prompt {
  position: absolute;
  top: 100%;

  color: #a3e875;
  font-size: 9px;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.25s ease;
}

/* Reveal prompt when hovering or focusing */

.fragment-collect:hover .fragment-prompt,
.fragment-collect:focus-visible .fragment-prompt {
  opacity: 1;
  visibility: visible;
}

/* Star illuminates when discovered */

.fragment-collect:hover .fragment-symbol,
.fragment-collect:focus-visible .fragment-symbol {
  color: #a3e875;

  text-shadow:
    0 0 8px rgba(163,232,117,0.8),
    0 0 18px rgba(163,232,117,0.4);

  transform: scale(1.15);
}

/* Collection animation */

.memory-fragment.collecting {
  animation: fragment-collected 1.2s ease forwards;
  pointer-events: none;
}

@keyframes fragment-collected {
  0% {
    opacity: 1;
    filter: brightness(1);
  }

  30% {
    opacity: 1;
    filter: brightness(2.5);
  }

  100% {
    opacity: 0;
    filter: brightness(1);
  }
}

/* Hide already collected fragments */

.memory-fragment.collected {
  display: none;
}

/* ==========================================
   COLLECTION NOTIFICATION
   ========================================== */

.fragment-notification {
  position: fixed;
  z-index: 200;

  bottom: 55px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);

  padding: 12px 20px;

  background: rgba(3,9,8,0.95);
  border: 1px solid #a3e875;

  color: #a3e875;

  font: 12px "Chitani", "Courier New", monospace;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;

  box-shadow:
    0 0 15px rgba(163,232,117,0.15);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s ease;
}

/* Notification appears */

.fragment-notification.visible {
  opacity: 1;
  visibility: visible;

  transform: translateX(-50%) translateY(0);
}

/* Mobile notification */

@media (max-width: 600px) {
  .fragment-notification {
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 10px 12px;
    font-size: 10px;
    white-space: normal;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .memory-fragment.collecting {
    animation: none;
  }

  .fragment-collect .fragment-symbol,
  .fragment-prompt,
  .fragment-notification {
    transition: none;
  }
}

@media (min-width: 901px) {
  .scene {
    zoom: 1.15;
  }
}
