@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Orbitron:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --golden: #FFD700;
  --deep-space: #0a0a0a;
  --mystical-purple: #4B0082;
  --deep-red: #8B0000;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

.font-orbitron {
  font-family: 'Orbitron', monospace;
}

.font-courier {
  font-family: 'Courier Prime', monospace;
}

.text-golden {
  color: var(--golden);
}

.border-golden {
  border-color: var(--golden);
}

.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Custom animations */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Glowing effects */
.glow {
  text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

.glow-box {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Particle effects */
canvas {
  pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--deep-space);
}

::-webkit-scrollbar-thumb {
  background: var(--golden);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFA500;
}

/* Hover effects for interactive elements */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Mystical background pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(75, 0, 130, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Pulsing animation for important elements */
@keyframes sacred-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.sacred-pulse {
  animation: sacred-pulse 2s ease-in-out infinite;
}

/* Egyptian-inspired decorative elements */
.hieroglyph-border {
  border-image: linear-gradient(45deg, var(--golden), transparent, var(--golden)) 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .text-4xl {
    font-size: 2rem;
  }
  
  .text-6xl {
    font-size: 2.5rem;
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .space-x-8 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 1rem;
  }
  
  .py-4 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Loading animation for dynamic content */
.loading-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Enhanced button hover effects */
button:hover {
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

button:active {
  transform: scale(0.95);
}

/* Modal entrance animation */
.modal-enter {
  animation: modal-fade-in 0.3s ease-out;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}