/* Flashbet Casino - Custom CSS */
/* Quick Spark Theme: Compact layouts, energetic highlights, fast and friendly visual rhythm */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --flash-primary: #FF6B35;
    --flash-secondary: #FFD23F;
    --flash-dark: #1A1A2E;
    --flash-darker: #0F0F1A;
    --flash-accent: #00D9FF;
    --flash-purple: #7B2CBF;
    --flash-green: #2ECC71;
}

/* ========================================
   Global Styles
   ======================================== */
html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

/* Hide scrollbar for horizontal scroll sections */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

/* ========================================
   Animations & Keyframes
   ======================================== */

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

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

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5rem rgba(255, 107, 53, 0.6);
    }
}

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

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

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

/* Sparkle Animation */
@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

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

/* Slide In From Bottom */
@keyframes slide-in-bottom {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

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

/* Bounce In */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

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

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

/* ========================================
   Navigation Styles
   ======================================== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: linear-gradient(90deg, var(--flash-primary), var(--flash-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   Button Hover Effects
   ======================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

.game-card:hover {
    transform: translateY(-0.5rem);
}

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

/* Headings */
.prose h2 {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.125rem solid var(--flash-primary);
    position: relative;
}

.prose h2::before {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    width: 3.75rem;
    height: 0.125rem;
    background: var(--flash-secondary);
}

.prose h3 {
    color: var(--flash-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    color: var(--flash-accent);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    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.125rem;
    color: #E5E7EB;
}

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

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

/* 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: var(--flash-primary);
    border-radius: 50%;
}

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

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

.prose ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, var(--flash-primary), var(--flash-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--flash-dark);
}

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid var(--flash-primary);
    background: rgba(255, 107, 53, 0.1);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #E5E7EB;
}

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

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

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

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

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

.prose td {
    padding: 0.875rem 1.25rem;
    border-bottom: 0.0625rem solid #374151;
    color: #D1D5DB;
}

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

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

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

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

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

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

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

/* Strong & Emphasis */
.prose strong {
    color: #FFFFFF;
    font-weight: 600;
}

.prose em {
    color: var(--flash-secondary);
    font-style: italic;
}

/* Definition Lists */
.prose dl {
    margin: 1.5rem 0;
}

.prose dt {
    color: var(--flash-primary);
    font-weight: 600;
    margin-top: 1rem;
}

.prose dd {
    margin-left: 1.25rem;
    color: #D1D5DB;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 48rem) {
    .prose h2 {
        margin-top: 2rem;
    }

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

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

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

    .prose blockquote {
        padding: 1rem;
    }

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

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

/* ========================================
   Particle Canvas Positioning
   ======================================== */
#particles {
    z-index: 1;
    opacity: 0.6;
}

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

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

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

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

/* ========================================
   Focus Styles for Accessibility
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 0.125rem solid var(--flash-accent);
    outline-offset: 0.125rem;
}

/* ========================================
   Details/Summary (FAQ Accordion)
   ======================================== */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

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

::-moz-selection {
    background: var(--flash-primary);
    color: var(--flash-dark);
}
