/* ============================================
   Flashbet Casino - Custom Styles
   Velocity Lite Theme
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --flash-primary: #1a1a2e;
    --flash-secondary: #16213e;
    --flash-accent: #e94560;
    --flash-gold: #f9a825;
    --flash-light: #eaeaea;
    --flash-dark: #0f0f1a;
    --flash-surface: #252547;
}

/* ============================================
   Global Overflow Control
   ============================================ */
html {
    overflow-x: clip;
    overflow-y: auto;
}

body {
    overflow-x: clip;
}

/* ============================================
   Marquee Animation
   ============================================ */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    position: relative;
    width: 100%;
}

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

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

/* Duplicate content for seamless loop */
.marquee-content::after {
    content: '';
    display: flex;
}

/* ============================================
   Parallax Effect
   ============================================ */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

@media (min-width: 1024px) {
    .parallax-bg {
        background-attachment: fixed;
        background-position: center;
        background-size: cover;
    }
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-toggle {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-toggle:hover {
    background-color: rgba(37, 37, 71, 0.5);
}

.faq-toggle i {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-content {
    transition: all 0.3s ease;
}

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

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

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

/* Headings */
.prose h2 {
    color: #ffffff;
    font-size: 1.75em;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
    line-height: 1.3;
    border-bottom: 2px solid var(--flash-accent);
    padding-bottom: 0.5em;
}

.prose h2:first-child {
    margin-top: 0;
}

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

.prose h4 {
    color: #ffffff;
    font-size: 1.125em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25em;
    color: rgba(234, 234, 234, 0.85);
}

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

/* Links */
.prose a {
    color: var(--flash-gold);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease;
}

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

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

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

/* Lists */
.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose li {
    margin-bottom: 0.5em;
    color: rgba(234, 234, 234, 0.85);
    padding-left: 0.5em;
}

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

.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(--flash-accent);
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: rgba(234, 234, 234, 0.8);
    background: rgba(37, 37, 71, 0.5);
    padding: 1.25em 1.5em;
    border-radius: 0 0.5em 0.5em 0;
}

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

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

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

.prose th {
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 0.875em 1em;
    border-bottom: 2px solid var(--flash-accent);
}

.prose td {
    padding: 0.875em 1em;
    border-bottom: 1px solid rgba(37, 37, 71, 0.8);
    color: rgba(234, 234, 234, 0.85);
}

.prose tbody tr:hover {
    background: rgba(37, 37, 71, 0.3);
}

/* Table Wrapper for Responsiveness */
.prose .table-responsive {
    overflow-x: auto;
    margin: 1.5em 0;
    border-radius: 0.5em;
    background: var(--flash-surface);
}

.prose .table-responsive table {
    margin: 0;
}

/* Code */
.prose code {
    background: var(--flash-surface);
    color: var(--flash-gold);
    padding: 0.2em 0.4em;
    border-radius: 0.25em;
    font-size: 0.875em;
    font-family: 'Fira Code', monospace;
}

.prose pre {
    background: var(--flash-surface);
    padding: 1.25em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin: 1.5em 0;
}

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

/* Horizontal Rule */
.prose hr {
    border: none;
    border-top: 1px solid rgba(37, 37, 71, 0.8);
    margin: 2.5em 0;
}

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

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

.prose dt {
    color: #ffffff;
    font-weight: 600;
    margin-top: 1em;
}

.prose dd {
    padding-left: 1.5em;
    color: rgba(234, 234, 234, 0.85);
}

/* ============================================
   Button Styles
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--flash-accent), var(--flash-gold));
    color: #ffffff;
    padding: 0.75em 1.5em;
    border-radius: 0.5em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    transform: translateY(-2px);
}

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

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.2);
}

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

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

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

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

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

/* ============================================
   Mobile Navigation Transition
   ============================================ */
#mobile-menu {
    transition: all 0.3s ease;
}

/* ============================================
   Selection Styling
   ============================================ */
::selection {
    background: var(--flash-accent);
    color: #ffffff;
}

::-moz-selection {
    background: var(--flash-accent);
    color: #ffffff;
}

/* ============================================
   Loading Skeleton (for future use)
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--flash-surface) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        var(--flash-surface) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .prose h2 {
        font-size: 1.5em;
    }
    
    .prose h3 {
        font-size: 1.25em;
    }
    
    .prose {
        font-size: 1rem;
    }
    
    .prose table {
        font-size: 0.875em;
    }
    
    .prose th,
    .prose td {
        padding: 0.625em 0.75em;
    }
}

@media (max-width: 480px) {
    .prose h2 {
        font-size: 1.375em;
    }
    
    .prose blockquote {
        padding: 1em 1.25em;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .prose {
        color: #000000;
    }
    
    .prose a {
        color: #000000;
        text-decoration: underline;
    }
    
    .prose h2,
    .prose h3,
    .prose h4 {
        color: #000000;
    }
}
