/* ShibuSpin Casino - Neon Street Theme */
/* Custom CSS - Animations, Overrides & Prose Styling */

/* ==================== */
/* BASE & OVERFLOW      */
/* ==================== */
html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

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

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-1.25rem) rotate(2deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-0.9375rem) rotate(-2deg);
    }
}

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

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

/* Border glow animation */
@keyframes border-glow {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        filter: brightness(1.3);
    }
}

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

/* Neon pulse animation */
@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 0 0 0.3125rem rgba(255, 45, 149, 0.5),
                    0 0 0.625rem rgba(255, 45, 149, 0.3),
                    0 0 1.25rem rgba(255, 45, 149, 0.2);
    }
    50% {
        box-shadow: 0 0 0.625rem rgba(255, 45, 149, 0.8),
                    0 0 1.25rem rgba(255, 45, 149, 0.5),
                    0 0 1.875rem rgba(255, 45, 149, 0.3);
    }
}

.neon-pulse {
    animation: neon-pulse 2s ease-in-out infinite;
}

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

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

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

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

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

@media (min-width: 768px) {
    .game-card {
        width: 15rem;
    }
}

/* ==================== */
/* PARALLAX EFFECT      */
/* ==================== */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* ==================== */
/* HAMBURGER MENU       */
/* ==================== */
#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.3125rem, -0.3125rem);
}

/* ==================== */
/* TABLE RESPONSIVE     */
/* ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 37.5rem;
}

/* ==================== */
/* PROSE STYLING        */
/* ==================== */
.prose {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.75;
}

/* 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(176, 38, 255, 0.3);
    position: relative;
}

.prose h2::before {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    width: 3.75rem;
    height: 0.125rem;
    background: linear-gradient(90deg, #ff2d95, #b026ff);
}

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

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

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

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

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

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

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

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

.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
    color: #d1d5db;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 0.375rem;
    height: 0.375rem;
    background: linear-gradient(135deg, #ff2d95, #b026ff);
    border-radius: 50%;
}

.prose ol {
    list-style-type: none;
    counter-reset: ol-counter;
}

.prose ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
    counter-increment: ol-counter;
}

.prose ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 45, 149, 0.2), rgba(176, 38, 255, 0.2));
    border: 0.0625rem solid rgba(255, 45, 149, 0.5);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff2d95;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blockquotes */
.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(176, 38, 255, 0.1), rgba(0, 245, 255, 0.05));
    border-left: 0.25rem solid #b026ff;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #e5e7eb;
}

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

/* Tables */
.prose .table-responsive {
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(107, 114, 128, 0.3);
}

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

.prose thead {
    background: linear-gradient(90deg, rgba(255, 45, 149, 0.15), rgba(176, 38, 255, 0.15));
}

.prose th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 0.0625rem solid rgba(107, 114, 128, 0.3);
    white-space: nowrap;
}

.prose td {
    padding: 0.75rem 1rem;
    color: #d1d5db;
    border-bottom: 0.0625rem solid rgba(107, 114, 128, 0.2);
}

.prose tbody tr:hover {
    background: rgba(26, 26, 46, 0.5);
}

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

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.3);
    border: 0.0625rem solid rgba(107, 114, 128, 0.2);
}

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

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

/* Code */
.prose code {
    background: rgba(176, 38, 255, 0.15);
    color: #00f5ff;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: monospace;
}

.prose pre {
    background: #12121f;
    border: 0.0625rem solid rgba(107, 114, 128, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Horizontal Rule */
.prose hr {
    border: none;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, rgba(176, 38, 255, 0.5), transparent);
    margin: 2.5rem 0;
}

/* ==================== */
/* FAQ STYLING          */
/* ==================== */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    border-bottom: 0.0625rem solid rgba(107, 114, 128, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 0;
}

/* ==================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================== */
@media (max-width: 768px) {
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose {
        font-size: 0.9375rem;
    }
    
    .prose ul li,
    .prose ol li {
        padding-left: 1.25rem;
    }
    
    .prose blockquote {
        padding: 0.75rem 1rem;
    }
}

/* ==================== */
/* UTILITY CLASSES      */
/* ==================== */
.text-gradient-pink {
    background: linear-gradient(90deg, #ff2d95, #b026ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.glow-pink {
    box-shadow: 0 0 1.25rem rgba(255, 45, 149, 0.4);
}

.glow-cyan {
    box-shadow: 0 0 1.25rem rgba(0, 245, 255, 0.4);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 0.125rem solid #00f5ff;
    outline-offset: 0.125rem;
}
