/* ============================================
   betcryp Casino - Custom CSS
   Theme: Crypt Pulse Matrix
   ============================================ */

/* -------------------------
   CSS Custom Properties
   ------------------------- */
:root {
  --matrix-dark: #0a0a0f;
  --matrix-darker: #050508;
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00ff;
  --neon-green: #39ff14;
  --pulse-blue: #0066ff;
  --grid-line: #1a1a2e;
}

/* -------------------------
   Global Overrides
   ------------------------- */
html {
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
}

/* -------------------------
   Data Ribbon Animations
   ------------------------- */
.data-ribbon {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0.3;
}

.data-ribbon-1 {
  top: 20%;
  left: -100%;
  width: 200%;
  animation: ribbon-flow 15s linear infinite;
}

.data-ribbon-2 {
  top: 50%;
  left: -100%;
  width: 200%;
  animation: ribbon-flow 20s linear infinite reverse;
  background: linear-gradient(90deg, transparent, var(--neon-magenta), transparent);
}

.data-ribbon-3 {
  top: 80%;
  left: -100%;
  width: 200%;
  animation: ribbon-flow 12s linear infinite;
}

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

/* -------------------------
   Tilt Animation
   ------------------------- */
.tilt-element {
  transition: transform 0.3s ease-out;
}

.tilt-element:hover {
  animation: tilt 0.5s ease-in-out;
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2deg);
  }
  75% {
    transform: rotate(2deg);
  }
}

/* -------------------------
   Marquee Animation
   ------------------------- */
.marquee-container {
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

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

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

/* -------------------------
   Pulse Animation
   ------------------------- */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
  }
}

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

/* -------------------------
   Burger Menu Animation
   ------------------------- */
#burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

#burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

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

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

/* -------------------------
   Prose Styling for Markdown
   ------------------------- */
.prose {
  max-width: 65rem;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.75;
}

/* Headings */
.prose h2 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #ffffff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 240, 255, 0.3);
  position: relative;
}

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

.prose h3 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: #e5e7eb;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--neon-cyan);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.prose p:first-of-type {
  font-size: 1.1rem;
  color: #e5e7eb;
}

/* Links */
.prose a {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.prose a:hover {
  border-bottom-color: var(--neon-cyan);
}

/* Lists */
.prose ul,
.prose ol {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

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

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--neon-cyan);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

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

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

.prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--pulse-blue));
  color: var(--matrix-dark);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tables */
.prose .table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid #374151;
}

.prose table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose thead {
  background: var(--matrix-darker);
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(0, 240, 255, 0.3);
}

.prose td {
  padding: 0.875rem 1rem;
  color: #d1d5db;
  border-bottom: 1px solid #374151;
}

.prose tbody tr:hover {
  background: rgba(55, 65, 81, 0.3);
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

/* Blockquotes */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(255, 0, 255, 0.05));
  border-left: 4px solid var(--neon-cyan);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #e5e7eb;
}

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

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

/* Code */
.prose code {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Rajdhani", monospace;
}

.prose pre {
  background: var(--matrix-darker);
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 1px solid #374151;
}

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

/* Strong and Em */
.prose strong {
  color: #ffffff;
  font-weight: 600;
}

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

/* Details/Summary (FAQ) */
.prose details {
  margin: 1rem 0;
  background: var(--matrix-darker);
  border: 1px solid #374151;
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: #ffffff;
  transition: background 0.2s ease;
}

.prose summary:hover {
  background: rgba(55, 65, 81, 0.5);
}

.prose details[open] summary {
  border-bottom: 1px solid #374151;
}

.prose details > *:not(summary) {
  padding: 0 1.25rem;
}

.prose details > *:last-child {
  padding-bottom: 1rem;
}

/* -------------------------
   Responsive Adjustments
   ------------------------- */
@media (max-width: 768px) {
  .prose {
    font-size: 0.95rem;
  }

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .prose h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
  }

  .prose ul li,
  .prose ol li {
    padding-left: 1.25rem;
  }

  .prose ol li {
    padding-left: 2.25rem;
  }

  .prose ol li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.65rem;
  }

  .prose table {
    font-size: 0.8rem;
  }

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }
}

/* -------------------------
   Game Card Hover Effects
   ------------------------- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
}

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

/* -------------------------
   Selection Styling
   ------------------------- */
::selection {
  background: var(--neon-cyan);
  color: var(--matrix-dark);
}

::-moz-selection {
  background: var(--neon-cyan);
  color: var(--matrix-dark);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--pulse-blue));
  border-radius: 4px;
}

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

/* -------------------------
   Focus States
   ------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* -------------------------
   Nav Link Active State
   ------------------------- */
.nav-link.active {
  color: var(--neon-cyan);
}

.nav-link.active span:last-child {
  width: 100%;
}
