/*
 * TEMPLATE — KİLİTLİ / LOCKED
 * Ortak masaüstü şablon stilleri (heros/desktop + shared wallpaper/js).
 * Değiştirme; ancak kullanıcı açıkça şablon düzenlemesi isterse dokun.
 * Yeni herolar ek CSS dosyası kullansın; bu dosyayı kopyalayıp genişletme.
 */
:root {
  --scene-w: 1600px;
  --scene-h: 1000px;
  --taskbar-h: 56px;
  --accent: #4cc2ff;
  --tb-bg: rgba(18, 22, 30, 0.82);
  --tb-hover: rgba(255, 255, 255, 0.08);
  --tb-border: rgba(255, 255, 255, 0.1);
  --desk-label: #f4f7fb;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #07090d;
  color: #e8edf5;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

body {
  display: grid;
  place-items: center;
}

.stage {
  width: var(--scene-w);
  height: var(--scene-h);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.scene {
  position: relative;
  width: var(--scene-w);
  height: var(--scene-h);
  overflow: hidden;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-select: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wallpaper {
  position: absolute;
  inset: 0;
  background: #0c1a26 url("wallpaper.svg") center / cover no-repeat;
  z-index: 0;
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.desktop-icons {
  position: absolute;
  top: 10px;
  left: 6px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, 92px);
  grid-auto-columns: 86px;
  column-gap: 4px;
  z-index: 1;
  pointer-events: none;
}

.desk-icon--bin {
  position: absolute;
  left: 6px;
  bottom: calc(var(--taskbar-h) + 10px);
  z-index: 1;
  pointer-events: none;
}

.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 4px 4px;
}

.desk-icon__img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.desk-icon__img svg {
  width: 48px;
  height: 48px;
  display: block;
}

.desk-icon span {
  max-width: 78px;
  color: var(--desk-label);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.01em;
}

.layer-windows {
  position: absolute;
  inset: 0 0 var(--taskbar-h) 0;
  z-index: 2;
}

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-h);
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 6px;
  background: var(--tb-bg);
  backdrop-filter: blur(44px) saturate(1.5);
  -webkit-backdrop-filter: blur(44px) saturate(1.5);
  border-top: 1px solid var(--tb-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 -10px 28px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.taskbar::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.taskbar::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tb-cluster,
.tb-tray {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.tb-cluster {
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
}

.tb-split {
  width: 10px;
  flex: 0 0 10px;
}

.tb-tray {
  justify-self: end;
  justify-content: flex-end;
  gap: 2px;
  height: 100%;
  padding-right: 8px;
}

.tb-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.tb-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tb-btn--glyph svg {
  width: 20px;
  height: 20px;
}

.tb-btn--app svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
}

.tray-ico {
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #e8edf4;
}

.tray-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.tray-lang {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e8edf4;
}

.tray-clock {
  min-width: 70px;
  height: 40px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  border-radius: 4px;
  color: #f2f5fa;
  line-height: 1.15;
}

.tray-clock time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tray-clock span {
  font-size: 11px;
  opacity: 0.92;
}

.tray-notify {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}

.tray-notify svg {
  width: 16px;
  height: 16px;
}

.show-desktop {
  width: 5px;
  align-self: stretch;
  margin: 0 0 0 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
