/* ========================================
   Cushyslot Casino - Custom CSS
   Theme: Cushy Soft Play NL
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties
   ---------------------------------------- */
:root {
    --cushy-cream: #FFF8F0;
    --cushy-peach: #FFE5D0;
    --cushy-coral: #FF8C69;
    --cushy-rose: #E85A71;
    --cushy-plum: #4A2040;
    --cushy-wine: #6B2D5C;
    --cushy-gold: #FFD700;
    --cushy-mint: #98D4BB;
}

/* ----------------------------------------
   Global Resets & Base Styles
   ---------------------------------------- */
html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

/* ----------------------------------------
   Animations & Keyframes
   ---------------------------------------- */

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

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

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.625rem);
    }
}

.animate-float {
    animation: float 4s 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;
}

/* Parallax Scroll Effect */
@keyframes parallaxBg {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.parallax-bg {
    animation: parallaxBg 20s ease-in-out infinite alternate;
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0.625rem rgba(255, 140, 105, 0.3);
    }
    50% {
        box-shadow: 0 0 1.5rem rgba(255, 140, 105, 0.6);
    }
}

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

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.2) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

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

/* ----------------------------------------
   Prose Styling for Markdown Content
   ---------------------------------------- */
.prose {
    color: var(--cushy-plum);
    line-height: 1.7;
    font-size: 1rem;
}

/* Headings */
.prose h2 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    color: var(--cushy-plum);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid var(--cushy-peach);
    line-height: 1.3;
}

.prose h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--cushy-wine);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose h4 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--cushy-plum);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25rem;
    color: rgba(74, 32, 64, 0.85);
}

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

/* Links */
.prose a {
    color: var(--cushy-coral);
    text-decoration: underline;
    text-underline-offset: 0.1875rem;
    transition: color 0.2s ease;
}

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

/* 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(74, 32, 64, 0.85);
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--cushy-coral);
    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(74, 32, 64, 0.85);
    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, var(--cushy-coral), var(--cushy-rose));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    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;
}

/* Tables */
.prose .table-responsive {
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 0.0625rem solid var(--cushy-peach);
}

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

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

.prose thead th {
    color: var(--cushy-cream);
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    padding: 0.875rem 1rem;
    text-align: left;
}

.prose tbody tr {
    border-bottom: 0.0625rem solid var(--cushy-peach);
    transition: background-color 0.2s ease;
}

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

.prose tbody tr:hover {
    background-color: rgba(255, 229, 208, 0.3);
}

.prose tbody td {
    padding: 0.875rem 1rem;
    color: var(--cushy-wine);
}

/* Blockquotes */
.prose blockquote {
    position: relative;
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 229, 208, 0.5), rgba(255, 248, 240, 0.8));
    border-left: 0.25rem solid var(--cushy-coral);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
}

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

.prose blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    font-size: 3rem;
    color: var(--cushy-coral);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.prose em {
    font-style: italic;
    color: var(--cushy-wine);
}

/* Code Inline */
.prose code {
    background: var(--cushy-peach);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: var(--cushy-plum);
    font-family: 'Monaco', 'Consolas', monospace;
}

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

/* Images in Prose */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 0.5rem 1.5rem rgba(74, 32, 64, 0.1);
}

/* ----------------------------------------
   Prose Cushy Variant (for specific sections)
   ---------------------------------------- */
.prose-cushy {
    color: rgba(74, 32, 64, 0.8);
    line-height: 1.6;
}

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

.prose-cushy ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

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

details summary {
    list-style: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--cushy-coral);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cushy-rose);
}

/* ----------------------------------------
   Selection Styling
   ---------------------------------------- */
::selection {
    background: var(--cushy-coral);
    color: white;
}

/* ----------------------------------------
   Focus States for Accessibility
   ---------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0.125rem solid var(--cushy-gold);
    outline-offset: 0.125rem;
}

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

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