/* Custom animations and styling for Jinxyspin */

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(194, 34, 40, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(194, 34, 40, 0.8);
  }
}

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

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Gradient Backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #c22228 0%, #4f0033 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
}

.gradient-hero {
  background: linear-gradient(135deg, #c22228 0%, #4f0033 50%, #1a1a1a 100%);
}

/* CSS Pattern Backgrounds */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(194, 34, 40, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-grid {
  background-image: linear-gradient(rgba(194, 34, 40, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 34, 40, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Glass Morphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

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

/* Glow Effects */
.glow-border {
  box-shadow: 0 0 20px rgba(194, 34, 40, 0.5);
  border: 2px solid rgba(194, 34, 40, 0.8);
}

.glow-text {
  text-shadow: 0 0 10px rgba(194, 34, 40, 0.8);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #c22228 0%, #a01d22 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d92730 0%, #c22228 100%);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(194, 34, 40, 0.4);
}

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

.btn-secondary:hover {
  background: linear-gradient(135deg, #6a0044 0%, #4f0033 100%);
  transform: scale(1.05);
}

/* Prose Styling for Readability */
.prose {
  color: #e0e0e0;
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose h1 {
  font-size: 2.5rem;
}
.prose h2 {
  font-size: 2rem;
}
.prose h3 {
  font-size: 1.5rem;
}
.prose h4 {
  font-size: 1.25rem;
}

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

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

.prose a:hover {
  color: #d92730;
}

.prose ul,
.prose ol {
  margin-left: 1.5em;
  margin-bottom: 1.25em;
}

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

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

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

/* Mobile Menu Transition */
.mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Slot Card Styles */
.slot-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.slot-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(194, 34, 40, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slot-card:hover::before {
  opacity: 1;
}

.slot-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(194, 34, 40, 0.4);
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-jackpot {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
}

.badge-high-rtp {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: #000;
}

.badge-bonus-buy {
  background: linear-gradient(135deg, #c22228 0%, #4f0033 100%);
  color: #fff;
}

/* Winner Table Styles */
.win-positive {
  color: #00ff88;
  font-weight: 600;
}

.loss-negative {
  color: #ff4444;
  font-weight: 600;
}

/* Trustpilot-style Review Card */
.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(194, 34, 40, 0.3);
}

/* Star Rating */
.star-rating {
  color: #ffd700;
}

/* Floating CTA Banner */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

/* Responsive Grid Utilities */
@media (max-width: 768px) {
  .prose h1 {
    font-size: 2rem;
  }
  .prose h2 {
    font-size: 1.75rem;
  }
  .prose h3 {
    font-size: 1.25rem;
  }
}

/* Category Button 3D Effect */
.category-btn {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 2px solid rgba(194, 34, 40, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.category-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(194, 34, 40, 0.1) 0%, rgba(79, 0, 51, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.category-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(194, 34, 40, 0.4);
  border-color: rgba(194, 34, 40, 0.6);
}

.category-btn:hover::after {
  opacity: 1;
}

/* Modern 3D Category Buttons with Bubbles */
.category-btn-3d {
  position: relative;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
  border: 2px solid rgba(194, 34, 40, 0.3);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 120px;
}

.category-btn-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(194, 34, 40, 0.15) 0%, rgba(79, 0, 51, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  z-index: 1;
}

.category-btn-3d:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(194, 34, 40, 0.7);
  box-shadow: 
    0 12px 35px rgba(194, 34, 40, 0.5),
    0 0 25px rgba(194, 34, 40, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}

.category-btn-3d:hover::before {
  opacity: 1;
}

.category-btn-3d:active {
  transform: translateY(-4px) scale(0.98);
}

.category-name {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.category-btn-3d:hover .category-name {
  text-shadow: 0 0 10px rgba(194, 34, 40, 0.8);
}

.category-bubble {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #c22228 0%, #8b1820 100%);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  box-shadow: 
    0 4px 12px rgba(194, 34, 40, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  animation: bubble-pulse 2s ease-in-out infinite;
}

.category-btn-3d:hover .category-bubble {
  transform: scale(1.15);
  box-shadow: 
    0 6px 20px rgba(194, 34, 40, 0.8),
    0 0 25px rgba(194, 34, 40, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  animation: none;
}

@keyframes bubble-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 4px 12px rgba(194, 34, 40, 0.6),
      inset 0 2px 4px rgba(255, 255, 255, 0.2),
      inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 6px 16px rgba(194, 34, 40, 0.7),
      inset 0 2px 4px rgba(255, 255, 255, 0.25),
      inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-btn-3d {
    min-height: 100px;
    padding: 1rem 0.75rem;
  }
  
  .category-name {
    font-size: 0.875rem;
  }
  
  .category-bubble {
    min-width: 44px;
    height: 44px;
    font-size: 0.75rem;
  }
}

/* Marquee Container */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 30s linear infinite;
}

/* Legal Disclaimer Marquee (Sticky Bottom) */
.legal-marquee {
  display: flex;
  white-space: nowrap;
  animation: legal-scroll 45s linear infinite;
}

.legal-marquee-content {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

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

/* Add padding to body for sticky footer */
body {
  padding-bottom: 32px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px; /* Extra space for mobile CTA + legal footer */
  }
}
