/* =============================================================
   NanaCasino Custom CSS – Alpine Fortune Theme
   Target: Hugo v0.128+ with Tailwind CSS CDN
   Color Palette: Platinum, Silver, Gold on Deep Alpine Dark
============================================================= */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* -------------------------------------------------------
   Prose Casino – Content Styling
------------------------------------------------------- */
.prose-casino {
  color: #C0C0C0;
  max-width: 100%;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1 {
  color: #CFB53B;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

.prose-casino h3 {
  color: #E5E4E2;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.prose-casino p {
  margin-bottom: 1rem;
  color: #C0C0C0;
}

.prose-casino a {
  color: #8ECAE6;
  text-decoration: underline;
  transition: color 0.2s;
}

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

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

.prose-casino em {
  color: #C0C0C0;
  font-style: italic;
}

.prose-casino ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #C0C0C0;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #C0C0C0;
}

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

.prose-casino blockquote {
  border-left: 4px solid #CFB53B;
  padding-left: 1rem;
  color: #E5E4E2;
  font-style: italic;
  margin: 1.5rem 0;
  background: rgba(207, 181, 59, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1rem 1rem 1.25rem;
}

.prose-casino code {
  background: #182035;
  color: #F5E27C;
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
  font-size: 0.875em;
  font-family: monospace;
}

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

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

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

/* -------------------------------------------------------
   Prose Table Scroll (Mandatory Classes)
------------------------------------------------------- */
.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;
}

/* -------------------------------------------------------
   Prose Tables
------------------------------------------------------- */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #C0C0C0;
}

.prose-casino thead tr {
  background: #1A2340;
  border-bottom: 2px solid #2A3A5C;
}

.prose-casino thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #CFB53B;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose-casino tbody tr {
  border-bottom: 1px solid #2A3A5C;
  transition: background 0.2s;
}

.prose-casino tbody tr:hover {
  background: rgba(26, 35, 64, 0.5);
}

.prose-casino tbody td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}

/* -------------------------------------------------------
   Global Table Wrapper Utility
------------------------------------------------------- */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

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

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

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

/* -------------------------------------------------------
   Parallax Hero
------------------------------------------------------- */
.parallax-hero {
  will-change: transform;
  transform: translateZ(0);
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .parallax-hero {
    background-attachment: scroll;
  }
}

/* -------------------------------------------------------
   CTA Pulse Animation
------------------------------------------------------- */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(207, 181, 59, 0.4), 0 4px 24px rgba(207, 181, 59, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(207, 181, 59, 0), 0 4px 32px rgba(207, 181, 59, 0.5);
  }
}

.pulse-cta {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* -------------------------------------------------------
   Word Cloud Styles
------------------------------------------------------- */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.word-cloud span {
  font-weight: 700;
  color: #E5E4E2;
  transition: color 0.2s, transform 0.2s;
  cursor: default;
  line-height: 1.2;
}

.word-cloud span:hover {
  color: #CFB53B;
  transform: scale(1.05);
}

.wc-xl { font-size: 1.4rem; color: #CFB53B; }
.wc-lg { font-size: 1.15rem; color: #E5E4E2; }
.wc-md { font-size: 0.95rem; color: #C0C0C0; }
.wc-sm { font-size: 0.8rem; color: #A0A0A0; }

/* -------------------------------------------------------
   Promo Cards
------------------------------------------------------- */
.promo-card {
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #CFB53B, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

/* -------------------------------------------------------
   Step Cards
------------------------------------------------------- */
.step-card {
  position: relative;
}

.step-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 0%, rgba(207, 181, 59, 0.05) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.step-card:hover::after {
  opacity: 1;
}

/* -------------------------------------------------------
   Game Cards
------------------------------------------------------- */
.game-card {
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(207,181,59,0.05) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

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

/* -------------------------------------------------------
   Alpine Crystal SVG Pattern Background
------------------------------------------------------- */
.bg-crystal-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23CFB53B' fill-opacity='0.04'%3E%3Cpath d='M30 0l30 17.32v34.64L30 60 0 51.96V17.32z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

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

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

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

/* -------------------------------------------------------
   Focus Styles (Accessibility)
------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #CFB53B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------------------------------------------------------
   Selection
------------------------------------------------------- */
::selection {
  background: rgba(207, 181, 59, 0.3);
  color: #E5E4E2;
}

/* -------------------------------------------------------
   Sticky Header Shadow
------------------------------------------------------- */
#site-header {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------------
   FAQ Answer Transition
------------------------------------------------------- */
.faq-answer {
  border-top: 1px solid #2A3A5C;
}

/* -------------------------------------------------------
   Mobile Responsive Adjustments
------------------------------------------------------- */
@media (max-width: 640px) {
  .prose-casino h1 {
    font-size: 1.6rem;
  }

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

  .prose-casino table {
    font-size: 0.75rem;
  }

  .prose-casino thead th,
  .prose-casino tbody td {
    padding: 0.5rem 0.6rem;
  }
}

/* -------------------------------------------------------
   Container Max Width
------------------------------------------------------- */
.max-w-8xl {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------
   Shimmer Animation (decorative)
------------------------------------------------------- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-gold {
  background: linear-gradient(90deg, #A8922A 0%, #F5E27C 50%, #A8922A 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* -------------------------------------------------------
   Floating Crystal Decorations (CSS only)
------------------------------------------------------- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(2deg); }
  66% { transform: translateY(-4px) rotate(-1deg); }
}

.float-crystal {
  animation: float-slow 6s ease-in-out infinite;
}

/* -------------------------------------------------------
   Gradient Border Utility
------------------------------------------------------- */
.border-gradient-gold {
  border-image: linear-gradient(135deg, #A8922A, #F5E27C, #A8922A) 1;
}
