/* ============================================
   Cushy Soft Play Core Theme - Custom CSS
   cushyslot.org.uk
   ============================================ */

/* === Keyframe Animations === */
@keyframes tilt {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.625rem);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 1.25rem rgba(236, 72, 153, 0.4);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(236, 72, 153, 0.7);
  }
}

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

/* === Animation Utilities === */
.animate-tilt {
  animation: tilt 3s ease-in-out infinite;
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* === Plush Gradients === */
.gradient-cushy-primary {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.gradient-cushy-accent {
  background: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #fb7185 100%);
}

.gradient-cushy-soft {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f0d24 100%);
}

.gradient-cushy-card {
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.8) 0%, rgba(30, 27, 75, 0.9) 100%);
}

/* === Rounded UI Panels === */
.cushy-panel {
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.6) 0%, rgba(30, 27, 75, 0.8) 100%);
  backdrop-filter: blur(0.625rem);
  border: 0.0625rem solid rgba(236, 72, 153, 0.2);
}

.cushy-card {
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.4) 0%, rgba(49, 46, 129, 0.6) 100%);
  border: 0.0625rem solid rgba(167, 139, 250, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cushy-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 1.25rem 2.5rem rgba(236, 72, 153, 0.2);
}

/* === Button Styles === */
.btn-primary {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #ffffff;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: 0.125rem solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  transform: scale(1.05);
  box-shadow: 0 0.625rem 1.875rem rgba(236, 72, 153, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #f9fafb;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  border: 0.125rem solid rgba(167, 139, 250, 0.5);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(167, 139, 250, 0.2);
  border-color: #a78bfa;
}

/* === Table Responsive Wrapper === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin-bottom: 1rem;
}

/* === Prose Styling for Markdown Content === */
.prose {
  color: #e5e7eb;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: #f9fafb;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.125rem solid rgba(236, 72, 153, 0.3);
  line-height: 1.3;
}

.prose h3 {
  color: #f3f4f6;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose h4 {
  color: #e5e7eb;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

.prose a {
  color: #f472b6;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #ec4899;
}

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

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

/* Prose Lists */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: #d1d5db;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #ec4899, #a78bfa);
  border-radius: 50%;
}

.prose ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  color: #d1d5db;
  counter-increment: prose-counter;
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, #4c1d95, #312e81);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #f472b6;
  border: 0.0625rem solid rgba(236, 72, 153, 0.3);
}

/* Prose Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
}

.prose thead {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.6) 0%, rgba(49, 46, 129, 0.8) 100%);
}

.prose th {
  color: #f9fafb;
  font-weight: 700;
  padding: 1rem;
  text-align: left;
  border-bottom: 0.125rem solid rgba(236, 72, 153, 0.3);
  white-space: nowrap;
}

.prose td {
  color: #d1d5db;
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(167, 139, 250, 0.15);
}

.prose tbody tr {
  transition: background 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(76, 29, 149, 0.2);
}

/* Prose Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid #ec4899;
  background: linear-gradient(90deg, rgba(76, 29, 149, 0.3) 0%, transparent 100%);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 1rem 1rem 0;
  font-style: italic;
  color: #e5e7eb;
}

.prose blockquote p {
  margin-bottom: 0;
}

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.3);
}

/* Prose Code */
.prose code {
  background: rgba(49, 46, 129, 0.6);
  color: #f472b6;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.9em;
}

.prose pre {
  background: rgba(30, 27, 75, 0.8);
  border: 0.0625rem solid rgba(167, 139, 250, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* === Navigation Styles === */
.nav-link {
  color: #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: #f472b6;
  background: rgba(236, 72, 153, 0.1);
}

/* Mobile Menu */
.mobile-menu {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f0d24 100%);
  border-top: 0.0625rem solid rgba(236, 72, 153, 0.2);
}

/* === Game Card Styles === */
.game-card {
  flex: 0 0 auto;
  width: clamp(10rem, 40vw, 14rem);
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.5) 0%, rgba(49, 46, 129, 0.7) 100%);
  border: 0.0625rem solid rgba(167, 139, 250, 0.2);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0.9375rem 2.5rem rgba(236, 72, 153, 0.3);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* === Step Badge === */
.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 0.5rem 1.25rem rgba(236, 72, 153, 0.4);
}

/* === Bonus Badge === */
.bonus-badge {
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.9) 0%, rgba(49, 46, 129, 0.95) 100%);
  border: 0.125rem solid rgba(236, 72, 153, 0.5);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  backdrop-filter: blur(0.625rem);
  box-shadow: 0 1.5625rem 3.125rem rgba(0, 0, 0, 0.4);
}

/* === Provider Cloud === */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(49, 46, 129, 0.6);
  border: 0.0625rem solid rgba(167, 139, 250, 0.2);
  border-radius: 9999px;
  color: #d1d5db;
  font-size: 0.875rem;
  margin: 0.25rem;
  transition: all 0.2s ease;
}

.provider-tag:hover {
  background: rgba(76, 29, 149, 0.8);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.4);
}

/* === Promo Card === */
.promo-card {
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.5) 0%, rgba(49, 46, 129, 0.7) 100%);
  border: 0.0625rem solid rgba(167, 139, 250, 0.2);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: all 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 1.25rem 2.5rem rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
}

/* === FAQ Styles === */
.faq-item {
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.4) 0%, rgba(30, 27, 75, 0.6) 100%);
  border: 0.0625rem solid rgba(167, 139, 250, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  border: none;
  color: #f9fafb;
  font-weight: 600;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(76, 29, 149, 0.3);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: #d1d5db;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: #ec4899;
}

/* === Footer Styles === */
.footer-link {
  color: #9ca3af;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: #f472b6;
}

/* === Responsible Gaming Badge === */
.age-badge {
  width: 3rem;
  height: 3rem;
  border: 0.1875rem solid #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #ef4444;
}

/* === Utility Classes === */
.text-gradient {
  background: linear-gradient(135deg, #f472b6 0%, #a78bfa 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === SVG Pattern Background === */
.pattern-dots {
  background-image: radial-gradient(rgba(167, 139, 250, 0.15) 0.0625rem, transparent 0.0625rem);
  background-size: 1.25rem 1.25rem;
}

.pattern-grid {
  background-image: 
    linear-gradient(rgba(167, 139, 250, 0.05) 0.0625rem, transparent 0.0625rem),
    linear-gradient(90deg, rgba(167, 139, 250, 0.05) 0.0625rem, transparent 0.0625rem);
  background-size: 3.125rem 3.125rem;
}

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

/* === Global Overflow Control === */
html, body {
  overflow-x: clip;
  overflow-y: auto;
}

/* === Media Queries === */
@media (max-width: 63.9375rem) {
  .prose h2 {
    margin-top: 2rem;
  }
  
  .prose h3 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 47.9375rem) {
  .prose {
    line-height: 1.65;
  }
  
  .prose ul li,
  .prose ol li {
    padding-left: 1.5rem;
  }
  
  .prose ol li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }
}
