@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #root {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.font-space {
  font-family: 'Space Grotesk', sans-serif;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #4a4a6a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a5a7a;
}

/* Touch-friendly on mobile */
@media (max-width: 1024px) {
  button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Glassmorphism effect for sidebar */
aside {
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
button {
  transition: all 0.15s ease;
}

/* Brick preview container */
.brick-preview canvas {
  border-radius: 8px;
}

/* Active brick glow */
.active-brick {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Pulse animation for validation indicator */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 255, 0, 0); }
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 68, 68, 0); }
}

/* Mobile bottom sheet styles */
@media (max-width: 1024px) {
  aside {
    max-height: 60vh;
    bottom: 0;
    top: auto;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-left: none;
    border-top: 1px solid #374151;
  }
}

/* Header gradient accent */
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #06b6d4, #3b82f6, transparent);
}