/* ================================================
   CushySlot Casino - Custom CSS
   Soft Play Theme with Animations & Prose Styling
   ================================================ */

/* ================================================
   Base & Overflow Control
   ================================================ */
html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

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

.marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee 40s linear infinite;
    width: max-content;
}

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

.game-card {
    flex-shrink: 0;
    width: 16rem;
}

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

/* ================================================
   Parallax Effects
   ================================================ */
.parallax-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.parallax-medium {
    animation: float-medium 6s ease-in-out infinite;
}

.parallax-fast {
    animation: float-fast 4s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-medium {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@keyframes float-fast {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

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

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

/* ================================================
   Prose Styling for Inner Pages
   ================================================ */
.prose {
    color: #374151;
    line-height: 1.7;
    font-size: 1rem;
}

/* Headings */
.prose h2 {
    color: #6b4c9a;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8e0f0;
    line-height: 1.3;
}

.prose h3 {
    color: #4a3570;
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose h4 {
    color: #6b4c9a;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.25rem;
    color: #4b5563;
}

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

/* Links */
.prose a {
    color: #ff7e5f;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #6b4c9a;
}

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

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

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

.prose li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
    color: #4b5563;
}

.prose li::marker {
    color: #9b7dcf;
}

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

/* Nested list styling */
.prose ul ul {
    list-style-type: circle;
}

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

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.prose .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e8e0f0;
}

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

.prose thead {
    background: linear-gradient(135deg, #6b4c9a 0%, #9b7dcf 100%);
}

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

.prose td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e8e0f0;
    color: #4b5563;
}

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

.prose tbody tr:hover {
    background-color: #f8f5ff;
}

/* Blockquotes */
.prose blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f5ff 0%, #e8e0f0 100%);
    border-left: 4px solid #9b7dcf;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #4a3570;
}

.prose blockquote p {
    margin-bottom: 0;
    color: #4a3570;
}

.prose blockquote p:not(:last-child) {
    margin-bottom: 0.75rem;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(107, 76, 154, 0.15);
}

/* Code */
.prose code {
    background-color: #f8f5ff;
    color: #6b4c9a;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
    background-color: #1f1535;
    color: #e8e0f0;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8e0f0, transparent);
    margin: 2.5rem 0;
}

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

.prose em {
    font-style: italic;
}

/* Definition Lists */
.prose dl {
    margin: 1.5rem 0;
}

.prose dt {
    font-weight: 600;
    color: #6b4c9a;
    margin-top: 1rem;
}

.prose dd {
    margin-left: 1.5rem;
    color: #4b5563;
}

/* ================================================
   Responsive Typography Adjustments
   ================================================ */
@media (min-width: 640px) {
    .prose {
        font-size: 1.0625rem;
    }

    .prose h2 {
        font-size: 2rem;
    }

    .prose h3 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .prose {
        font-size: 1.125rem;
    }

    .prose h2 {
        font-size: 2.25rem;
    }

    .prose h3 {
        font-size: 1.625rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #9b7dcf;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b4c9a;
}

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

details[open] summary {
    border-bottom: 1px solid #e8e0f0;
}

/* ================================================
   CTA Button Hover Glow
   ================================================ */
.cta-glow {
    position: relative;
}

.cta-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ff7e5f, #ffb88c);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.cta-glow:hover::before {
    opacity: 0.5;
}

/* ================================================
   Loading Skeleton Animation
   ================================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f8f5ff 25%, #e8e0f0 50%, #f8f5ff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ================================================
   Mobile Menu Animation
   ================================================ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu:not(.hidden) {
    animation: slideDown 0.2s ease-out;
}

/* ================================================
   Focus States for Accessibility
   ================================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #9b7dcf;
    outline-offset: 2px;
}

/* ================================================
   Print Styles
   ================================================ */
@media print {
    .marquee-track {
        animation: none;
    }

    .parallax-slow,
    .parallax-medium,
    .parallax-fast {
        animation: none;
    }
}
