/* Neon Rush Casino - Custom Styles */
/* ================================= */

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

/* ================================= */
/* Particle Animations */
/* ================================= */

.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 0.375rem;
    height: 0.375rem;
    background: linear-gradient(135deg, #ff2d95, #00f5ff);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle-1 {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    left: 25%;
    top: 60%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle-3 {
    left: 50%;
    top: 30%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.particle-4 {
    left: 75%;
    top: 70%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.particle-5 {
    left: 90%;
    top: 40%;
    animation-delay: 3s;
    animation-duration: 20s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(1.25rem, -1.875rem) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-0.9375rem, -3.75rem) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(0.625rem, -1.25rem) scale(1.1);
        opacity: 0.7;
    }
}

/* ================================= */
/* Tilt Animation */
/* ================================= */

.tilt-element {
    transition: transform 0.3s ease-out;
}

.tilt-element:hover {
    transform: perspective(62.5rem) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* ================================= */
/* Glow Effects */
/* ================================= */

.neon-glow {
    box-shadow: 
        0 0 1.25rem rgba(255, 45, 149, 0.3),
        0 0 2.5rem rgba(255, 45, 149, 0.2),
        0 0 3.75rem rgba(255, 45, 149, 0.1);
}

.cyan-glow {
    box-shadow: 
        0 0 1.25rem rgba(0, 245, 255, 0.3),
        0 0 2.5rem rgba(0, 245, 255, 0.2),
        0 0 3.75rem rgba(0, 245, 255, 0.1);
}

/* ================================= */
/* Table Responsive Wrapper */
/* ================================= */

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

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

/* ================================= */
/* FAQ Accordion */
/* ================================= */

.faq-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* ================================= */
/* Prose Styling for Markdown Content */
/* ================================= */

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

.prose h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.125rem solid rgba(157, 78, 221, 0.3);
    line-height: 1.3;
}

.prose h3 {
    color: #f3f4f6;
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.prose h4 {
    color: #e5e7eb;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose p {
    color: #d1d5db;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.prose a {
    color: #00f5ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #ff2d95;
    text-decoration: underline;
}

.prose strong {
    color: #ffffff;
    font-weight: 600;
}

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

/* Prose 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;
    line-height: 1.7;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #ff2d95, #9d4edd);
    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;
    line-height: 1.7;
    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, #9d4edd, #00f5ff);
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prose Tables */
.prose .table-responsive,
.prose > div:has(table) {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(45, 45, 68, 0.5);
}

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

.prose thead {
    background: #1a1a2e;
}

.prose th {
    color: #f3f4f6;
    font-weight: 600;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 0.125rem solid rgba(157, 78, 221, 0.3);
    white-space: nowrap;
}

.prose td {
    color: #d1d5db;
    padding: 0.875rem 1.25rem;
    border-bottom: 0.0625rem solid rgba(45, 45, 68, 0.5);
}

.prose tbody tr {
    transition: background 0.2s ease;
}

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

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

/* Prose Blockquotes */
.prose blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(0, 245, 255, 0.05));
    border-left: 0.25rem solid #9d4edd;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #e5e7eb;
}

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

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

/* Prose Code */
.prose code {
    background: #1a1a2e;
    color: #00f5ff;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.prose pre {
    background: #12121f;
    border: 0.0625rem solid rgba(45, 45, 68, 0.5);
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Prose Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem auto;
    display: block;
    border: 0.0625rem solid rgba(45, 45, 68, 0.5);
}

/* Prose Horizontal Rule */
.prose hr {
    border: none;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, #9d4edd, #00f5ff, transparent);
    margin: 3rem 0;
}

/* Prose Nested Lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

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

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

.prose dd {
    color: #d1d5db;
    margin-left: 1.5rem;
    margin-top: 0.25rem;
}

/* ================================= */
/* Responsive Adjustments */
/* ================================= */

@media (max-width: 48rem) {
    .prose h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose table {
        font-size: 0.875rem;
    }
    
    .prose th,
    .prose td {
        padding: 0.75rem 1rem;
    }
    
    .prose blockquote {
        padding: 1rem 1rem 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .prose ul li,
    .prose ol li {
        padding-left: 1.5rem;
    }
    
    .prose ol li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.6875rem;
    }
}

/* ================================= */
/* Utility Classes */
/* ================================= */

.text-gradient {
    background: linear-gradient(135deg, #ff2d95, #9d4edd, #00f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 245, 255, 0.1) 0%, transparent 50%);
}

/* ================================= */
/* Scrollbar Styling */
/* ================================= */

::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-track {
    background: #0a0a12;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9d4edd, #ff2d95);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00f5ff, #9d4edd);
}

/* ================================= */
/* Selection Styling */
/* ================================= */

::selection {
    background: rgba(157, 78, 221, 0.4);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(157, 78, 221, 0.4);
    color: #ffffff;
}

/* ================================= */
/* Focus States for Accessibility */
/* ================================= */

a:focus-visible,
button:focus-visible {
    outline: 0.125rem solid #00f5ff;
    outline-offset: 0.125rem;
}

/* ================================= */
/* Print Styles */
/* ================================= */

@media print {
    .particles-container,
    .tilt-element {
        animation: none !important;
        transform: none !important;
    }
    
    body {
        background: #ffffff;
        color: #000000;
    }
    
    .prose {
        color: #000000;
    }
    
    .prose h2,
    .prose h3,
    .prose h4 {
        color: #000000;
    }
    
    .prose a {
        color: #0066cc;
        text-decoration: underline;
    }
}
