/* ============================================
   Lichi Casino - Custom CSS
   Lichi Bright Start Theme
   ============================================ */

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

body {
    overflow-x: clip;
}

/* ============================================
   Particle Animations
   ============================================ */
.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 15s infinite ease-in-out;
}

.particle-1 {
    width: 1rem;
    height: 1rem;
    background: linear-gradient(135deg, #FFD54F, #FFAB91);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 0.75rem;
    height: 0.75rem;
    background: linear-gradient(135deg, #FF6B9D, #FF8A80);
    top: 20%;
    left: 80%;
    animation-delay: -2s;
}

.particle-3 {
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(135deg, #B2DFDB, #C5E1A5);
    top: 60%;
    left: 15%;
    animation-delay: -4s;
}

.particle-4 {
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #FFAB91, #FFD54F);
    top: 70%;
    left: 75%;
    animation-delay: -6s;
}

.particle-5 {
    width: 0.875rem;
    height: 0.875rem;
    background: linear-gradient(135deg, #FF8A80, #FF6B9D);
    top: 40%;
    left: 5%;
    animation-delay: -8s;
}

.particle-6 {
    width: 1rem;
    height: 1rem;
    background: linear-gradient(135deg, #C5E1A5, #B2DFDB);
    top: 30%;
    left: 90%;
    animation-delay: -10s;
}

.particle-7 {
    width: 0.625rem;
    height: 0.625rem;
    background: linear-gradient(135deg, #FFD54F, #FF8A80);
    top: 80%;
    left: 40%;
    animation-delay: -12s;
}

.particle-8 {
    width: 1.125rem;
    height: 1.125rem;
    background: linear-gradient(135deg, #FF6B9D, #FFAB91);
    top: 15%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(1.25rem, -1.875rem) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-0.625rem, -3.125rem) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(0.9375rem, -1.25rem) scale(1.05);
        opacity: 0.7;
    }
}

/* ============================================
   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%);
    }
}

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

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

/* ============================================
   Prose Styling for Content Pages
   ============================================ */
.prose {
    color: #37474F;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.prose h2 {
    color: #D81B60;
    font-size: 1.75em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 0.1875rem solid #FF6B9D;
    line-height: 1.3;
}

.prose h3 {
    color: #37474F;
    font-size: 1.375em;
    font-weight: 600;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}

.prose h4 {
    color: #37474F;
    font-size: 1.125em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.625em;
    line-height: 1.4;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    color: #37474F;
}

.prose a {
    color: #D81B60;
    text-decoration: underline;
    text-underline-offset: 0.1875em;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #AD1457;
}

.prose strong {
    color: #37474F;
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

/* Prose Lists */
.prose ul {
    list-style-type: disc;
    padding-left: 1.75em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.75em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

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

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

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Prose Blockquotes */
.prose blockquote {
    border-left: 0.25em solid #FF6B9D;
    padding-left: 1.5em;
    margin: 1.75em 0;
    font-style: italic;
    color: #546E7A;
    background: linear-gradient(90deg, rgba(255, 107, 157, 0.08), transparent);
    padding: 1em 1.5em;
    border-radius: 0 0.75em 0.75em 0;
}

.prose blockquote p {
    margin: 0;
}

/* Prose Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.9375em;
}

.prose thead {
    background: linear-gradient(135deg, #FF6B9D, #FF8A80);
}

.prose th {
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 0.875em 1em;
}

.prose tbody tr {
    border-bottom: 0.0625em solid #FFAB91;
}

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

.prose tbody tr:hover {
    background-color: rgba(255, 171, 145, 0.15);
}

.prose td {
    padding: 0.875em 1em;
    color: #37474F;
}

/* Table wrapper for responsiveness */
.prose .table-wrapper {
    overflow-x: auto;
    margin: 2em 0;
    border-radius: 0.75em;
    box-shadow: 0 0.25em 0.9375em rgba(0, 0, 0, 0.08);
}

.prose .table-wrapper table {
    margin: 0;
    min-width: 37.5em;
}

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

.prose figure {
    margin: 2em 0;
}

.prose figcaption {
    text-align: center;
    color: #78909C;
    font-size: 0.875em;
    margin-top: 0.75em;
}

/* Prose Code */
.prose code {
    background-color: #FFF8F0;
    color: #D81B60;
    padding: 0.1875em 0.5em;
    border-radius: 0.375em;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
    background-color: #37474F;
    color: #FFF8F0;
    padding: 1.25em 1.5em;
    border-radius: 0.75em;
    overflow-x: auto;
    margin: 1.75em 0;
}

.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.875em;
}

/* Prose Horizontal Rule */
.prose hr {
    border: none;
    height: 0.1875em;
    background: linear-gradient(90deg, #FF6B9D, #FFAB91, #FFD54F);
    margin: 3em 0;
    border-radius: 0.1875em;
}

/* ============================================
   Button & Link Animations
   ============================================ */
.btn-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.4);
    }
    50% {
        box-shadow: 0 0 1.25em 0.625em rgba(255, 107, 157, 0.2);
    }
}

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

.game-card:hover {
    transform: translateY(-0.5em);
}

/* ============================================
   FAQ Accordion Styling
   ============================================ */
details summary {
    cursor: pointer;
}

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

details[open] summary {
    border-bottom: 0.0625em solid rgba(255, 107, 157, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B9D, #FF8A80);
    border-radius: 0.3125em;
}

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

/* ============================================
   Selection Styling
   ============================================ */
::selection {
    background-color: #FF6B9D;
    color: #ffffff;
}

::-moz-selection {
    background-color: #FF6B9D;
    color: #ffffff;
}

/* ============================================
   Focus States for Accessibility
   ============================================ */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 0.1875em solid #FF6B9D;
    outline-offset: 0.125em;
}

/* ============================================
   Mobile Navigation Animation
   ============================================ */
#mobile-nav {
    transition: transform 0.3s ease-in-out;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .particle-container,
    .marquee-container,
    nav,
    footer,
    .btn-pulse {
        display: none !important;
    }
    
    .prose {
        font-size: 0.75em;
    }
    
    .prose a {
        text-decoration: none;
        color: #37474F;
    }
}
