/* Archive — XP "bliss" wallpaper with desktop-style folder icons */

/* Archive — XP "bliss" wallpaper with desktop-style folder icons */

.archive-page {
  /* Full-bleed: fill the viewport */
  position: relative;
  margin: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  overflow: hidden;
  background: #5b8fd9;
}

.archive-stage {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background-image: url("assets/bliss.jpg");
  background-size: cover;
  background-position: center;
  border: 0;
}

/* Desktop folder icons */
.desk-icon {
  position: absolute;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  z-index: 5;
  padding: 6px;
  border-radius: 2px;
  transition: background 80ms;
}
.desk-icon:hover { background: rgba(50, 100, 200, 0.18); }
.desk-icon.selected,
.desk-icon:active {
  background: rgba(50, 100, 200, 0.32);
  outline: 1px dotted rgba(255,255,255,0.7);
  outline-offset: -2px;
}

.desk-icon .glyph {
  width: 48px;
  height: 40px;
  filter: drop-shadow(1px 2px 0 rgba(0,0,0,0.35));
}
.desk-icon .label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: white;
  text-align: center;
  text-shadow:
    0 0 2px rgba(0,0,0,0.85),
    1px 1px 0 rgba(0,0,0,0.7);
  line-height: 1.15;
  max-width: 86px;
  word-wrap: break-word;
}

/* Window when a folder is opened */
.desk-window {
  position: absolute;
  z-index: 100;
  background: #ece9d8;
  border: 1px solid #0a246a;
  border-radius: 6px 6px 2px 2px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    4px 4px 18px rgba(0,0,0,0.35);
  min-width: 460px;
  max-width: 620px;
  font-family: var(--sans);
  color: #111;
  overflow: hidden;
}
.desk-window .titlebar {
  background: linear-gradient(180deg, #0058e6 0%, #0a4dc7 8%, #1f6cd8 50%, #0a4dc7 92%, #002fa0 100%);
  color: white;
  padding: 4px 6px 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: move;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.45);
}
.desk-window .titlebar .ico {
  width: 16px; height: 16px;
}
.desk-window .titlebar .name { flex: 1; }
.desk-window .titlebar .controls { display: flex; gap: 2px; }
.desk-window .titlebar .ctrl {
  width: 22px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #4f8ee8, #1d54b4);
  border: 1px solid #0a2b78;
  border-radius: 3px;
  color: white;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}
.desk-window .titlebar .ctrl.close { background: linear-gradient(180deg, #e08989, #c23030); border-color: #6e0d0d; }
.desk-window .titlebar .ctrl:hover { filter: brightness(1.1); }

.desk-window .menubar {
  background: #ece9d8;
  border-bottom: 1px solid #aca899;
  padding: 2px 6px;
  font-size: 11px;
  display: flex;
  gap: 12px;
  color: #222;
}
.desk-window .menubar span { cursor: default; padding: 1px 4px; }
.desk-window .menubar span:hover { background: #316ac5; color: white; }

.desk-window .toolbar {
  background: linear-gradient(180deg, #f7f6ee, #d6d2bd);
  border-bottom: 1px solid #aca899;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: #555;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desk-window .body {
  background: white;
  padding: 14px;
  max-height: 380px;
  overflow: auto;
}

.desk-window .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.desk-window .file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.desk-window .file:hover { background: rgba(50, 100, 200, 0.16); }
.desk-window .file .pic {
  width: 100%;
  aspect-ratio: 16/9;
  background: black;
  border: 1px solid #888;
  overflow: hidden;
}
.desk-window .file .cap {
  font-family: var(--sans);
  font-size: 11px;
  text-align: center;
  color: #111;
  line-height: 1.25;
  word-break: break-word;
}
.desk-window .statusbar {
  background: #ece9d8;
  border-top: 1px solid #aca899;
  padding: 3px 8px;
  font-size: 11px;
  color: #444;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .archive-stage { min-height: 540px; }
  .desk-window { min-width: 320px; max-width: calc(100% - 40px); }
  .desk-window .grid { grid-template-columns: repeat(2, 1fr); }
}
