/* Arca de Jogos - Custom Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Logo Animation */
.logo-text {
    background: linear-gradient(135deg, #87CEEB 0%, #C77DFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce-slow 2s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.5s;
}

/* Game Cards Hover Effect */
.game-card {
    position: relative;
    transition: all 0.3s ease;
}

.game-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 1.5rem;
}

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

/* Smooth Scroll Padding for Fixed Header */
html {
    scroll-padding-top: 100px;
}

/* Button Pulse Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(135, 206, 235, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(135, 206, 235, 0);
    }
}

/* Custom Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FFD93D 0%, #FF9A76 50%, #C77DFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Focus Effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
}

/* Scroll Top Button Animation */
#scroll-top {
    transition: all 0.3s ease;
}

#scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease-out;
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img:not([loading]) {
    opacity: 1;
}

/* Section Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #87CEEB 0%, #C77DFF 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6ab5d8 0%, #b565ec 100%);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }

    .text-7xl {
        font-size: 3.5rem;
    }
}

/* Print Styles */
@media print {
    header, footer, #scroll-top, #mobile-menu {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

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

/* Focus Visible for Keyboard Navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #87CEEB;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000;
    }

    .bg-gray-50 {
        background-color: #fff;
    }
}
