/* =============================================
   POWBET CASINO - Custom CSS
   Power Strike Flow Theme
   ============================================= */

/* CSS Variables */
:root {
  --color-primary: #ff6b00;
  --color-secondary: #1a1a2e;
  --color-accent: #ffd700;
  --color-dark: #0f0f1a;
  --color-light: #f5f5f7;
  --color-electric: #00d4ff;
  --color-crimson: #dc2626;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  --spacing-unit: 1rem;
}

/* =============================================
   ANIMATIONS & KEYFRAMES
   ============================================= */

/* Gradient Animation */
@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

/* Pulse Glow */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.5), 0 0 60px rgba(255, 107, 0, 0.2);
  }
}

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

/* Slow Bounce */
@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

/* Particle Animation */
@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: float-up 20s linear infinite;
  opacity: 0;
}

.particle:nth-child(odd) {
  background: var(--color-accent);
  width: 3px;
  height: 3px;
}

.particle:nth-child(3n) {
  background: var(--color-electric);
  width: 2px;
  height: 2px;
}

/* Fade In Up */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* =============================================
   SCROLLBAR STYLING
   ============================================= */

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

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

/* =============================================
   TABLE RESPONSIVE
   ============================================= */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* =============================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ============================================= */

.prose {
  color: rgba(245, 245, 247, 0.85);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: var(--color-light);
  font-size: 1.75em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(255, 107, 0, 0.3);
  line-height: 1.3;
}

.prose h3 {
  color: var(--color-light);
  font-size: 1.375em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: rgba(245, 245, 247, 0.95);
  font-size: 1.125em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

/* Links */
.prose a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}

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

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

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

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
  line-height: 1.7;
}

.prose li::marker {
  color: var(--color-primary);
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Blockquotes */
.prose blockquote {
  border-left: 4px solid var(--color-primary);
  background: rgba(255, 107, 0, 0.1);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}

.prose blockquote p {
  margin-bottom: 0;
  color: rgba(245, 245, 247, 0.9);
}

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

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

.prose thead {
  background: rgba(15, 15, 26, 0.8);
}

.prose th {
  padding: 1em;
  text-align: left;
  font-weight: 600;
  color: var(--color-light);
  border-bottom: 2px solid rgba(255, 107, 0, 0.3);
}

.prose td {
  padding: 1em;
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
  color: rgba(245, 245, 247, 0.8);
}

.prose tbody tr {
  background: rgba(26, 26, 46, 0.5);
  transition: background 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(26, 26, 46, 0.8);
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2em auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 107, 0, 0.2);
}

/* Code */
.prose code {
  background: rgba(255, 107, 0, 0.15);
  color: var(--color-accent);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Fira Code", monospace;
}

.prose pre {
  background: rgba(15, 15, 26, 0.9);
  padding: 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.prose pre code {
  background: none;
  padding: 0;
  color: rgba(245, 245, 247, 0.9);
}

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-primary), transparent);
  margin: 3em 0;
}

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

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

/* =============================================
   ADDITIONAL UTILITIES
   ============================================= */

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

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

/* Smooth transitions for interactive elements */
a,
button,
.game-card,
details {
  transition: all 0.3s ease;
}

/* Games strip custom styling */
.games-strip {
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
}

/* Details/Summary styling */
details summary::-webkit-details-marker {
  display: none;
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5em;
  }

  .prose h3 {
    font-size: 1.25em;
  }

  .prose table {
    font-size: 0.85em;
  }

  .prose th,
  .prose td {
    padding: 0.75em;
  }
}

/* Ensure proper contrast in all conditions */
.bg-dark .text-light,
.bg-secondary .text-light {
  color: rgba(245, 245, 247, 0.95);
}

.bg-light .text-dark,
.bg-primary .text-dark {
  color: rgba(15, 15, 26, 0.95);
}
