/* BotSpins Casino - Custom CSS */
/* Animation Keyframes, Overrides & Prose Styling */

/* ==========================================
   BASE STYLES & RESETS
   ========================================== */

html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

/* ==========================================
   ANIMATION KEYFRAMES
   ========================================== */

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

/* Floating Particles */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) translateX(20px);
        opacity: 0.7;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
    }
}

/* Parallax Background Animation */
@keyframes parallax-drift {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   MARQUEE COMPONENT
   ========================================== */

.marquee-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

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

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

.game-card {
    flex-shrink: 0;
    width: 280px;
}

@media (min-width: 768px) {
    .game-card {
        width: 300px;
    }
}

/* ==========================================
   FLOATING PARTICLES
   ========================================== */

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    pointer-events: none;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.particle-2 {
    top: 60%;
    right: 15%;
    animation: float-slow 8s ease-in-out infinite;
    animation-delay: -2s;
}

.particle-3 {
    bottom: 30%;
    left: 20%;
    animation: float 7s ease-in-out infinite;
    animation-delay: -4s;
}

/* ==========================================
   PARALLAX EFFECTS
   ========================================== */

.parallax-bg {
    animation: parallax-drift 15s ease-in-out infinite;
}

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

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

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

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

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

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

/* Custom Scrollbar for Table */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 3px;
}

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

.prose {
    color: #d1d5db;
    line-height: 1.75;
    max-width: 100%;
}

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

.prose h3 {
    color: #f3f4f6;
    font-size: 1.375em;
    font-weight: 600;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}

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

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

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

/* Links */
.prose a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.prose a:hover {
    color: #f7931e;
    border-bottom-color: #f7931e;
}

/* Bold & Italic */
.prose strong {
    color: #ffffff;
    font-weight: 600;
}

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

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

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

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    color: #d1d5db;
    padding-left: 0.375em;
}

.prose li::marker {
    color: #ff6b35;
}

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

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.9em;
}

.prose thead {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2));
}

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

.prose td {
    padding: 0.875em 1em;
    border-bottom: 1px solid rgba(37, 37, 64, 0.8);
    color: #d1d5db;
}

.prose tbody tr:hover {
    background: rgba(37, 37, 64, 0.5);
}

/* Table Wrapper for Responsiveness */
.prose .table-responsive {
    overflow-x: auto;
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.75rem;
    border: 1px solid rgba(37, 37, 64, 0.8);
}

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

/* Blockquotes */
.prose blockquote {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1.25em 1.5em;
    border-left: 4px solid #ff6b35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.05));
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #e5e7eb;
}

.prose blockquote p {
    margin: 0;
}

.prose blockquote p:first-child::before {
    content: '"';
    color: #ff6b35;
    font-size: 1.5em;
    font-weight: 700;
    margin-right: 0.25em;
}

/* Code */
.prose code {
    background: rgba(37, 37, 64, 0.8);
    color: #ffd700;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
    background: rgba(15, 15, 26, 0.9);
    border: 1px solid rgba(37, 37, 64, 0.8);
    border-radius: 0.5rem;
    padding: 1.25em;
    overflow-x: auto;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.prose pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.875em;
}

/* Horizontal Rule */
.prose hr {
    margin-top: 3em;
    margin-bottom: 3em;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-top: 2em;
    margin-bottom: 2em;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.prose figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose figcaption {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875em;
    margin-top: 0.75em;
}

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */

@media (max-width: 640px) {
    .prose h2 {
        font-size: 1.5em;
    }
    
    .prose h3 {
        font-size: 1.25em;
    }
    
    .prose {
        font-size: 0.95rem;
    }
    
    .prose table {
        font-size: 0.8em;
    }
    
    .prose th,
    .prose td {
        padding: 0.625em 0.75em;
    }
}

/* ==========================================
   DETAILS/SUMMARY (FAQ) STYLING
   ========================================== */

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

details summary {
    list-style: none;
}

details[open] summary {
    border-bottom: 1px solid rgba(37, 37, 64, 0.5);
}

/* ==========================================
   INTERACTIVE STATES
   ========================================== */

.pulse-on-hover:hover {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* ==========================================
   FOCUS STATES FOR ACCESSIBILITY
   ========================================== */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* ==========================================
   SMOOTH TRANSITIONS
   ========================================== */

* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

a, button {
    transition-duration: 200ms;
}
