* { box-sizing: border-box; }

.collections-body {
  margin: 0;
  font-family: sans-serif;
  background-image: url('images/bg3.png');
  background-repeat: repeat;
  background-size: auto;
  min-height: 100vh;
  overflow: hidden;
}

.back-home {
  position: fixed;
  top: 0.5rem;
  left: 1rem;
  font-size: 0.85rem;
  color: pink;
  text-decoration: none;
  opacity: 0.7;
  z-index: 1000;
  transition: opacity 0.2s ease;
}

.back-home:hover { opacity: 1; }

.desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* ── window ── */

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: white;
  border: 2px solid #aaa;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
  min-width: 200px;
  min-height: 100px;
  resize: both;
  overflow: hidden;
  z-index: 1;
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #f4a7b9, #f9c8d4);
  padding: 0.3rem 0.5rem;
  cursor: move;
  user-select: none;
  flex-shrink: 0;
}

.window-title {
  font-size: 0.8rem;
  color: white;
  text-shadow: 1px 1px rgba(0,0,0,0.2);
  font-weight: bold;
}

.window-controls {
  display: flex;
  gap: 0.3rem;
}

.win-btn {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 3px;
  width: 20px;
  height: 20px;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 0;
}

.win-btn:hover { background: rgba(255,255,255,0.9); }

.win-btn.close:hover { background: #ff6b6b; color: white; }

.window-body {
  padding: 0.75rem;
  overflow: auto;
  flex: 1;
}

/* ── collection grid inside window ── */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.collection-grid img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.15));
}

/* ── taskbar ── */

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(244, 167, 185, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
  z-index: 999;
  border-top: 1px solid #f4a7b9;
}

.taskbar-title {
  font-size: 0.8rem;
  color: white;
  font-weight: bold;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.taskbar-items {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.taskbar-btn {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: #333;
}

.taskbar-btn:hover { background: white; }

.taskbar-credit {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}

.taskbar-credit a {
  color: white;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.taskbar-credit a:hover { opacity: 1; }