/* ===== CUSTOM CSS - go4casino.pl ===== */
/* Animations, Overrides & Prose Styling */

/* ----- CSS Variables ----- */
:root {
  --primary: #00ff88;
  --primary-glow: rgba(0, 255, 136, 0.4);
  --secondary: #ff3366;
  --accent: #ffcc00;
  --dark: #0a0a12;
  --dark-surface: #12121f;
  --dark-card: #1a1a2e;
  --light: #f0f0f5;
  --muted: #8888aa;
}

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

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-1.5rem) translateX(0.5rem) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translateY(-2.5rem) translateX(-0.5rem) scale(0.9);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-1rem) translateX(0.25rem) scale(1.05);
    opacity: 0.7;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1rem var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 2rem var(--primary-glow), 0 0 3rem var(--primary-glow);
  }
}

@keyframes flash-accent {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(1.5rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes dash-move {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

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

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

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

.animate-flash {
  animation: flash-accent 1.5s ease-in-out infinite;
}

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

.animate-dash {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: dash-move 3s linear infinite;
}

/* ----- Particle System ----- */
.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
}

.particle:nth-child(1) {
  animation-delay: 0s;
  left: 10%;
  top: 20%;
}
.particle:nth-child(2) {
  animation-delay: 0.5s;
  left: 80%;
  top: 30%;
  background: var(--accent);
}
.particle:nth-child(3) {
  animation-delay: 1s;
  left: 25%;
  top: 60%;
}
.particle:nth-child(4) {
  animation-delay: 1.5s;
  left: 70%;
  top: 70%;
  background: var(--secondary);
}
.particle:nth-child(5) {
  animation-delay: 2s;
  left: 50%;
  top: 15%;
}
.particle:nth-child(6) {
  animation-delay: 2.5s;
  left: 90%;
  top: 50%;
  background: var(--accent);
}

/* ----- SVG Pattern Background ----- */
.pattern-grid {
  background-image: linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

.pattern-dots {
  background-image: radial-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}

/* ----- Table Responsive Wrapper ----- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.table-responsive table {
  min-width: 100%;
  border-collapse: collapse;
}

/* ----- Prose Styling for Markdown Content ----- */
.prose {
  color: var(--light);
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: var(--primary);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--dark-card);
  position: relative;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4rem;
  height: 2px;
  background: var(--primary);
}

.prose h3 {
  color: var(--accent);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  color: var(--light);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: rgba(240, 240, 245, 0.9);
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--accent);
}

.prose strong {
  color: var(--light);
  font-weight: 600;
}

.prose em {
  color: rgba(240, 240, 245, 0.85);
  font-style: italic;
}

/* Prose Lists */
.prose ul,
.prose ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: none;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  color: rgba(240, 240, 245, 0.9);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
}

.prose ol {
  list-style-type: none;
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.625rem;
  counter-increment: prose-counter;
  color: rgba(240, 240, 245, 0.9);
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--dark-card);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

/* Prose Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.prose thead {
  background: var(--dark-card);
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(136, 136, 170, 0.2);
  color: rgba(240, 240, 245, 0.9);
}

.prose tbody tr:hover {
  background: rgba(0, 255, 136, 0.05);
}

/* Prose Blockquotes */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--dark-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: rgba(240, 240, 245, 0.85);
}

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

/* Prose Code */
.prose code {
  background: var(--dark-card);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--accent);
}

.prose pre {
  background: var(--dark-card);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

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

/* Prose HR */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 2.5rem 0;
}

/* ----- Button Styles ----- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00cc6a);
  color: var(--dark);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 2rem var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}

/* ----- Card Styles ----- */
.card {
  background: var(--dark-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(136, 136, 170, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

/* ----- Game Card ----- */
.game-card {
  flex: 0 0 auto;
  width: 10rem;
  background: var(--dark-card);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.game-card:hover {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 0.5rem 2rem rgba(0, 255, 136, 0.2);
}

.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, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  box-shadow: 0 0.25rem 1rem var(--primary-glow);
}

/* ----- Bonus Badge ----- */
.bonus-badge {
  background: linear-gradient(135deg, var(--dark-card), var(--dark-surface));
  border: 2px solid var(--primary);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary-glow), transparent);
  animation: spin 8s linear infinite;
  opacity: 0.3;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----- Scrollbar Styling ----- */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-card);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ----- Mobile Menu ----- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* ----- FAQ Accordion ----- */
.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}

/* ----- 18+ Badge ----- */
.badge-18 {
  width: 3rem;
  height: 3rem;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: white;
  border: 2px solid white;
}

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

/* ----- Focus States ----- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ----- Selection ----- */
::selection {
  background: var(--primary);
  color: var(--dark);
}
