/* Pixel Art Decorations */
.pixel-scene {
  position: relative;
  width: 100%;
  height: 32px;
  margin: 2rem 0;
  overflow: visible;
}

.pixel-decoration {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #000000;
  image-rendering: pixelated;
  opacity: 0.7;
}

.pixel-1 {
  left: 10%;
  top: 12px;
  animation: mac-bounce 3s infinite ease-in-out;
}

.pixel-2 {
  left: 25%;
  top: 8px;
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: mac-spin 6s infinite linear;
}

.pixel-3 {
  left: 50%;
  top: 10px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  animation: mac-bounce 4s infinite ease-in-out 1s;
}

.pixel-4 {
  left: 75%;
  top: 14px;
  border-radius: 50%;
  animation: mac-float 5s infinite ease-in-out;
}

.pixel-5 {
  left: 90%;
  top: 6px;
  width: 6px;
  height: 6px;
  animation: mac-pulse 2s infinite ease-in-out;
}

/* Animations */
@keyframes mac-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes mac-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes mac-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-8px) translateX(4px); }
  66% { transform: translateY(-4px) translateX(-4px); }
}

@keyframes mac-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Mac Window Header */
.mac-window-header {
  border: 2px solid #000000;
  border-bottom: 1px solid #000000;
  background: linear-gradient(180deg, #f0f0f0 0%, #d0d0d0 100%);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}

.mac-buttons {
  display: flex;
  gap: 0.5rem;
}

.mac-button {
  width: 12px;
  height: 12px;
  border: 1px solid #000000;
  display: inline-block;
  image-rendering: pixelated;
}

.mac-button.mac-close {
  background-color: #ff5f56;
}

.mac-button.mac-minimize {
  background-color: #ffbd2e;
}

.mac-button.mac-maximize {
  background-color: #27c93f;
}

.mac-title {
  font-family: 'Geist Mono', monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000000;
}

/* Battery-friendly animations on mobile - run 3 times then stop */
@media (max-width: 768px) {
  .pixel-decoration {
    animation-iteration-count: 3 !important;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pixel-decoration {
    animation: none !important;
  }
}
