/* Custom animations and overrides for Pistolo Casino Theme */

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

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

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

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

@keyframes explosion {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

/* 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 2s ease-in-out infinite;
}

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

/* Battle theme backgrounds */
.battle-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
  position: relative;
}

.battle-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Crosshair pattern */
.crosshair-pattern {
  background-image: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 193, 7, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* NERF-style buttons */
.nerf-btn {
  position: relative;
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  border: 2px solid #d97706;
  border-radius: 32px !important;
  transform: perspective(1000px) rotateX(5deg);
  transition: all 0.3s ease;
}

.nerf-btn:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  border-radius: 32px !important;
}

.nerf-btn:active {
  transform: perspective(1000px) rotateX(5deg) translateY(1px);
  border-radius: 32px !important;
}

/* Explosion effects */
.explosion-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.explosion-container::after {
  content: "💥";
  position: absolute;
  top: 10%;
  right: 10%;
  font-size: 2rem;
  opacity: 0.6;
  animation: explosion 3s ease-in-out infinite;
}

/* Prose styling for readability */
.prose {
  max-width: none;
}

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


.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(30,64,175,0.08), 0 1px 0 #fbbf24;
  margin-top: 2.2rem;
  margin-bottom: 1.1rem;
  line-height: 1.2;
}

.prose h1 {
  font-size: 2.2rem;
  border-bottom: 2px solid #fbbf24;
  padding-bottom: 0.4rem;
}
.prose h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid #fbbf24;
  padding-bottom: 0.3rem;
}
.prose h3 {
  font-size: 1.25rem;
}
.prose h4, .prose h5, .prose h6 {
  font-size: 1.08rem;
}


.prose ul, .prose ol {
  margin: 1.2rem 0 1.2rem 1.5rem;
  padding-left: 1.5rem;
}
.prose ul {
  list-style: disc inside;
}
.prose ol {
  list-style: decimal inside;
}
.prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
  line-height: 1.7;
}
.prose ul ul, .prose ol ul, .prose ul ol, .prose ol ol {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}
/* Table styling for .prose */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #1f029d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30,64,175,0.06);
}
.prose th, .prose td {
  padding: 0.75rem 1.2rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}
.prose th {
  background: #fbbf24;
  color: #1e40af;
  font-weight: 800;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  text-shadow: 0 1px 0 #fff;
}
.prose tr:nth-child(even) td {
  background: #003060;
}
.prose tr:hover td {
  background: #fbbf24;
  color: #1e40af;
  transition: background 0.2s, color 0.2s;
}

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

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

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

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

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

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  background: #f6f8fa !important;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 24px;
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

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

.game-card::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;
}

.game-card:hover::before {
  left: 100%;
}

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

@media (max-width: 1024px) {
  .sticky-sidebar {
    display: none;
  }
}

/* Badge animations */
.badge-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-stack > * {
    width: 100% !important;
    margin-bottom: 1rem;
  }
}

/* Branded header menu styles */
.header-menu-link {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 1.08rem;
  text-shadow: 0 2px 8px rgba(30,64,175,0.10), 0 1px 0 #fbbf24;
  transition: color 0.2s, text-shadow 0.2s;
}
.header-menu-link:hover, .header-menu-link:focus {
  color: #fbbf24 !important;
  text-shadow: 0 2px 16px #fbbf24, 0 1px 0 #fff;
}

.stort-nu-btn {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 1.08rem;
  text-shadow: 0 2px 8px rgba(30,64,175,0.10), 0 1px 0 #fbbf24;
}