/* Custom CSS for CloudPlay Landing Page */

/* Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px hsl(174, 72%, 47%, 0.3);
    }
    50% {
        box-shadow: 0 0 40px hsl(174, 72%, 47%, 0.6);
    }
}

@keyframes scale-in {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Apply animations */
.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-scroll {
    animation: scroll 60s linear infinite;
}

.animate-scroll-reverse {
    animation: scroll-reverse 60s linear infinite;
}

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

.animate-scale-in {
    animation: scale-in 0.4s ease-out;
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(to right, hsl(174, 72%, 47%), hsl(200, 94%, 43%), hsl(154, 65%, 52%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-primary {
    background: linear-gradient(to bottom right, hsl(174, 72%, 47%), hsl(200, 94%, 43%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-secondary {
    background: linear-gradient(to bottom right, hsl(154, 65%, 52%), hsl(174, 72%, 47%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-accent {
    background: linear-gradient(to bottom right, hsl(200, 94%, 43%), hsl(154, 65%, 52%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(to right, hsl(174, 72%, 47%), hsl(200, 94%, 43%));
    color: white;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, hsl(174, 72%, 42%), hsl(200, 94%, 38%));
    transform: scale(1.05);
}

.btn-outline {
    border: 3px solid hsl(210, 50%, 10%, 0.2);
    color: hsl(210, 50%, 10%);
    background: transparent;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: hsl(210, 50%, 10%, 0.05);
    border-color: hsl(174, 72%, 47%);
    color: hsl(174, 72%, 47%);
}

.btn-outline-secondary {
    border: 2px solid hsl(154, 65%, 52%);
    color: hsl(154, 65%, 52%);
    background: transparent;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: hsl(154, 65%, 52%);
    color: hsl(0, 0%, 10%);
}

/* Shadow effects */
.shadow-glow-primary {
    box-shadow: 0 0 20px hsl(174, 72%, 47%, 0.5);
}

.shadow-glow-primary-strong {
    box-shadow: 0 0 30px hsl(174, 72%, 47%, 0.7);
}

/* Card hover effect */
.card-hover {
    background: hsl(0, 0%, 100%, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid hsl(210, 20%, 88%);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.card-hover:hover {
    border-color: hsl(174, 72%, 47%);
    transform: scale(1.05);
    box-shadow: 0 0 30px hsl(174, 72%, 47%, 0.4);
}

/* Game card styles */
.game-card {
    position: relative;
    overflow: hidden;
    background: hsl(0, 0%, 100%, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid hsl(210, 20%, 88%);
    aspect-ratio: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    width: 200px;
    border-radius: 0.75rem;
}

.game-card:hover {
    border-color: hsl(174, 72%, 47%);
    transform: scale(1.05);
    box-shadow: 0 0 30px hsl(174, 72%, 47%, 0.4);
}

.game-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
    transition: all 0.3s ease;
}

.game-card:hover .game-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2), transparent);
}

.game-card-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    text-align: center;
    padding-bottom: 1.5rem;
}

.game-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-play {
    opacity: 1;
}

/* Feature card styles */
.feature-card {
    background: hsl(0, 0%, 100%, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid hsl(210, 20%, 88%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: hsl(174, 72%, 47%);
    transform: scale(1.05);
    box-shadow: 0 0 30px hsl(174, 72%, 47%, 0.3);
}

/* Testimonial card styles */
.testimonial-card {
    background: hsl(0, 0%, 100%, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid hsl(210, 20%, 88%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: hsl(174, 72%, 47%);
    transform: scale(1.05);
    box-shadow: 0 0 30px hsl(174, 72%, 47%, 0.3);
}

/* FAQ accordion styles */
.faq-item {
    background: hsl(0, 0%, 100%, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid hsl(210, 20%, 88%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: hsl(174, 72%, 47%);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: hsl(174, 72%, 47%);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: hsl(210, 50%, 10%, 0.7);
    line-height: 1.6;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Language dropdown styles */
.language-dropdown .language-menu,
.language-dropdown-mobile .language-menu-mobile {
    z-index: 1000;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .game-card {
        width: 240px;
    }
}

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

/* Prevent text selection on interactive elements */
button, .game-card, .feature-card, .testimonial-card, .faq-question {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Ensure icons render properly */
i[data-lucide] {
    display: inline-block;
}
