/* Custom Retro Gaming Styles */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P:wght@400&display=swap');

.retro-font {
  font-family: 'Press Start 2P', monospace;
  line-height: 1.6;
}

/* CRT Effect */
.crt-effect {
  position: relative;
}

.crt-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 50%, rgba(0, 255, 0, 0.03) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 10;
}

/* Scanlines animation */
@keyframes scanlines {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    transparent 50%,
    rgba(68, 255, 0, 0.02) 50%
  );
  background-size: 100% 4px;
  animation: scanlines 0.1s linear infinite;
  pointer-events: none;
  z-index: 1000;
}

/* Retro button styling */
.retro-button {
  background: linear-gradient(145deg, #4a5568, #2d3748);
  border: 2px solid #718096;
  box-shadow: 
    inset 2px 2px 4px rgba(255, 255, 255, 0.1),
    inset -2px -2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.retro-button:hover {
  background: linear-gradient(145deg, #5a6578, #3d4758);
  box-shadow: 
    inset 1px 1px 2px rgba(255, 255, 255, 0.1),
    inset -1px -1px 2px rgba(0, 0, 0, 0.5);
}

.retro-button:active {
  box-shadow: 
    inset -2px -2px 4px rgba(255, 255, 255, 0.1),
    inset 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Room hover effects */
.room-cell:hover {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* Achievement glow effect */
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px #ffd700;
  }
  50% {
    text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
  }
}

.achievement-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Meter styling */
.progress-meter {
  background: linear-gradient(90deg, 
    #dc2626 0%, 
    #f59e0b 33%, 
    #eab308 66%, 
    #16a34a 100%);
  border: 2px inset #4b5563;
}

/* Mini map pixel perfect */
.mini-map-pixel {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Digital clock styling */
.digital-display {
  background: #000;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  padding: 4px 8px;
  border: 2px inset #333;
  text-align: center;
  letter-spacing: 2px;
}

/* Toolbar styling */
.tool-panel {
  background: linear-gradient(145deg, #374151, #1f2937);
  border: 3px ridge #6b7280;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Game speed indicator */
.speed-indicator {
  background: radial-gradient(circle, #fbbf24, #f59e0b);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

/* Tiny people animation */
@keyframes walkCycle {
  0%, 100% { transform: translateX(0px); }
  25% { transform: translateX(1px); }
  75% { transform: translateX(-1px); }
}

.tiny-person {
  animation: walkCycle 2s infinite;
}

/* Status bar styling */
.status-bar {
  background: linear-gradient(90deg, #1f2937, #374151, #1f2937);
  border-top: 2px solid #6b7280;
}

/* Tower shadow effect */
.tower-shadow {
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
}

/* Scrollbar styling for webkit browsers */
.custom-scrollbar::-webkit-scrollbar {
  width: 12px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 6px;
  border: 2px solid #374151;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Floor number styling */
.floor-number {
  background: linear-gradient(145deg, #4b5563, #374151);
  border: 1px solid #6b7280;
  color: #f3f4f6;
  text-align: center;
  font-weight: bold;
}

/* Room occupancy indicators */
.occupancy-high {
  box-shadow: inset 0 0 10px rgba(34, 197, 94, 0.5);
}

.occupancy-medium {
  box-shadow: inset 0 0 10px rgba(251, 191, 36, 0.5);
}

.occupancy-low {
  box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.5);
}