/* Candicab Casino - Custom CSS */
/* Sweet Motion Theme - Animations, Overrides & Prose Styling */

/* ========================================
   Global Overflow Control
   ======================================== */
html {
    overflow-x: clip;
    overflow-y: auto;
}

body {
    overflow-x: clip;
    overflow-y: auto;
}

/* ========================================
   Keyframe Animations
   ======================================== */

/* Particle Float Animation */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 1.25rem rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5rem rgba(255, 107, 157, 0.6);
    }
}

/* Gradient Shift Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

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

/* Spin Slow Animation */
@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Particle Styles
   ======================================== */
.particle {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #FF6B9D, #9B5DE5);
    border-radius: 50%;
    animation: particleFloat 12s linear infinite;
    pointer-events: none;
}

.particle:nth-child(odd) {
    background: linear-gradient(135deg, #00BBF9, #00F5D4);
    width: 0.375rem;
    height: 0.375rem;
}

.particle:nth-child(3n) {
    background: linear-gradient(135deg, #FEE440, #FF9F1C);
    width: 0.25rem;
    height: 0.25rem;
}

/* ========================================
   Animation Utility Classes
   ======================================== */
.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.animate-bounce-soft {
    animation: bounceSoft 2s ease-in-out infinite;
}

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

.animate-spin-slow {
    animation: spinSlow 20s linear infinite;
}

/* ========================================
   Tilt Card Effect
   ======================================== */
.tilt-card {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

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

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

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

::-webkit-scrollbar-track {
    background: #0F0A1F;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B9D, #9B5DE5);
    border-radius: 0.25rem;
}

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

/* ========================================
   Selection Styling
   ======================================== */
::selection {
    background: rgba(155, 93, 229, 0.4);
    color: #ffffff;
}

/* ========================================
   Focus Styling
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 0.125rem solid #FF6B9D;
    outline-offset: 0.125rem;
}

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

/* Headings */
.prose h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid rgba(155, 93, 229, 0.3);
    line-height: 1.3;
}

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

.prose h4 {
    color: #00BBF9;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.prose p:first-of-type {
    font-size: 1.125rem;
    color: #E5E7EB;
}

/* Links */
.prose a {
    color: #FF6B9D;
    text-decoration: none;
    border-bottom: 0.0625rem solid transparent;
    transition: all 0.3s ease;
}

.prose a:hover {
    color: #00F5D4;
    border-bottom-color: #00F5D4;
}

/* Strong and Emphasis */
.prose strong {
    color: #ffffff;
    font-weight: 600;
}

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

/* 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: #D1D5DB;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #FF6B9D, #9B5DE5);
    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.5rem;
    margin-bottom: 0.75rem;
    color: #D1D5DB;
    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, #9B5DE5, #00BBF9);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

/* Blockquotes */
.prose blockquote {
    border-left: 0.25rem solid #9B5DE5;
    background: rgba(155, 93, 229, 0.1);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #E5E7EB;
}

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

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

/* Tables */
.prose .table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 1rem;
    border: 0.0625rem solid rgba(155, 93, 229, 0.2);
}

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

.prose thead {
    background: rgba(155, 93, 229, 0.2);
}

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

.prose td {
    padding: 0.875rem 1.25rem;
    border-top: 0.0625rem solid rgba(155, 93, 229, 0.1);
    color: #D1D5DB;
}

.prose tbody tr:hover {
    background: rgba(155, 93, 229, 0.05);
}

/* Code Inline */
.prose code {
    background: rgba(155, 93, 229, 0.2);
    color: #00F5D4;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Code Blocks */
.prose pre {
    background: #0F0A1F;
    border: 0.0625rem solid rgba(155, 93, 229, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
    border: 0.0625rem solid rgba(155, 93, 229, 0.2);
}

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

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

details summary {
    list-style: none;
}

/* ========================================
   Mobile Menu Solid Background
   ======================================== */
#mobile-menu {
    background-color: #1A1033;
}

/* ========================================
   Responsive Typography Adjustments
   ======================================== */
@media (max-width: 640px) {
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose h4 {
        font-size: 1rem;
    }
    
    .prose p:first-of-type {
        font-size: 1rem;
    }
    
    .prose th,
    .prose td {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

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