/* Parallax Background Animation */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Confetti Particle Animation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti-container::before,
.confetti-container::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #FFAB91, #8B5A8C);
    animation: confetti-fall 3s linear infinite;
}

.confetti-container::before {
    left: 20%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.confetti-container::after {
    left: 80%;
    animation-delay: 1.5s;
    animation-duration: 2.5s;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Marquee Animation for Game Strip */
.marquee {
    animation: marquee 20s linear infinite;
}

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

/* Tilt Animation for Review Blocks */
.review-card {
    transition: transform 0.3s ease;
}

.review-card.tilt-reveal {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar for Horizontal Scroll */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #8B5A8C;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #6A4C93;
}

/* Snap Scroll for Game Cards */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-start {
    scroll-snap-align: start;
}

/* Ferris Wheel Silhouette (CSS Shape) */
.ferris-wheel {
    width: 100px;
    height: 100px;
    border: 3px solid #8B5A8C;
    border-radius: 50%;
    position: relative;
    animation: rotate 10s linear infinite;
}

.ferris-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #8B5A8C;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Ribbon Effect */
.ribbon {
    position: relative;
    background: linear-gradient(45deg, #8B5A8C, #FFAB91);
    color: white;
    padding: 10px 20px;
    margin: 20px 0;
    display: inline-block;
}

.ribbon::before,
.ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.ribbon::before {
    left: -10px;
    border-width: 20px 10px 20px 0;
    border-color: transparent #8B5A8C transparent transparent;
}

.ribbon::after {
    right: -10px;
    border-width: 20px 0 20px 10px;
    border-color: transparent transparent transparent #FFAB91;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .confetti-container::before,
    .confetti-container::after {
        display: none;
    }
}

/* Prose Styling for Content Pages */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h2 {
    color: #8B5A8C;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: #6A4C93;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose a {
    color: #8B5A8C;
    text-decoration: none;
    font-weight: 500;
}

.prose a:hover {
    color: #6A4C93;
    text-decoration: underline;
}

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

.prose th,
.prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

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

.prose li {
    margin: 0.5rem 0;
}
