/* Candicabz Casino - Custom CSS */
/* Candicab Pop Drive North Theme - Brighter highlights, stronger glow accents */

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Tilt Animation */
@keyframes tilt {
    0%, 100% {
        transform: rotate(-2deg) scale(1);
    }
    25% {
        transform: rotate(2deg) scale(1.02);
    }
    50% {
        transform: rotate(-1deg) scale(1);
    }
    75% {
        transform: rotate(1deg) scale(1.01);
    }
}

.tilt-animation {
    animation: tilt 4s ease-in-out infinite;
}

/* Particle Float Animation */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-1.25em) translateX(0.625em);
        opacity: 1;
    }
    50% {
        transform: translateY(-0.625em) translateX(-0.625em);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-1.875em) translateX(0.3125em);
        opacity: 0.9;
    }
}

.particle-float {
    animation: particleFloat 6s ease-in-out infinite;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 1.25em rgba(255, 45, 122, 0.3);
    }
    50% {
        box-shadow: 0 0 2.5em rgba(255, 45, 122, 0.6), 0 0 3.75em rgba(0, 229, 255, 0.3);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

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

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

/* ============================================
   GLOBAL OVERRIDES
   ============================================ */

html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

/* Selection styling */
::selection {
    background: rgba(255, 45, 122, 0.4);
    color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 0.5em;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF2D7A, #9B2FD0);
    border-radius: 0.25em;
}

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

/* ============================================
   TABLE RESPONSIVE WRAPPER
   ============================================ */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* ============================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ============================================ */

.prose {
    color: #e5e5e5;
    line-height: 1.75;
    font-size: 1rem;
}

/* Headings */
.prose h2 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75em;
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(155, 47, 208, 0.3);
    position: relative;
}

.prose h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 4em;
    height: 2px;
    background: linear-gradient(90deg, #FF2D7A, #00E5FF);
}

.prose h3 {
    color: #00E5FF;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.375em;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
}

.prose h4 {
    color: #AAFF00;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.125em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

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

.prose p:first-of-type {
    font-size: 1.1em;
    color: #e5e5e5;
}

/* Links */
.prose a {
    color: #FF2D7A;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 45, 122, 0.3);
    transition: all 0.2s ease;
}

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

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

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

/* Lists - Unordered */
.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: #d1d5db;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.5em;
    height: 0.5em;
    background: linear-gradient(135deg, #FF2D7A, #E91E8C);
    border-radius: 50%;
}

/* Lists - Ordered */
.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: #d1d5db;
    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: linear-gradient(135deg, #9B2FD0, #FF2D7A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875em;
    font-weight: 600;
    color: #ffffff;
}

/* Nested lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid #FF2D7A;
    background: rgba(45, 27, 78, 0.5);
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    border-radius: 0 0.75em 0.75em 0;
    position: relative;
}

.prose blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.25em;
    left: 0.5em;
    font-size: 3em;
    color: rgba(255, 45, 122, 0.3);
    font-family: Georgia, serif;
}

.prose blockquote p {
    color: #e5e5e5;
    font-style: italic;
    margin-bottom: 0;
}

/* Tables */
.prose .table-responsive {
    margin: 1.5em 0;
    border-radius: 0.75em;
    border: 1px solid rgba(155, 47, 208, 0.3);
    overflow-x: auto;
}

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

.prose thead {
    background: rgba(155, 47, 208, 0.2);
}

.prose th {
    padding: 0.875em 1em;
    text-align: left;
    font-weight: 600;
    color: #00E5FF;
    border-bottom: 2px solid rgba(155, 47, 208, 0.3);
    white-space: nowrap;
}

.prose td {
    padding: 0.875em 1em;
    color: #d1d5db;
    border-bottom: 1px solid rgba(155, 47, 208, 0.15);
}

.prose tbody tr:hover {
    background: rgba(155, 47, 208, 0.1);
}

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

/* Code inline */
.prose code {
    background: rgba(45, 27, 78, 0.8);
    color: #AAFF00;
    padding: 0.125em 0.375em;
    border-radius: 0.25em;
    font-size: 0.875em;
    font-family: 'Fira Code', monospace;
}

/* Code blocks */
.prose pre {
    background: rgba(13, 1, 24, 0.8);
    border: 1px solid rgba(155, 47, 208, 0.3);
    border-radius: 0.75em;
    padding: 1.25em;
    overflow-x: auto;
    margin: 1.5em 0;
}

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

/* Horizontal rule */
.prose hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF2D7A, #00E5FF, transparent);
    margin: 2.5em 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1em;
    margin: 1.5em 0;
    border: 2px solid rgba(155, 47, 208, 0.3);
    box-shadow: 0 0.625em 2.5em rgba(0, 0, 0, 0.3);
}

/* Figure captions */
.prose figcaption {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875em;
    margin-top: 0.75em;
}

/* ============================================
   COMPONENT OVERRIDES
   ============================================ */

/* FAQ accordion icon rotation */
.faq-toggle i.rotate-180 {
    transform: rotate(180deg);
}

/* Button hover glow effect */
a[href="/play"]:hover {
    filter: brightness(1.1);
}

/* Card hover lift */
.group:hover {
    transform: translateY(-0.125em);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose h2 {
        font-size: 1.5em;
    }
    
    .prose h3 {
        font-size: 1.25em;
    }
    
    .prose blockquote {
        padding: 1em 1.25em;
    }
    
    .prose blockquote::before {
        font-size: 2em;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient-pink {
    background: linear-gradient(90deg, #FF2D7A, #E91E8C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(90deg, #00E5FF, #AAFF00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glow-pink {
    box-shadow: 0 0 1.875em rgba(255, 45, 122, 0.4);
}

.bg-glow-cyan {
    box-shadow: 0 0 1.875em rgba(0, 229, 255, 0.4);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #00E5FF;
    outline-offset: 2px;
}
