/* ========================================
   cushyslot Casino - Custom Styles
   Cushy Soft Play Flow Theme
   ======================================== */

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

/* ----------------------------------------
   Soft Glow Effect
   ---------------------------------------- */
.soft-glow {
    box-shadow: 
        0 0 2rem rgba(167, 139, 250, 0.2),
        0 0 4rem rgba(247, 202, 201, 0.1);
    animation: soft-pulse 4s ease-in-out infinite;
}

@keyframes soft-pulse {
    0%, 100% {
        box-shadow: 
            0 0 2rem rgba(167, 139, 250, 0.2),
            0 0 4rem rgba(247, 202, 201, 0.1);
    }
    50% {
        box-shadow: 
            0 0 3rem rgba(167, 139, 250, 0.3),
            0 0 5rem rgba(247, 202, 201, 0.15);
    }
}

/* ----------------------------------------
   Particle Animation System
   ---------------------------------------- */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle linear infinite;
}

.particle-1 {
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #a78bfa, #f7cac9);
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.particle-2 {
    width: 0.375rem;
    height: 0.375rem;
    background: linear-gradient(135deg, #f7cac9, #98d8c8);
    left: 25%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.particle-3 {
    width: 0.625rem;
    height: 0.625rem;
    background: linear-gradient(135deg, #98d8c8, #a78bfa);
    left: 45%;
    animation-duration: 22s;
    animation-delay: -10s;
}

.particle-4 {
    width: 0.25rem;
    height: 0.25rem;
    background: linear-gradient(135deg, #ffe5d9, #f7cac9);
    left: 60%;
    animation-duration: 28s;
    animation-delay: -3s;
}

.particle-5 {
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #b8a9c9, #a78bfa);
    left: 75%;
    animation-duration: 26s;
    animation-delay: -8s;
}

.particle-6 {
    width: 0.375rem;
    height: 0.375rem;
    background: linear-gradient(135deg, #f7cac9, #ffe5d9);
    left: 85%;
    animation-duration: 32s;
    animation-delay: -15s;
}

.particle-7 {
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #98d8c8, #b8a9c9);
    left: 35%;
    animation-duration: 24s;
    animation-delay: -12s;
}

.particle-8 {
    width: 0.25rem;
    height: 0.25rem;
    background: linear-gradient(135deg, #a78bfa, #98d8c8);
    left: 92%;
    animation-duration: 27s;
    animation-delay: -7s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* ----------------------------------------
   Tilt Card Effect Enhancement
   ---------------------------------------- */
.tilt-element {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

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

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

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

::-webkit-scrollbar-track {
    background: #1a1625;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6b5b95, #a78bfa);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a78bfa, #f7cac9);
}

/* ----------------------------------------
   Focus States for Accessibility
   ---------------------------------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 0.125rem solid #a78bfa;
    outline-offset: 0.125rem;
    border-radius: 0.25rem;
}

/* ----------------------------------------
   Details/Summary FAQ Styling
   ---------------------------------------- */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

details[open] summary {
    border-bottom: 1px solid rgba(107, 91, 149, 0.3);
    margin-bottom: 1rem;
}

/* ----------------------------------------
   Line Clamp Utility
   ---------------------------------------- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   PROSE STYLING FOR MARKDOWN CONTENT
   Typography & Readability
   ======================================== */

.prose {
    color: #b8a9c9;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    color: #fef9f3;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    line-height: 1.3;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(107, 91, 149, 0.3);
    position: relative;
}

.prose h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, #f7cac9, #a78bfa);
    border-radius: 1px;
}

.prose h3 {
    color: #f7cac9;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h4 {
    color: #98d8c8;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
    color: #b8a9c9;
    margin-bottom: 1.5em;
    line-height: 1.8;
}

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

/* Links */
.prose a {
    color: #f7cac9;
    text-decoration: underline;
    text-decoration-color: rgba(247, 202, 201, 0.4);
    text-underline-offset: 0.2em;
    transition: all 0.3s ease;
}

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

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

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

/* Lists */
.prose ul,
.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.prose ul {
    list-style-type: none;
}

.prose ul li {
    position: relative;
    padding-left: 1.25em;
    margin-bottom: 0.625em;
    color: #b8a9c9;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.375rem;
    height: 0.375rem;
    background: linear-gradient(135deg, #f7cac9, #a78bfa);
    border-radius: 50%;
}

.prose ol {
    list-style-type: none;
    counter-reset: list-counter;
}

.prose ol li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.75em;
    counter-increment: list-counter;
    color: #b8a9c9;
}

.prose ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5em;
    height: 1.5em;
    background: linear-gradient(135deg, #6b5b95, #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fef9f3;
    text-align: center;
    line-height: 1.5em;
}

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

/* Blockquotes */
.prose blockquote {
    margin: 2em 0;
    padding: 1.5em 1.5em 1.5em 2em;
    background: linear-gradient(135deg, rgba(45, 38, 64, 0.6), rgba(26, 22, 37, 0.8));
    border-left: 0.25rem solid #a78bfa;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #ffe5d9;
}

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

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

/* Tables */
.prose .table-responsive {
    overflow-x: auto;
    margin: 2em 0;
    border-radius: 1rem;
    border: 1px solid rgba(107, 91, 149, 0.3);
}

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

.prose thead {
    background: linear-gradient(135deg, #2d2640, #1a1625);
}

.prose th {
    color: #fef9f3;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    text-align: left;
    padding: 1em 1.25em;
    border-bottom: 2px solid #6b5b95;
    white-space: nowrap;
}

.prose td {
    padding: 0.875em 1.25em;
    border-bottom: 1px solid rgba(107, 91, 149, 0.2);
    color: #b8a9c9;
}

.prose tbody tr {
    transition: background-color 0.3s ease;
}

.prose tbody tr:hover {
    background-color: rgba(107, 91, 149, 0.1);
}

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

/* Code */
.prose code {
    background: rgba(45, 38, 64, 0.8);
    color: #98d8c8;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.prose pre {
    background: linear-gradient(135deg, #2d2640, #1a1625);
    border: 1px solid rgba(107, 91, 149, 0.3);
    border-radius: 1rem;
    padding: 1.5em;
    overflow-x: auto;
    margin: 2em 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6b5b95, #a78bfa, #6b5b95, transparent);
    margin: 3em 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2em auto;
    display: block;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.prose figure {
    margin: 2em 0;
}

.prose figcaption {
    text-align: center;
    color: #6b5b95;
    font-size: 0.875rem;
    margin-top: 0.75em;
    font-style: italic;
}

/* First Paragraph Enhancement */
.prose > p:first-of-type::first-letter {
    float: left;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 3.5em;
    line-height: 0.8;
    padding-right: 0.1em;
    padding-top: 0.1em;
    color: #f7cac9;
    font-weight: 700;
}

/* Mark / Highlight */
.prose mark {
    background: linear-gradient(135deg, rgba(247, 202, 201, 0.3), rgba(167, 139, 250, 0.3));
    color: #fef9f3;
    padding: 0.1em 0.3em;
    border-radius: 0.25rem;
}

/* Small Text */
.prose small {
    color: #6b5b95;
    font-size: 0.875em;
}

/* Abbreviations */
.prose abbr {
    text-decoration: underline dotted #6b5b95;
    cursor: help;
}

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

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

.prose dd {
    color: #b8a9c9;
    margin-left: 1.5em;
    margin-top: 0.25em;
}

/* ----------------------------------------
   Responsive Typography Adjustments
   ---------------------------------------- */
@media (max-width: 640px) {
    .prose {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .prose h2 {
        margin-top: 2em;
    }

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

    .prose ul li,
    .prose ol li {
        padding-left: 1em;
    }

    .prose blockquote {
        padding: 1em 1em 1em 1.25em;
        margin: 1.5em 0;
    }

    .prose > p:first-of-type::first-letter {
        font-size: 2.75em;
    }

    .prose th,
    .prose td {
        padding: 0.625em 0.875em;
        font-size: 0.875rem;
    }
}

/* ----------------------------------------
   Animation Reduced Motion Support
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .soft-glow,
    .tilt-element {
        animation: none !important;
        transition: none !important;
    }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
    .particles-container,
    .soft-glow {
        display: none !important;
    }

    .prose {
        color: #000;
    }

    .prose h2,
    .prose h3,
    .prose h4,
    .prose strong {
        color: #000;
    }

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