/* macOS UI mockups — Gatekeeper / Finder / System Settings */

.mac-scene {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  line-height: 1.35;
  color: #1d1d1f;
  user-select: none;
  pointer-events: none;
}

.mac-desktop-bg {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background:
    linear-gradient(160deg, #2d5a87 0%, #1a3352 40%, #4a90c2 100%);
  opacity: 0.95;
}

.mac-scene-alert {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-radius: 12px;
  overflow: hidden;
}

.mac-alert {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 28px 24px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 13px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 22px 70px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.mac-alert-sm {
  max-width: 320px;
  padding: 22px 20px 16px;
}

.mac-app-icon {
  display: block;
  object-fit: cover;
  border-radius: 22%;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mac-app-icon-xl {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.mac-app-icon-lg {
  width: 48px;
  height: 48px;
}

.mac-app-icon-md {
  width: 40px;
  height: 40px;
}

.mac-app-icon-sm {
  width: 32px;
  height: 32px;
  margin: 0;
  flex-shrink: 0;
}

.mac-app-icon-fallback {
  background: linear-gradient(135deg, #1a4a7a, #e8874a);
}

.mac-alert-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  color: #1d1d1f;
}

.mac-alert-body {
  font-size: 11px;
  line-height: 1.45;
  color: #6e6e73;
  margin: 0 0 20px;
}

.mac-alert-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mac-btn {
  display: inline-block;
  min-width: 88px;
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  cursor: default;
}

.mac-btn-default {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.mac-btn-cancel {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.mac-btn-primary {
  background: #007aff;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* Finder scene */
.mac-scene-finder {
  padding: 20px;
  background: #d8d8de;
  border-radius: 12px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mac-finder {
  width: 100%;
  max-width: 440px;
  background: #ececec;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.2);
}

.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: linear-gradient(180deg, #f6f6f6 0%, #ececec 100%);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
}

.mac-traffic {
  display: flex;
  gap: 7px;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-dot-red { background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12); }
.mac-dot-yellow { background: #febc2e; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12); }
.mac-dot-green { background: #28c840; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12); }

.mac-titlebar-title {
  font-size: 13px;
  font-weight: 600;
  color: #3c3c43;
}

.mac-finder-body {
  position: relative;
  display: flex;
  min-height: 180px;
  background: #fff;
}

.mac-sidebar {
  width: 140px;
  padding: 10px 8px;
  background: #f5f5f7;
  border-right: 0.5px solid rgba(0, 0, 0, 0.08);
}

.mac-sidebar-item {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #1d1d1f;
}

.mac-sidebar-item-active {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
  font-weight: 500;
}

.mac-finder-main {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: flex-start;
}

.mac-finder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  padding: 8px 4px;
  border-radius: 8px;
}

.mac-finder-item-target {
  background: rgba(0, 122, 255, 0.1);
  outline: 2px solid rgba(0, 122, 255, 0.35);
  outline-offset: 2px;
}

.mac-finder-name {
  font-size: 11px;
  text-align: center;
  color: #1d1d1f;
  word-break: break-word;
}

.mac-context-menu {
  position: absolute;
  top: 48px;
  right: 24px;
  min-width: 168px;
  padding: 4px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.mac-menu-item {
  padding: 4px 18px;
  font-size: 13px;
  color: #1d1d1f;
}

.mac-menu-item-active {
  background: #007aff;
  color: #fff;
  margin: 0 4px;
  padding: 4px 14px;
  border-radius: 4px;
}

.mac-menu-sep {
  height: 1px;
  margin: 4px 8px;
  background: rgba(0, 0, 0, 0.1);
}

.mac-alert-confirm {
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.25);
}

.mac-alert-confirm .mac-app-icon {
  margin-bottom: 12px;
}

/* System Settings */
.mac-scene-settings {
  padding: 16px;
  background: #e8e8ed;
  border-radius: 12px;
}

.mac-settings {
  display: flex;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 280px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.15);
}

.mac-settings-sidebar {
  width: 168px;
  padding: 12px 8px;
  background: #f5f5f7;
  border-right: 0.5px solid rgba(0, 0, 0, 0.08);
}

.mac-settings-nav {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 6px;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.mac-settings-nav.is-active {
  background: rgba(0, 122, 255, 0.14);
  color: #007aff;
  font-weight: 500;
}

.mac-settings-main {
  flex: 1;
  padding: 20px 24px;
}

.mac-settings-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.mac-settings-card {
  padding: 16px;
  background: #f5f5f7;
  border-radius: 10px;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
}

.mac-settings-card-highlight {
  border-color: rgba(0, 122, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.mac-settings-card-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.mac-settings-card-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
}

.mac-settings-card-body {
  font-size: 12px;
  color: #6e6e73;
  margin: 0;
  line-height: 1.45;
}

.mac-btn-settings {
  width: 100%;
  padding: 8px 16px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .mac-scene-finder {
    padding: 12px;
  }

  .mac-finder-body {
    min-height: 160px;
  }

  .mac-context-menu {
    right: 8px;
    top: 40px;
    min-width: 140px;
  }

  .mac-settings {
    flex-direction: column;
  }

  .mac-settings-sidebar {
    width: 100%;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-right: none;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  }

  .mac-settings-nav {
    white-space: nowrap;
  }
}
