/* Custom CSS for Roostino Casino Theme */

/* Keyframe Animations */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

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

@keyframes tiltHover {
  0% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Chess-board background pattern */
.chess-bg {
  background-image: linear-gradient(45deg, rgba(30, 58, 138, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(30, 58, 138, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(30, 58, 138, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(30, 58, 138, 0.1) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Farm-themed elements */
.farm-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 3px solid #d97706;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.2);
}

.farm-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 2px solid #991b1b;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  transition: all 0.3s ease;
}

.farm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Parallax animations */
.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.parallax-slow {
  animation: parallaxFloat 8s ease-in-out infinite reverse;
}

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

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 20s linear infinite;
}

/* Tilt effect */
.tilt-hover:hover {
  animation: tiltHover 0.3s ease-out forwards;
}

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

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

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

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

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

/* Inner page content styles */
.inner-content {
  line-height: 1.7;
  color: #e5e7eb;
  font-size: 1.15rem;
}
.inner-content h1 {
  color: #fde68a;
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.inner-content h2 {
  color: #fff!important;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.inner-content h3 {
  color: #f59e42;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.inner-content p {
  margin-bottom: 1.25rem;
}
.inner-content ul,
.inner-content ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
  padding-left: 1.5rem;
}
.inner-content ul {
  list-style-type: disc;
}
.inner-content ol {
  list-style-type: decimal;
}
.inner-content li {
  margin-bottom: 0.5rem;
}
.inner-content a {
  color: #fde68a;
  text-decoration: underline;
  transition: color 0.2s;
}
.inner-content a:hover {
  color: #fbbf24;
}
.inner-content blockquote {
  border-left: 4px solid #fde68a;
  padding-left: 1rem;
  color: #fbbf24;
  font-style: italic;
  margin: 1.5rem 0;
}
.inner-content img {
  max-width: 100%;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}
.inner-content code {
  background: #1e293b;
  color: #fde68a;
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  font-size: 0.95em;
}
.inner-content pre {
  background: #1e293b;
  color: #fde68a;
  padding: 1em;
  border-radius: 0.5em;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.inner-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.inner-content th,
.inner-content td {
  border: 1px solid #374151;
  padding: 0.75em 1em;
}
.inner-content th {
  background: #1e3a8a;
  color: #fde68a;
}
.inner-content tr:nth-child(even) td {
  background: #111827;
}
.inner-content hr {
  border: none;
  border-top: 1px solid #374151;
  margin: 2rem 0;
}

.prose h2 {
  color: #1e3a8a;
  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;
}

/* Game grid hover effects */
.game-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.game-card img {
  transition: transform 0.3s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

/* Bonus calculator styling */
.calculator-input {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #d97706;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  color: #1e3a8a;
}

.calculator-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Sticky sidebar */
.sidebar-sticky {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0 12px 12px 0;
  padding: 1rem 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

/* Badge animations */
.badge-pulse {
  animation: pulse 2s infinite;
}

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

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

/* Mobile optimizations */
@media (max-width: 768px) {
  .chess-bg {
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  }

  .parallax-float,
  .parallax-slow {
    animation: none;
  }
}

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