/* ===== KEYFRAMES & ANIMATIONS ===== */

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.8), 0 0 60px rgba(234, 179, 8, 0.4);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes glow-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.9));
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== UTILITY CLASSES ===== */

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

.floating-hero {
  animation: float 6s ease-in-out infinite;
}

.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.category-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.category-btn:hover::before {
  left: 100%;
}

.cta-banner {
  backdrop-filter: blur(10px);
}

.glow-border {
  box-shadow: 0 0 30px rgba(234, 179, 8, 0.3);
  transition: all 0.3s ease;
}

.glow-border:hover {
  box-shadow: 0 0 50px rgba(234, 179, 8, 0.6);
}

.glow-border-strong {
  animation: glow-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.6);
}

/* ===== PROSE STYLING FOR READABILITY ===== */

.prose-custom {
  line-height: 1.75;
  color: #d1d5db;
}

.prose-custom h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.prose-custom h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fbbf24;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-custom h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fbbf24;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-custom p {
  margin-bottom: 1.25rem;
}

.prose-custom ul,
.prose-custom ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
}

.prose-custom a {
  color: #fbbf24;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose-custom a:hover {
  color: #f59e0b;
}

.prose-custom strong {
  color: #ffffff;
  font-weight: 600;
}

.prose-custom code {
  background-color: #1f2937;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #fbbf24;
}

.prose-custom blockquote {
  border-left: 4px solid #fbbf24;
  padding-left: 1rem;
  font-style: italic;
  color: #9ca3af;
  margin: 1.5rem 0;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose-custom th {
  background-color: #1f2937;
  color: #fbbf24;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid #374151;
}

.prose-custom td {
  padding: 0.75rem;
  border-bottom: 1px solid #374151;
}

.prose-custom img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ===== PARALLAX EFFECT ===== */

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ===== TILT EFFECT ===== */

.tilt-card {
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* ===== RECENT WINNERS ANIMATION ===== */

.recent-winners tr {
  animation: slideInFromLeft 0.5s ease forwards;
  opacity: 0;
}

.recent-winners tr:nth-child(1) {
  animation-delay: 0.1s;
}
.recent-winners tr:nth-child(2) {
  animation-delay: 0.2s;
}
.recent-winners tr:nth-child(3) {
  animation-delay: 0.3s;
}
.recent-winners tr:nth-child(4) {
  animation-delay: 0.4s;
}
.recent-winners tr:nth-child(5) {
  animation-delay: 0.5s;
}
.recent-winners tr:nth-child(6) {
  animation-delay: 0.6s;
}
.recent-winners tr:nth-child(7) {
  animation-delay: 0.7s;
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== SMOOTH SCROLL ===== */

html {
  scroll-behavior: smooth;
}

/* ===== RESPONSIVE OPTIMIZATIONS ===== */

@media (max-width: 768px) {
  .prose-custom h1 {
    font-size: 1.875rem;
  }

  .prose-custom h2 {
    font-size: 1.5rem;
  }

  .prose-custom h3 {
    font-size: 1.25rem;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #fbbf24;
  border-radius: 5px;
}

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

/* ===== EGYPTIAN HIEROGLYPHICS PATTERN (CSS) ===== */

.egyptian-pattern {
  background-color: #000000;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(251, 191, 36, 0.03) 35px,
    rgba(251, 191, 36, 0.03) 70px
  );
}

/* ===== SELECTION STYLING ===== */

::selection {
  background-color: #fbbf24;
  color: #000000;
}

::-moz-selection {
  background-color: #fbbf24;
  color: #000000;
}
