/* Custom styles for The Enchanted Treehouse */

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

/* Selection color */
::selection {
    background-color: #d9a3b3;
    color: #502530;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

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

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(250, 245, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(80, 37, 48, 0.08);
}

.nav-scrolled .menu-line {
    background-color: #743042 !important;
}

/* Mobile menu animation */
#mobileMenu.open {
    max-height: 400px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d9a3b3;
    border-radius: 4px;
}

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

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

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fcbf10;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-0.25rem);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #a85268 0%, #fcbf10 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(168, 82, 104, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
