/* Custom Animations and Styles for ZuluSpins Casino */

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Holographic CTA Effect */
.holographic-cta {
  position: relative;
  overflow: hidden;
  animation: holographic-shimmer 3s ease-in-out infinite;
}

.holographic-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: holographic-rotate 4s linear infinite;
}

@keyframes holographic-shimmer {
  0%, 100% {
    filter: hue-rotate(0deg) brightness(1);
  }
  50% {
    filter: hue-rotate(15deg) brightness(1.1);
  }
}

@keyframes holographic-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Pulse Glow Effect */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), 0 0 60px rgba(147, 51, 234, 0.4);
  }
}

/* Floating Hero Animation */
.floating-hero {
  animation: floating 6s ease-in-out infinite;
}

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

/* Parallax Layer Effect */
.parallax-layer {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Tilt Effect on Hover */
.tilt-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

/* Prose Styling for Content Pages */
.prose {
  color: #374151;
  line-height: 1.75;
}

.prose h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #111827;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

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

.prose a {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #2563eb;
}

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

.prose ul {
  list-style-type: disc;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose ol {
  list-style-type: decimal;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

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

.prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  font-style: italic;
  color: #6b7280;
  margin: 1.5rem 0;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

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

.prose th,
.prose td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background-color: #f9fafb;
  font-weight: 600;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Hover Glow */
.card-glow:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  transition: box-shadow 0.3s ease;
}

/* Mobile Menu Fade In */
#mobile-menu {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Text Balance */
.text-balance {
  text-wrap: balance;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

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

/* ========================================
   Mobile Menu Styles
   ======================================== */

/* Hamburger Icon Animation */
.hamburger-icon {
  transition: transform 0.3s ease;
}

.hamburger-line-top,
.hamburger-line-middle,
.hamburger-line-bottom {
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-open .hamburger-icon {
  transform: rotate(90deg);
}

.hamburger-open .hamburger-line-top {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-open .hamburger-line-middle {
  opacity: 0;
}

.hamburger-open .hamburger-line-bottom {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay-open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 400px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu-open {
  transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

/* Mobile Menu Content */
.mobile-menu-content {
  flex: 1;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  background-color: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
  color: #3b82f6;
}

.mobile-menu-link span:first-child {
  font-size: 1.5rem;
  width: 32px;
  text-align: center;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: block;
  text-align: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-menu-btn-secondary {
  color: #374151;
  background: white;
  border: 2px solid #e5e7eb;
}

.mobile-menu-btn-secondary:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #3b82f6;
}

.mobile-menu-btn-primary {
  color: white;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.mobile-menu-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.mobile-menu-btn-primary:active {
  transform: translateY(0);
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}
