/* Cushy Casino - Custom CSS */
/* Animation Keyframes, Prose Styling & Overrides */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    --cushy-cream: #FFF8F0;
    --cushy-blush: #FFEEE4;
    --cushy-peach: #FFCDB2;
    --cushy-coral: #E07A5F;
    --cushy-rose: #B5838D;
    --cushy-plum: #6D4C5E;
    --cushy-deep: #3D2C3A;
    --cushy-soft: #F5EBE0;
    --cushy-mint: #D8E2DC;
}

/* ========================================
   Global Overrides
   ======================================== */
html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

/* Hide scrollbar for marquee but allow scrolling */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ========================================
   Parallax Animation
   ======================================== */
.parallax-element {
    animation: parallaxFloat 6s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.625rem);
    }
}

/* ========================================
   Marquee Animation
   ======================================== */
.marquee-container {
    overflow: hidden;
    position: relative;
}

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

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

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

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

/* ========================================
   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 {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--cushy-plum);
    max-width: 100%;
}

/* Prose Headings */
.prose h2 {
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--cushy-deep);
    margin-top: 2.5em;
    margin-bottom: 1em;
    line-height: 1.3;
    border-bottom: 0.125rem solid var(--cushy-peach);
    padding-bottom: 0.5em;
}

.prose h2:first-child {
    margin-top: 0;
}

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

.prose h4 {
    font-family: Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cushy-deep);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Prose Paragraphs */
.prose p {
    margin-bottom: 1.5em;
    color: var(--cushy-plum);
    line-height: 1.75;
}

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

/* Prose Links */
.prose a {
    color: var(--cushy-coral);
    text-decoration: underline;
    text-decoration-color: var(--cushy-peach);
    text-underline-offset: 0.25em;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.prose a:hover {
    color: var(--cushy-rose);
    text-decoration-color: var(--cushy-rose);
}

/* Prose Strong & Emphasis */
.prose strong {
    font-weight: 700;
    color: var(--cushy-deep);
}

.prose em {
    font-style: italic;
}

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

.prose ul li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.75em;
    color: var(--cushy-plum);
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625em;
    width: 0.5em;
    height: 0.5em;
    background-color: var(--cushy-coral);
    border-radius: 50%;
}

/* Prose Ordered Lists */
.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: var(--cushy-plum);
    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-color: var(--cushy-coral);
    color: var(--cushy-cream);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prose Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid var(--cushy-coral);
    background-color: var(--cushy-soft);
    padding: 1.5em 2em;
    margin: 2em 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: var(--cushy-deep);
}

.prose blockquote p {
    margin-bottom: 0;
    color: var(--cushy-deep);
}

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

/* Prose Tables */
.prose .table-responsive {
    margin: 2em 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(61, 44, 58, 0.1);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    background-color: var(--cushy-cream);
}

.prose thead {
    background-color: var(--cushy-plum);
}

.prose thead th {
    padding: 1em 1.25em;
    text-align: left;
    font-weight: 600;
    color: var(--cushy-cream);
    font-family: Georgia, serif;
}

.prose tbody tr {
    border-bottom: 1px solid var(--cushy-soft);
    transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
    background-color: var(--cushy-soft);
}

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

.prose tbody td {
    padding: 1em 1.25em;
    color: var(--cushy-deep);
}

/* Prose Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2em 0;
    box-shadow: 0 0.5rem 2rem rgba(61, 44, 58, 0.15);
}

/* Prose Code */
.prose code {
    background-color: var(--cushy-soft);
    padding: 0.2em 0.5em;
    border-radius: 0.375rem;
    font-size: 0.875em;
    color: var(--cushy-deep);
    font-family: 'Courier New', monospace;
}

.prose pre {
    background-color: var(--cushy-deep);
    color: var(--cushy-cream);
    padding: 1.5em;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 2em 0;
}

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

/* Prose Horizontal Rule */
.prose hr {
    border: none;
    height: 0.125rem;
    background: linear-gradient(90deg, transparent, var(--cushy-peach), transparent);
    margin: 3em 0;
}

/* ========================================
   Prose Cushy Variant (for review cards)
   ======================================== */
.prose-cushy {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.prose-cushy p {
    margin-bottom: 1em;
}

.prose-cushy ul {
    list-style: none;
    padding-left: 0;
}

.prose-cushy ul li {
    margin-bottom: 0.5em;
}

/* ========================================
   Game Card Hover Effects
   ======================================== */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ========================================
   Details/Summary FAQ Styling
   ======================================== */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* ========================================
   Button Focus States (Accessibility)
   ======================================== */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 0.1875rem solid var(--cushy-coral);
    outline-offset: 0.125rem;
}

/* ========================================
   Responsive Typography Scale
   ======================================== */
@media (max-width: 640px) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        margin-top: 2em;
    }
    
    .prose blockquote {
        padding: 1em 1.25em;
        margin: 1.5em 0;
    }
    
    .prose table {
        font-size: 0.875rem;
    }
    
    .prose thead th,
    .prose tbody td {
        padding: 0.75em 1em;
    }
}

/* ========================================
   Smooth Animations Preference
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .parallax-element {
        animation: none;
    }
    
    .marquee-track {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .prose {
        color: #000;
    }
    
    .prose a {
        color: #000;
        text-decoration: underline;
    }
    
    .prose blockquote {
        border-left-color: #666;
        background: #f5f5f5;
    }
}
