/* ═══ macOS Desktop Chrome ═══ */

/* Menu Bar */
#macMenuBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--fill);
  border-bottom: 1px solid var(--sep);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  font-size: 13px;
}

/* Window container */
#macWindow {
  margin-top: 28px;
  background: var(--win);
  min-height: calc(100vh - 28px - 70px);
  position: relative;
}

/* Title bar */
.mac-titlebar {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--fill);
  border-bottom: 1px solid var(--sep);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  height: 52px;
}

.mac-win-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  pointer-events: none;
}

/* Sidebar toggle button */
#macSidebarBtn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--fill-2);
  border: 1px solid var(--sep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t);
  color: var(--text);
}

#macSidebarBtn:hover {
  background: var(--fill-3);
}

/* Share button */
#macShareBtn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--fill-2);
  border: 1px solid var(--sep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t);
  color: var(--text);
}

#macShareBtn:hover {
  background: var(--fill-3);
}

/* Window content */
.mac-win-body {
  position: relative;
  overflow: auto;
}

/* Dock */
#macDock {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: var(--fill);
  border: 1px solid var(--sep);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-win);
  z-index: 999;
}

.dock-item {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--fill-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t), background var(--t);
  position: relative;
  text-decoration: none;
}

.dock-item:hover {
  background: var(--fill-3);
  transform: translateY(-4px);
}

.dock-item.active {
  background: var(--accent-tint);
}

.dock-ico {
  font-size: 24px;
  color: var(--text);
}

.dock-ico.di-blue { color: #3b82f6; }
.dock-ico.di-green { color: #10b981; }
.dock-ico.di-orange { color: #f59e0b; }
.dock-ico.di-purple { color: #8b5cf6; }
.dock-ico.di-red { color: #ef4444; }

.dock-tip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fill-3);
  color: var(--text);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
  margin-bottom: 8px;
}

.dock-item:hover .dock-tip {
  opacity: 1;
}

.dock-dot {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

.dock-item.active .dock-dot {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  #macDock {
    bottom: 4px;
    padding: 6px 8px;
    gap: 4px;
  }
  
  .dock-item {
    width: 40px;
    height: 40px;
  }
  
  .dock-ico {
    font-size: 20px;
  }
  
  .mac-win-title {
    font-size: 12px;
  }
}
