/* Custom styles for Hidden Treasures */

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

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #1b3a6b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #214782;
}

/* Selection color */
::selection {
    background: #14b8a6;
    color: #0a1628;
}

/* Reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Card hover effects */
.group:hover .bg-gradient-to-t {
    background: linear-gradient(to top, rgba(10, 22, 40, 0.9) via rgba(10, 22, 40, 0.4) to transparent);
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Ensure all text is readable */
.text-gray-300,
.text-gray-400,
.text-mint-200,
.text-mint-300,
.text-mint-400 {
    /* All text colors are chosen for readability against dark backgrounds */
}

/* Button animations */
button,
a {
    transition: all 0.2s ease-in-out;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0f2140 0%, #152d54 100%);
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0f2140 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
