/* ===== Wallpaper ===== */
#wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
      circle at 80% 8%,
      rgba(255, 214, 10, 0.18),
      transparent 45%
    ),
    linear-gradient(
      165deg,
      var(--wall-1) 0%,
      var(--wall-2) 32%,
      var(--wall-3) 58%,
      var(--wall-4) 80%,
      var(--wall-5) 100%
    );
  background-size: 200% 200%;
  animation: wallpaperDrift 40s ease-in-out infinite alternate;
}

/* To wire up a real photo later:
   #wallpaper { background-image: url("../assets/images/wallpaper.jpg");
                background-size: cover; background-position: center; animation: none; } */

@keyframes wallpaperDrift {
  from {
    background-position: 20% 0%;
  }
  to {
    background-position: 80% 100%;
  }
}

/* ===== Shells ===== */
.shell {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.shell--desktop {
  display: flex;
  flex-direction: column;
}

/* ===== Menu bar (macOS) ===== */
.menubar {
  height: var(--topbar-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(15, 12, 20, 0.35);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menubar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 6px;
  border-radius: 6px;
}

.menubar__brand:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menubar__logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.menubar__status {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

/* ===== Desktop icons ===== */
.desktop-icons {
  position: relative;
  flex: 1 1 auto;
}

.desktop-icon--pinned {
  position: absolute;
  top: 32px;
  left: 32px;
}

.desktop-icons__rail {
  position: absolute;
  top: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* ===== App icon component (shared between desktop / mobile) ===== */
.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 84px;
}

.app-icon__glyph {
  width: var(--icon-size-desktop);
  height: var(--icon-size-desktop);
  border-radius: var(--icon-radius);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.18s var(--ease-out-soft);
  background: #333;
}

.app-icon__glyph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon:hover .app-icon__glyph {
  transform: translateY(-3px) scale(1.05);
}

.app-icon:active .app-icon__glyph,
.app-icon.is-launching .app-icon__glyph {
  transform: scale(0.88);
}

.app-icon__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  text-align: center;
  line-height: 1.2;
}

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