/* Custom styles for Code Review Game */

body {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  line-height: 1.6;
}

/* Retro government office styling */
.retro-paper {
  background: linear-gradient(45deg, #f5f5dc 25%, #f8f8dc 25%, #f8f8dc 50%, #f5f5dc 50%, #f5f5dc 75%, #f8f8dc 75%);
  background-size: 4px 4px;
}

/* Custom stamp effect */
.stamp-approved {
  transform: rotate(-5deg);
  border: 3px solid #22c55e;
  color: #22c55e;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.1);
}

.stamp-rejected {
  transform: rotate(5deg);
  border: 3px solid #ef4444;
  color: #ef4444;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.1);
}

/* Code syntax highlighting improvements */
.code-viewer {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
}

/* Animated elements */
@keyframes paperSlide {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.paper-slide {
  animation: paperSlide 0.5s ease-out;
}

/* Timer warning colors */
.timer-warning {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Custom scrollbar for code areas */
.code-viewer::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.code-viewer::-webkit-scrollbar-track {
  background: #374151;
}

.code-viewer::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 4px;
}

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

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

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(0);
}

/* Card shadow effects */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .text-xl {
    font-size: 1.1rem;
  }
  
  .text-2xl {
    font-size: 1.4rem;
  }
  
  .text-3xl {
    font-size: 1.6rem;
  }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success/error states */
.success-glow {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.error-glow {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}