/* Woden Burison link hub -- "Windows 95/98/2000 desktop" theme.
   Each link is its own little pop-up browser window scattered across a teal
   desktop, faux OS chrome built entirely from borders/box-shadows (no image
   assets). Windows sit "inactive" (gray title bar) until hovered/focused,
   which flips them to the classic active blue gradient title bar -- like
   clicking to bring a window forward on a cluttered real desktop. Taskbar is
   fixed to the bottom of the viewport. */

:root {
  --desktop-teal: #008080;
  --face: #c0c0c0;          /* classic "3D Face" button/window gray */
  --face-light: #dfdfdf;
  --face-dark: #808080;
  --face-darker: #000000;
  --white: #ffffff;
  --titlebar-from: #000080;
  --titlebar-to: #1084d0;
  --content-bg: #ffffff;
  --selection-bg: #000080;
  --selection-text: #ffffff;
  --font-ui: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--desktop-teal);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 2px,
    transparent 2px,
    transparent 6px
  );
  font-family: var(--font-ui);
  font-size: 13px;
  color: #000;
}

a { color: inherit; text-decoration: none; }

/* ---------------- Desktop + decorative icons ---------------- */

.desktop {
  min-height: 100vh;
  padding: 1.5rem 1.5rem 4.5rem;
  position: relative;
}

.desktop-icon {
  position: absolute;
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--white);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
  font-size: 11px;
  text-align: center;
}
.desktop-icon svg { width: 40px; height: 40px; }
.desktop-icon--computer { top: 1.5rem; left: 1.5rem; }
.desktop-icon--bin { top: 8.5rem; left: 1.5rem; }

@media (max-width: 640px) {
  .desktop-icon { display: none; }
}

/* ---------------- Popup window board ---------------- */

.popup-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.2rem 1.6rem;
  max-width: 1080px;
  margin: 1rem auto 0;
}

.popup {
  display: block;
  background: var(--face);
  padding: 3px;
  border-top: 1px solid var(--white);
  border-left: 1px solid var(--white);
  border-right: 1px solid var(--face-darker);
  border-bottom: 1px solid var(--face-darker);
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, z-index 0s;
  position: relative;
}
/* messy "scattered pop-ups" rotation, undone on hover/focus */
.popup-board a.popup:nth-child(2n) { transform: rotate(-1.1deg); }
.popup-board a.popup:nth-child(3n) { transform: rotate(1.3deg); }
.popup-board a.popup:nth-child(4n) { transform: rotate(-0.5deg); }
.popup-board a.popup:nth-child(5n) { transform: rotate(0.8deg); }
.popup:hover,
.popup:focus-visible {
  transform: rotate(0deg) translateY(-3px) scale(1.015);
  box-shadow: 6px 10px 22px rgba(0, 0, 0, 0.45);
  z-index: 5;
  outline: none;
}

.popup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 3px 4px 3px 6px;
  background: var(--face);
  color: #4d4d4d;
  font-weight: 700;
  font-size: 12px;
}
.popup:hover .popup-titlebar,
.popup:focus-visible .popup-titlebar {
  background: linear-gradient(90deg, var(--titlebar-from), var(--titlebar-to));
  color: var(--white);
}
.popup-title {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popup-title svg { width: 14px; height: 14px; flex-shrink: 0; }
.popup-controls { display: flex; gap: 2px; flex-shrink: 0; }
.tb-btn {
  width: 16px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--face);
  border-top: 1px solid var(--face-light);
  border-left: 1px solid var(--face-light);
  border-right: 1px solid var(--face-darker);
  border-bottom: 1px solid var(--face-darker);
  font-size: 10px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.popup-address {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  background: var(--face);
  border-top: 1px solid var(--face-dark);
}
.addr-label { font-size: 10.5px; color: #333; flex-shrink: 0; }
.addr-field {
  flex: 1;
  background: var(--content-bg);
  border-top: 1px solid var(--face-darker);
  border-left: 1px solid var(--face-darker);
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  padding: 1px 5px;
  font-size: 10.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #000;
}

.popup-body {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--content-bg);
  padding: 0.85rem 0.8rem;
  min-height: 78px;
}
.popup-icon { width: 40px; height: 40px; flex-shrink: 0; }
.popup-text { flex: 1; min-width: 0; }
.popup-stamp {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--titlebar-from);
  border: 1px dotted var(--titlebar-from);
  padding: 0 4px;
  margin-bottom: 0.3rem;
}
.popup-desc { margin: 0; font-size: 12px; line-height: 1.4; color: #111; }

.popup-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 7px;
  background: var(--face);
  border-top: 1px solid var(--face-dark);
  font-size: 11px;
}
.popup-cta { font-weight: 700; color: var(--titlebar-from); }
.popup:hover .popup-cta,
.popup:focus-visible .popup-cta { text-decoration: underline; }

/* welcome popup gets a bit more room and always reads as "active" */
.popup--welcome { grid-column: span 2; }
.popup--welcome .popup-titlebar {
  background: linear-gradient(90deg, var(--titlebar-from), var(--titlebar-to));
  color: var(--white);
}
.popup--welcome .popup-body { align-items: center; }
.popup--welcome h1 { margin: 0 0 0.2rem; font-size: 1.3rem; font-family: Georgia, "Times New Roman", serif; }
.popup--welcome .popup-desc { font-style: italic; }
@media (max-width: 560px) {
  .popup--welcome { grid-column: span 1; }
}

/* ---------------- Taskbar ---------------- */

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  background: var(--face);
  border-top: 1px solid var(--white);
  z-index: 20;
}
.start-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12.5px;
  padding: 3px 10px 3px 6px;
  background: var(--face);
  border-top: 1px solid var(--white);
  border-left: 1px solid var(--white);
  border-right: 1px solid var(--face-darker);
  border-bottom: 1px solid var(--face-darker);
}
.start-flag { width: 15px; height: 15px; flex-shrink: 0; }

.taskbar-sep {
  width: 2px;
  align-self: stretch;
  margin: 3px 2px;
  border-left: 1px solid var(--face-dark);
  border-right: 1px solid var(--white);
}

.taskbar-spacer { flex: 1; }

.tray {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  font-size: 12px;
  border-top: 1px solid var(--face-dark);
  border-left: 1px solid var(--face-dark);
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
}

@media (max-width: 640px) {
  .popup-board { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
