/* CushySlot Casino - Custom CSS */
/* Animations, Keyframes, Prose Styling */

/* ================================== */
/* GLOBAL OVERFLOW CONTROL */
/* ================================== */
html {
    overflow-x: clip;
    overflow-y: auto;
}

/* ================================== */
/* KEYFRAME ANIMATIONS */
/* ================================== */

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

.marquee-container {
    overflow: hidden;
    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 Animations */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) rotate(12deg);
    }
    50% {
        transform: translateY(-1.25rem) rotate(15deg);
    }
}

@keyframes float-medium {
    0%, 100% {
        transform: translateY(0) rotate(-12deg);
    }
    50% {
        transform: translateY(-1rem) rotate(-8deg);
    }
}

.parallax-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.parallax-medium {
    animation: float-medium 6s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5rem rgba(99, 102, 241, 0.6);
    }
}

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

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ================================== */
/* TABLE RESPONSIVE WRAPPER */
/* ================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

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

/* ================================== */
/* PROSE STYLING FOR MARKDOWN CONTENT */
/* ================================== */
.prose {
    color: rgba(224, 231, 255, 0.85);
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    border-bottom: 0.125rem solid rgba(99, 102, 241, 0.3);
    padding-bottom: 0.5rem;
}

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

.prose h4 {
    color: rgba(251, 191, 36, 1);
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25rem;
    color: rgba(224, 231, 255, 0.8);
}

.prose p:first-of-type {
    font-size: 1.0625rem;
}

/* Links */
.prose a {
    color: rgba(251, 191, 36, 1);
    text-decoration: underline;
    text-underline-offset: 0.1875rem;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: rgba(251, 191, 36, 0.8);
}

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

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

/* Lists - Unordered */
.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: rgba(224, 231, 255, 0.8);
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 50%;
}

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

.prose ol li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 0.75rem;
    color: rgba(224, 231, 255, 0.8);
    counter-increment: prose-counter;
}

.prose ol li::before {
    content: counter(prose-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid rgba(99, 102, 241, 0.5);
    background: rgba(30, 27, 75, 0.5);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
}

.prose blockquote p {
    color: rgba(224, 231, 255, 0.9);
    font-style: italic;
    margin-bottom: 0;
}

/* Tables */
.prose .table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(99, 102, 241, 0.2);
}

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

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

.prose th {
    padding: 0.875rem 1rem;
    text-align: left;
    color: rgba(224, 231, 255, 1);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.prose td {
    padding: 0.875rem 1rem;
    color: rgba(224, 231, 255, 0.8);
    border-top: 0.0625rem solid rgba(99, 102, 241, 0.1);
}

.prose tbody tr {
    background: rgba(15, 13, 36, 0.3);
    transition: background 0.2s ease;
}

.prose tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Code */
.prose code {
    background: rgba(30, 27, 75, 0.8);
    color: rgba(251, 191, 36, 1);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Monaco', monospace;
}

.prose pre {
    background: rgba(15, 13, 36, 0.9);
    border: 0.0625rem solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: none;
    padding: 0;
    color: rgba(224, 231, 255, 0.9);
}

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    margin: 2.5rem 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 0.0625rem solid rgba(99, 102, 241, 0.2);
}

/* ================================== */
/* RESPONSIVE ADJUSTMENTS */
/* ================================== */
@media (max-width: 48rem) {
    .prose h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose ul li,
    .prose ol li {
        padding-left: 1.5rem;
    }
    
    .prose blockquote {
        padding: 0.75rem 1rem;
    }
}

/* ================================== */
/* SMOOTH SCROLL */
/* ================================== */
html {
    scroll-behavior: smooth;
}

/* ================================== */
/* SELECTION STYLING */
/* ================================== */
::selection {
    background: rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

/* ================================== */
/* SCROLLBAR STYLING */
/* ================================== */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-track {
    background: rgba(15, 13, 36, 1);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* ================================== */
/* DETAILS/SUMMARY STYLING */
/* ================================== */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

/* ================================== */
/* FOCUS STATES */
/* ================================== */
a:focus-visible,
button:focus-visible {
    outline: 0.125rem solid rgba(251, 191, 36, 0.8);
    outline-offset: 0.125rem;
}
