/* ===========================================
   Cushyslot Casino - Custom CSS
   Animations, Keyframes & Prose Styling
   =========================================== */

/* ----- Base Overrides ----- */
html {
    scroll-behavior: smooth;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B9D, #FF7F6B);
    border-radius: 4px;
}

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

/* ----- Animation Keyframes ----- */

/* Pulse Glow Effect for CTAs */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 157, 0.4),
                    0 0 40px rgba(255, 107, 157, 0.2),
                    0 0 60px rgba(255, 107, 157, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 157, 0.6),
                    0 0 60px rgba(255, 107, 157, 0.4),
                    0 0 90px rgba(255, 107, 157, 0.2);
    }
}

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

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

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

/* Marquee Track Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    animation: marquee 20s linear infinite;
    width: max-content;
}

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

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

.bg-size-200 {
    background-size: 200% 200%;
}

/* Particle Animation */
@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -200px) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 107, 157, 0.6);
    border-radius: 50%;
    pointer-events: none;
}

.particle-1 {
    left: 10%;
    bottom: 20%;
    animation: particle-float 8s ease-in-out infinite;
}

.particle-2 {
    left: 30%;
    bottom: 10%;
    animation: particle-float 10s ease-in-out infinite 1s;
}

.particle-3 {
    right: 20%;
    bottom: 30%;
    animation: particle-float 12s ease-in-out infinite 2s;
}

.particle-4 {
    right: 10%;
    bottom: 15%;
    animation: particle-float 9s ease-in-out infinite 0.5s;
}

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

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

/* ----- Prose Content Styling ----- */
.prose-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.75;
}

.prose-content h1,
.prose-content h2,
.prose-content h3,
.prose-content h4,
.prose-content h5,
.prose-content h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose-content h1 {
    font-size: 2.25rem;
}

.prose-content h2 {
    font-size: 1.75rem;
}

.prose-content h3 {
    font-size: 1.375rem;
}

.prose-content h4 {
    font-size: 1.125rem;
}

.prose-content p {
    margin-bottom: 1.25em;
}

.prose-content a {
    color: #FF6B9D;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.prose-content a:hover {
    color: #FF7F6B;
}

.prose-content strong,
.prose-content b {
    color: #ffffff;
    font-weight: 600;
}

.prose-content em,
.prose-content i {
    font-style: italic;
}

.prose-content ul,
.prose-content ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

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

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

.prose-content li {
    margin-bottom: 0.5em;
    padding-left: 0.25em;
}

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

.prose-content blockquote {
    border-left: 4px solid #FF6B9D;
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.prose-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: ui-monospace, monospace;
}

.prose-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25em;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose-content pre code {
    background: transparent;
    padding: 0;
}

.prose-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.prose-content th,
.prose-content td {
    padding: 0.75em 1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.prose-content th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #ffffff;
}

.prose-content tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.prose-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2em 0;
}

.prose-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

.prose-content figure {
    margin: 2em 0;
}

.prose-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75em;
}

/* ----- Utility Classes ----- */

/* Selection Highlight */
::selection {
    background: rgba(255, 107, 157, 0.4);
    color: #ffffff;
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #FF6B9D;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 640px) {
    .prose-content {
        font-size: 0.9375rem;
    }
    
    .prose-content h1 {
        font-size: 1.75rem;
    }
    
    .prose-content h2 {
        font-size: 1.5rem;
    }
    
    .prose-content h3 {
        font-size: 1.25rem;
    }
}

/* ----- Hover Effects ----- */
@media (hover: hover) {
    .hover-lift {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .hover-lift:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

/* ----- Loading Skeleton ----- */
@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite, skeleton-pulse 2s ease-in-out infinite;
    border-radius: 8px;
}
