/* CushySlot Casino - Custom CSS */
/* Theme: Cushy Soft Play Classic - Muted gradients, steady motion, timeless comfort */

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

body {
    overflow-x: clip;
}

/* ============================================
   PARTICLE ANIMATION
   ============================================ */
.particle-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    background: radial-gradient(circle, rgba(184, 148, 140, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: particle-float 15s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.particle:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 50%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 65%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 75%; animation-delay: 5s; animation-duration: 15s; }
.particle:nth-child(7) { left: 85%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 92%; animation-delay: 4.5s; animation-duration: 21s; }

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) scale(1);
        opacity: 0.5;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* ============================================
   MARQUEE ANIMATION
   ============================================ */
.marquee-container {
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

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

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate cards for seamless loop effect */
.marquee-track::after {
    content: '';
    display: flex;
}

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

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

/* ============================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ============================================ */
.prose {
    color: #3d3229;
    line-height: 1.75;
    max-width: 100%;
}

/* Headings */
.prose h2 {
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #3d3229;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e8dfd3;
    line-height: 1.3;
}

.prose h3 {
    font-family: Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #5c4d3d;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}

.prose h4 {
    font-family: Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: #6b5b7a;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25em;
    color: #5c4d3d;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.prose p:first-of-type {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

/* Links */
.prose a {
    color: #6b5b7a;
    text-decoration: underline;
    text-decoration-color: #b8948c;
    text-underline-offset: 0.2em;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.prose a:hover {
    color: #b8948c;
    text-decoration-color: #6b5b7a;
}

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

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

.prose ol {
    list-style-type: decimal;
}

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

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

.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%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: clamp(0.875rem, 1.8vw, 1rem);
}

.prose thead {
    background: linear-gradient(135deg, #5c4d3d 0%, #3d3229 100%);
}

.prose th {
    padding: 0.875em 1em;
    text-align: left;
    font-weight: 600;
    color: #f5f0e8;
    font-family: Georgia, serif;
}

.prose td {
    padding: 0.875em 1em;
    border-bottom: 1px solid #e8dfd3;
    color: #5c4d3d;
}

.prose tbody tr:hover {
    background-color: rgba(232, 223, 211, 0.5);
}

.prose tbody tr:nth-child(even) {
    background-color: rgba(245, 240, 232, 0.5);
}

/* Blockquotes */
.prose blockquote {
    margin: 2em 0;
    padding: 1.5em 1.5em 1.5em 2em;
    border-left: 4px solid #b8948c;
    background: linear-gradient(135deg, rgba(232, 223, 211, 0.5) 0%, rgba(245, 240, 232, 0.3) 100%);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #5c4d3d;
}

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

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

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2em auto;
    display: block;
    box-shadow: 0 10px 40px rgba(61, 50, 41, 0.15);
}

/* Code */
.prose code {
    background-color: #e8dfd3;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #3d3229;
}

.prose pre {
    background-color: #3d3229;
    color: #f5f0e8;
    padding: 1.5em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2em 0;
}

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

/* Horizontal Rules */
.prose hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b8948c, transparent);
    margin: 3em 0;
}

/* Strong & Emphasis */
.prose strong {
    font-weight: 700;
    color: #3d3229;
}

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

/* Table Wrapper for Responsive Tables in Prose */
.prose .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2em 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(61, 50, 41, 0.1);
}

.prose .table-responsive table {
    margin: 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

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

details summary {
    list-style: none;
}

/* ============================================
   GAME CARD HOVER EFFECTS
   ============================================ */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-0.25rem);
}

/* ============================================
   SMOOTH SCROLL BEHAVIOUR
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ============================================
   MOBILE MENU TRANSITION
   ============================================ */
#mobile-menu {
    transition: max-height 0.3s ease-out;
}

/* ============================================
   FOCUS STATES FOR ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #6b5b7a;
    outline-offset: 2px;
}

/* ============================================
   SELECTION STYLING
   ============================================ */
::selection {
    background-color: #b8948c;
    color: #f5f0e8;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 0.625rem;
    height: 0.625rem;
}

::-webkit-scrollbar-track {
    background: #e8dfd3;
}

::-webkit-scrollbar-thumb {
    background: #9a8c7b;
    border-radius: 0.3125rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #7d6e5c;
}

/* ============================================
   BUTTON HOVER ANIMATIONS
   ============================================ */
.btn-primary {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-0.125rem);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 640px) {
    .prose h2 {
        margin-top: 2em;
    }
    
    .prose blockquote {
        padding: 1em 1em 1em 1.25em;
    }
    
    .prose table {
        font-size: 0.875rem;
    }
    
    .prose th,
    .prose td {
        padding: 0.625em 0.75em;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .particle-container,
    .marquee-track,
    header,
    footer {
        display: none !important;
    }
    
    .prose {
        max-width: 100%;
        color: #000;
    }
    
    .prose a {
        color: #000;
        text-decoration: underline;
    }
}
