/*
 * CapoSino Casino – Custom CSS
 * Iberian Luxe Theme: Deep red, gold, warm dark backdrop
 */

/* ============================================================
   BASE RESET & GLOBALS
============================================================ */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #1a0a0a;
  color: #f5e6c8;
}

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

/* ============================================================
   MEDITERRANEAN PATTERN (SVG background)
============================================================ */
.med-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.5'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Cpath d='M30 0 L30 60 M0 30 L60 30'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
}

/* ============================================================
   HERO PARALLAX
============================================================ */
.hero-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

/* ============================================================
   GAMES MARQUEE ANIMATION
============================================================ */
.games-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  cursor: grab;
}

.games-marquee {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

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

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

/* ============================================================
   GAME CARD
============================================================ */
.game-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 8px 30px rgba(212, 175, 55, 0.25);
}

/* ============================================================
   PROVIDER TAGS (Word Cloud)
============================================================ */
.provider-tag {
  display: inline-block;
  background-color: #2a1010;
  border: 1px solid #3d1a1a;
  color: #f5e6c8;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: default;
}

.provider-tag:nth-child(3n+1) { font-size: 0.85rem; color: #d4af37; }
.provider-tag:nth-child(3n+2) { font-size: 0.7rem; }
.provider-tag:nth-child(5n)   { font-size: 0.9rem; color: #f0d060; }

.provider-tag:hover {
  background-color: #3d1a1a;
  border-color: #d4af37;
  color: #d4af37;
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.faq-answer {
  animation: faq-slide-down 0.25s ease;
}

@keyframes faq-slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS GLOW PULSE
============================================================ */
@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(212,175,55,0.4); }
  50%       { box-shadow: 0 0 25px rgba(212,175,55,0.7), 0 0 50px rgba(212,175,55,0.3); }
}

.shadow-gold {
  animation: gold-pulse 2.5s ease-in-out infinite;
}

/* ============================================================
   PROSE CASINO (Rich text content)
============================================================ */
.prose-casino {
  color: #f5e6c8;
  line-height: 1.8;
  font-size: 0.95rem;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #d4af37;
  font-family: Georgia, Cambria, serif;
  font-weight: 700;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }
.prose-casino h4 { font-size: 1.1rem; }

.prose-casino p {
  margin-bottom: 1.2em;
  color: rgba(245, 230, 200, 0.85);
}

.prose-casino a {
  color: #d4af37;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

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

.prose-casino ul,
.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2em;
}

.prose-casino ul li {
  list-style-type: disc;
  margin-bottom: 0.4em;
  color: rgba(245, 230, 200, 0.80);
}

.prose-casino ol li {
  list-style-type: decimal;
  margin-bottom: 0.4em;
  color: rgba(245, 230, 200, 0.80);
}

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

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

.prose-casino blockquote {
  border-left: 3px solid #d4af37;
  padding-left: 1rem;
  color: rgba(245, 230, 200, 0.65);
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino code {
  background-color: #2a1010;
  color: #d4af37;
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background-color: #120606;
  color: #f5e6c8;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid #3d1a1a;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #3d1a1a;
  margin: 2em 0;
}

/* Tables inside prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5em 0;
}

.prose-casino thead {
  background-color: #2a1010;
}

.prose-casino th {
  color: #d4af37;
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #3d1a1a;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.prose-casino td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #3d1a1a;
  color: rgba(245, 230, 200, 0.80);
  vertical-align: top;
}

.prose-casino tr:hover td {
  background-color: rgba(42, 16, 16, 0.5);
}

/* Mandatory prose table scroll 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;
}

/* ============================================================
   SCROLLBAR STYLING
============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #120606;
}

::-webkit-scrollbar-thumb {
  background: #3d1a1a;
  border-radius: 9999px;
}

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

/* ============================================================
   UTILITY ANIMATIONS
============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fade-up 0.6s ease forwards;
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

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

/* ============================================================
   MOBILE OVERFLOW FIX
============================================================ */
@media (max-width: 768px) {
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  table {
    min-width: 480px;
  }
}

/* ============================================================
   STICKY HEADER SHADOW
============================================================ */
header {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   SECTION DIVIDER FADE
============================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  margin: 0 auto;
  width: 60%;
  opacity: 0.4;
}
