/* ===== Custom Styles for The Gossip Room L&E ===== */

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

/* Scroll reveal base - always visible by default, JS enhances */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS is enabled, add hidden state first, then reveal on scroll */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar glass effect on scroll */
nav.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(44, 69, 24, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #568a2a;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #568a2a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #c5d9a3;
    color: #121e0b;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        word-spacing: -0.02em;
    }
}
