/* Custom animations and styling for GoKong Casino */

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

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

@keyframes parallax-bg {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-50px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
  }
}

@keyframes bounce-in {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) rotate(5deg);
  }
  70% {
    transform: scale(0.9) rotate(-2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

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

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

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

.animate-parallax {
  animation: parallax-bg 10s ease-in-out infinite;
}

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

.animate-bounce-in {
  animation: bounce-in 0.8s ease-out forwards;
}

/* Custom gradient backgrounds */
.bg-gokong-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
}

.bg-gokong-dark {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.bg-gokong-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* Prose styling for readability */
.prose {
  line-height: 1.7;
  color: #e2e8f0;
}

.prose h2 {
  color: #f1f5f9;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

/* Custom card styles */
.game-card {
  transition: all 0.3s ease;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Bonus calculator styling */
.calculator-input {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #475569;
  color: #e2e8f0;
  transition: all 0.3s ease;
}

.calculator-input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Sticky sidebar */
.sidebar-sticky {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 0 12px 12px 0;
  padding: 1rem 0.5rem;
}

/* Mobile burger menu */
.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

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

/* Focus states for accessibility */
.focus-visible:focus {
  outline: 2px solid #ec4899;
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #ec4899;
  border-radius: 4px;
}

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

/* Responsive utilities */
@media (max-width: 1023px) {
  .sidebar-sticky {
    display: none;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}
