/* Custom CSS for Jokery Casino - Comic Book Theme */

/* Comic book color palette */
:root {
  --comic-black: #0a0a0a;
  --comic-red: #dc2626;
  --comic-red-dark: #991b1b;
  --comic-yellow: #fbbf24;
  --comic-white: #ffffff;
  --comic-gray: #374151;
  --comic-gray-light: #9ca3af;
}

/* Comic book fonts and text effects */
.comic-title {
  font-family: "Impact", "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0px var(--comic-red), 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.comic-text {
  font-family: "Arial", sans-serif;
  font-weight: bold;
}

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--comic-red);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px var(--comic-red), 0 0 60px var(--comic-red);
    transform: scale(1.05);
  }
}

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes particle-float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Animation classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

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

.animate-tilt {
  animation: tilt 4s ease-in-out infinite;
}

/* Comic book styled elements */
.comic-border {
  border: 4px solid var(--comic-black);
  border-radius: 12px;
  position: relative;
}

.comic-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--comic-red);
  border-radius: 12px;
  z-index: -1;
}

.comic-bubble {
  background: var(--comic-white);
  border: 3px solid var(--comic-black);
  border-radius: 20px;
  position: relative;
  padding: 1rem;
}

.comic-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--comic-black);
}

/* Halftone pattern background */
.halftone-bg {
  background-image: radial-gradient(circle, var(--comic-red) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.focus-visible:focus {
  outline: 3px solid var(--comic-yellow);
  outline-offset: 2px;
}

/* Custom button styles */
.btn-comic {
  background: linear-gradient(45deg, var(--comic-red), var(--comic-red-dark));
  border: 3px solid var(--comic-black);
  color: var(--comic-white);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-comic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

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

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

/* Prose styling for readability */
.prose {
  max-width: none;
  color: var(--comic-gray);
  line-height: 1.7;
}

.prose h2 {
  color: var(--comic-black);
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

/* Sticky elements */
.sticky-header {
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 2px solid var(--comic-red);
}

.sticky-bottom {
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.95);
  border-top: 2px solid var(--comic-red);
}

/* Game grid styling */
.game-card {
  background: var(--comic-white);
  border: 3px solid var(--comic-black);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, var(--comic-red) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before {
  opacity: 0.1;
}

/* Responsive utilities */
@media (max-width: 1024px) {
  .comic-title {
    font-size: 2rem;
    text-shadow: 2px 2px 0px var(--comic-red), 4px 4px 0px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 768px) {
  .comic-title {
    font-size: 1.5rem;
    text-shadow: 1px 1px 0px var(--comic-red), 2px 2px 0px rgba(0, 0, 0, 0.3);
  }

  .animate-marquee {
    animation-duration: 15s;
  }
}

/* Particle effects */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--comic-red);
  border-radius: 50%;
  animation: particle-float 6s linear infinite;
}

.particle:nth-child(2n) {
  background: var(--comic-yellow);
  animation-delay: -2s;
}

.particle:nth-child(3n) {
  animation-delay: -4s;
}
