/* ================================================
   CushySlot Casino - Custom Styles
   Theme: Cushy Soft Play Plus
   Enhanced glow accents, richer gradients, expressive motion
   ================================================ */

/* ------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------ */
:root {
    --cushy-deep: #0f0a1e;
    --cushy-purple: #2d1b4e;
    --cushy-violet: #6b3fa0;
    --cushy-pink: #e84393;
    --cushy-magenta: #fd79a8;
    --cushy-gold: #f9ca24;
    --cushy-teal: #00cec9;
    --cushy-soft: #ffeef8;
}

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

body {
    overflow-x: clip;
    overflow-y: auto;
}

/* ------------------------------------------------
   Keyframe Animations
   ------------------------------------------------ */

/* Tilt Animation */
@keyframes tilt {
    0%, 100% {
        transform: rotate(-1deg);
    }
    50% {
        transform: rotate(1deg);
    }
}

.animate-tilt {
    animation: tilt 6s ease-in-out infinite;
}

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

.animate-marquee {
    animation: marquee 30s linear infinite;
}

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

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-1.25rem) scale(1.05);
        opacity: 0.3;
    }
}

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

/* Float Delayed Animation */
@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(1.25rem) scale(1.08);
        opacity: 0.25;
    }
}

.animate-float-delayed {
    animation: float-delayed 10s ease-in-out infinite;
    animation-delay: 2s;
}

/* Pulse Slow Animation */
@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.25;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 6s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

/* Glow Pulse Animation */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(232, 67, 147, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5rem rgba(232, 67, 147, 0.5);
    }
}

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

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

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

/* ------------------------------------------------
   Prose Styling for Markdown Content
   ------------------------------------------------ */
.prose {
    color: #d1d5db;
    line-height: 1.75;
    font-size: 1rem;
}

/* Headings */
.prose h2 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(107, 63, 160, 0.4);
    position: relative;
}

.prose h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--cushy-pink), var(--cushy-teal));
}

.prose h3 {
    color: #fd79a8;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h4 {
    color: #f9ca24;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

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

.prose p:first-of-type {
    font-size: 1.1em;
    color: #e5e7eb;
}

/* Links */
.prose a {
    color: var(--cushy-teal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.prose a:hover {
    color: var(--cushy-magenta);
    border-bottom-color: var(--cushy-magenta);
}

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

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

/* Lists - Unordered */
.prose ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}

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

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625em;
    width: 0.5em;
    height: 0.5em;
    background: linear-gradient(135deg, var(--cushy-pink), var(--cushy-violet));
    border-radius: 50%;
}

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

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

.prose ol li::before {
    content: counter(prose-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75em;
    height: 1.75em;
    background: linear-gradient(135deg, var(--cushy-violet), var(--cushy-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875em;
    font-weight: 600;
    color: var(--cushy-magenta);
}

/* Tables */
.prose .table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5em;
    border-radius: 0.75rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(45, 27, 78, 0.4);
    border-radius: 0.75rem;
    overflow: hidden;
}

.prose thead {
    background: rgba(107, 63, 160, 0.5);
}

.prose th {
    padding: 1em 1.25em;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--cushy-magenta);
    font-size: 0.9375em;
    white-space: nowrap;
}

.prose td {
    padding: 0.875em 1.25em;
    border-top: 1px solid rgba(107, 63, 160, 0.3);
    color: #d1d5db;
    font-size: 0.9375em;
}

.prose tbody tr:hover {
    background: rgba(107, 63, 160, 0.25);
}

/* Blockquotes */
.prose blockquote {
    margin: 1.5em 0;
    padding: 1.25em 1.5em;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.6), rgba(107, 63, 160, 0.3));
    border-left: 4px solid var(--cushy-pink);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #e5e7eb;
}

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

.prose blockquote p::before {
    content: '"';
    font-size: 1.5em;
    color: var(--cushy-pink);
    margin-right: 0.25em;
}

/* Code */
.prose code {
    background: rgba(107, 63, 160, 0.4);
    padding: 0.2em 0.5em;
    border-radius: 0.375rem;
    font-size: 0.9em;
    color: var(--cushy-teal);
}

.prose pre {
    background: rgba(15, 10, 30, 0.8);
    padding: 1.25em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid rgba(107, 63, 160, 0.3);
}

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

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cushy-violet), var(--cushy-pink), var(--cushy-violet), transparent);
    margin: 2.5em 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5em 0;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(107, 63, 160, 0.3);
}

/* ------------------------------------------------
   Additional Component Overrides
   ------------------------------------------------ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.625rem;
    height: 0.625rem;
}

::-webkit-scrollbar-track {
    background: var(--cushy-deep);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cushy-violet), var(--cushy-purple));
    border-radius: 0.3125rem;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--cushy-pink), var(--cushy-violet));
}

/* Selection */
::selection {
    background: rgba(232, 67, 147, 0.4);
    color: #ffffff;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--cushy-pink);
    outline-offset: 2px;
}

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

details[open] summary {
    border-bottom: 1px solid rgba(107, 63, 160, 0.3);
}

/* ------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------ */
@media (max-width: 768px) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        margin-top: 2em;
    }
    
    .prose h3 {
        margin-top: 1.5em;
    }
    
    .prose ul li,
    .prose ol li {
        padding-left: 1.5em;
    }
    
    .prose ol li::before {
        width: 1.5em;
        height: 1.5em;
        font-size: 0.75em;
    }
    
    .prose th,
    .prose td {
        padding: 0.75em 1em;
        font-size: 0.875em;
    }
    
    .prose blockquote {
        padding: 1em 1.25em;
    }
}

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