/* ========================================
   POWBET CASINO - CUSTOM STYLES
   Power Strike Core Theme
   ======================================== */

/* ----------------------------------------
   CSS Variables
   ---------------------------------------- */
:root {
  --strike-black: #0a0a0f;
  --strike-dark: #12121a;
  --strike-red: #ff2d4a;
  --strike-orange: #ff6b35;
  --strike-gold: #ffc837;
  --strike-cyan: #00f0ff;
  --strike-purple: #8b5cf6;
  --strike-gray: #1e1e2e;
  --strike-light: #e8e8f0;
}

/* ----------------------------------------
   Global Resets & Base
   ---------------------------------------- */
html {
  overflow-x: clip;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

/* ----------------------------------------
   Keyframe Animations
   ---------------------------------------- */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(255, 45, 74, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(255, 45, 74, 0.6);
  }
}

@keyframes energy-pulse {
  0% {
    opacity: 0.3;
    transform: scaleX(0.5);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0.3;
    transform: scaleX(0.5);
  }
}

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

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

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce-subtle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.3125rem);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes strike-flash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ----------------------------------------
   Animation Utility Classes
   ---------------------------------------- */
.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.energy-line {
  animation: energy-pulse 3s ease-in-out infinite;
}

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

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

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

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

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

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

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

/* Headings */
.prose h2 {
  color: var(--strike-light);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid var(--strike-red);
  position: relative;
}

.prose h2::before {
  content: "";
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 3rem;
  height: 0.125rem;
  background: linear-gradient(90deg, var(--strike-orange), var(--strike-gold));
}

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

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

/* Paragraphs */
.prose p {
  color: rgba(232, 232, 240, 0.8);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

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

/* Links */
.prose a {
  color: var(--strike-gold);
  text-decoration: none;
  border-bottom: 0.0625rem solid transparent;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: var(--strike-orange);
  border-bottom-color: var(--strike-orange);
}

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

.prose ul {
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: rgba(232, 232, 240, 0.8);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, var(--strike-red), var(--strike-orange));
  transform: rotate(45deg);
}

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

.prose ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: rgba(232, 232, 240, 0.8);
  counter-increment: ordered-list;
}

.prose ol li::before {
  content: counter(ordered-list);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--strike-red), var(--strike-orange));
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

/* Tables */
.prose .table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(255, 45, 74, 0.2);
}

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

.prose thead {
  background: linear-gradient(90deg, var(--strike-red), var(--strike-orange));
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 0.0625rem solid rgba(30, 30, 46, 0.5);
  color: rgba(232, 232, 240, 0.8);
}

.prose tbody tr {
  background: var(--strike-gray);
  transition: background 0.3s ease;
}

.prose tbody tr:hover {
  background: rgba(10, 10, 15, 0.3);
}

.prose tbody tr:nth-child(even) {
  background: rgba(30, 30, 46, 0.5);
}

.prose tbody tr:nth-child(even):hover {
  background: rgba(10, 10, 15, 0.3);
}

/* Blockquotes */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--strike-dark);
  border-left: 0.25rem solid var(--strike-gold);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: rgba(232, 232, 240, 0.9);
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(255, 45, 74, 0.2);
}

/* Code */
.prose code {
  background: var(--strike-gray);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--strike-cyan);
}

.prose pre {
  background: var(--strike-dark);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(255, 45, 74, 0.2);
}

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

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--strike-red), var(--strike-orange), transparent);
  margin: 2.5rem 0;
}

/* Strong & Emphasis */
.prose strong {
  color: var(--strike-light);
  font-weight: 700;
}

.prose em {
  color: var(--strike-gold);
  font-style: italic;
}

/* ----------------------------------------
   Custom Component Styles
   ---------------------------------------- */

/* Navigation active state */
.nav-link.active {
  color: var(--strike-gold);
}

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

/* Button hover effects */
.btn-strike {
  position: relative;
  overflow: hidden;
}

.btn-strike::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-strike:hover::after {
  width: 18.75rem;
  height: 18.75rem;
}

/* Card hover effects */
.card-strike {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-strike:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 1.25rem 2.5rem rgba(255, 45, 74, 0.2);
}

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

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

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

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

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

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

@media (max-width: 30rem) {
  .prose {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .prose h2 {
    font-size: 1.375rem;
  }

  .prose h3 {
    font-size: 1.125rem;
  }

  .prose blockquote {
    padding: 0.75rem 1rem;
  }
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */
.text-gradient-strike {
  background: linear-gradient(90deg, var(--strike-red), var(--strike-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-strike {
  background: linear-gradient(135deg, var(--strike-red), var(--strike-orange));
}

.border-gradient-strike {
  border-image: linear-gradient(90deg, var(--strike-red), var(--strike-orange)) 1;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 0.125rem solid var(--strike-gold);
  outline-offset: 0.125rem;
}

/* Selection styling */
::selection {
  background: var(--strike-red);
  color: white;
}

::-moz-selection {
  background: var(--strike-red);
  color: white;
}
