/* =================================================================
   Slotorado Casino - Custom CSS
   Theme: Crown Frontier UK (Deep Gold + Navy + Velvet)
================================================================= */

/* -----------------------------------------------------------------
   Base / Reset
----------------------------------------------------------------- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  word-break: break-word;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -----------------------------------------------------------------
   Typography
----------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  word-break: break-word;
}

/* -----------------------------------------------------------------
   Scrollable Table Wrapper
----------------------------------------------------------------- */
.prose-casino .prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

.prose-casino .prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* Generic table overflow wrapper for all tables across the site */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* -----------------------------------------------------------------
   Prose Styling (for .Content / single pages)
----------------------------------------------------------------- */
.prose-casino {
  color: #F5ECD7;
  max-width: 75ch;
  font-size: 1rem;
  line-height: 1.75;
}

.prose-casino h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #E8C96A;
  margin-bottom: 1rem;
  margin-top: 0;
}

.prose-casino h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #C9A84C;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2A3A5C;
}

.prose-casino h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #E8C96A;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #C9A84C;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.prose-casino p {
  margin-bottom: 1rem;
  color: rgba(245, 236, 215, 0.85);
}

.prose-casino a {
  color: #C9A84C;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: #E8C96A;
}

.prose-casino ul,
.prose-casino ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: rgba(245, 236, 215, 0.8);
}

.prose-casino ul {
  list-style-type: disc;
}

.prose-casino ol {
  list-style-type: decimal;
}

.prose-casino li {
  margin-bottom: 0.4rem;
}

.prose-casino strong {
  color: #E8C96A;
  font-weight: 700;
}

.prose-casino em {
  color: rgba(245, 236, 215, 0.9);
  font-style: italic;
}

.prose-casino blockquote {
  border-left: 4px solid #C9A84C;
  padding-left: 1rem;
  color: rgba(245, 236, 215, 0.7);
  font-style: italic;
  margin: 1.5rem 0;
  background: rgba(12, 27, 62, 0.3);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1rem 1rem 1.25rem;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #2A3A5C;
  margin: 2rem 0;
}

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

.prose-casino pre {
  background: #111827;
  border: 1px solid #2A3A5C;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose-casino pre code {
  background: none;
  padding: 0;
  color: #F5ECD7;
}

/* Prose Table Styles */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.prose-casino thead tr {
  background-color: #162855;
}

.prose-casino th {
  color: #C9A84C;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid #2A3A5C;
}

.prose-casino td {
  padding: 0.625rem 1rem;
  border: 1px solid #2A3A5C;
  color: rgba(245, 236, 215, 0.8);
  vertical-align: top;
}

.prose-casino tbody tr:hover {
  background-color: rgba(22, 40, 85, 0.2);
}

.prose-casino tbody tr:nth-child(even) {
  background-color: rgba(22, 40, 85, 0.1);
}

/* -----------------------------------------------------------------
   Animations
----------------------------------------------------------------- */

/* Parallax helper class */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Marquee / ticker animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Fade-in on scroll (requires JS IntersectionObserver) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Glow pulse for CTA buttons */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 8px 2px rgba(201, 168, 76, 0.3);
  }
  50% {
    box-shadow: 0 0 24px 8px rgba(201, 168, 76, 0.6);
  }
}

.cta-primary {
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* Shimmer for bonus badge */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.bonus-badge {
  background: linear-gradient(
    120deg,
    #9A7A2E 0%,
    #C9A84C 30%,
    #E8C96A 50%,
    #C9A84C 70%,
    #9A7A2E 100%
  );
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* Spin animation for icons */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.icon-spin-slow {
  animation: spinSlow 8s linear infinite;
}

/* Card hover lift */
.game-card,
.promo-card,
.step-card,
.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.15);
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.12);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.12);
}

/* Word cloud provider tags */
.provider-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  transition: color 0.2s, background 0.2s;
  cursor: default;
}

.provider-tag:hover {
  background: rgba(201, 168, 76, 0.1);
  color: #E8C96A;
}

/* -----------------------------------------------------------------
   Header / Navigation
----------------------------------------------------------------- */
.site-header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A84C;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.play-cta {
  position: relative;
  overflow: hidden;
}

.play-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.play-cta:hover::before {
  left: 130%;
}

/* Mobile nav links */
.mobile-nav-link {
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.mobile-nav-link:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

/* -----------------------------------------------------------------
   Hero Section
----------------------------------------------------------------- */
.hero-section {
  position: relative;
}

/* Crown/frontier decorative CSS shape */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #0A0E1A;
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 75% 0%, 50% 40%, 25% 0%, 0 40%);
  z-index: 5;
}

/* -----------------------------------------------------------------
   Step badges
----------------------------------------------------------------- */
.step-badge {
  border: 3px solid rgba(201, 168, 76, 0.5);
  animation: glowPulse 3s ease-in-out infinite;
}

/* -----------------------------------------------------------------
   FAQ Accordion
----------------------------------------------------------------- */
.faq-question {
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  background: transparent;
}

.faq-question:hover {
  background: rgba(22, 40, 85, 0.3);
}

.faq-answer {
  border-top: 1px solid #2A3A5C;
}

.faq-icon {
  margin-left: 0.5rem;
}

/* -----------------------------------------------------------------
   Scrollbar Styling (Webkit)
----------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0A0E1A;
}

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

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

/* -----------------------------------------------------------------
   Utility
----------------------------------------------------------------- */
.text-shadow-gold {
  text-shadow: 0 2px 12px rgba(201, 168, 76, 0.5);
}

.border-gradient-gold {
  border-image: linear-gradient(135deg, #9A7A2E, #E8C96A, #9A7A2E) 1;
}

/* Selection highlight */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #F5ECD7;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .site-header,
  footer {
    display: none !important;
  }
}

/* -----------------------------------------------------------------
   Responsive Overrides
----------------------------------------------------------------- */
@media (max-width: 640px) {
  .bonus-badge {
    padding: 1rem 1.25rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .step-badge {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .prose-casino {
    font-size: 0.9375rem;
  }

  .prose-casino h1 {
    font-size: 1.75rem;
  }

  .prose-casino h2 {
    font-size: 1.4rem;
  }
}

/* Ensure tables never break the layout on small screens */
table {
  max-width: 100%;
}

td, th {
  word-break: break-word;
}
