/* Custom styles for The Friendly Tavern */

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

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal[data-delay="50ms"] { transition-delay: 50ms; }
    .reveal[data-delay="100ms"] { transition-delay: 100ms; }
    .reveal[data-delay="150ms"] { transition-delay: 150ms; }
    .reveal[data-delay="200ms"] { transition-delay: 200ms; }
    .reveal[data-delay="250ms"] { transition-delay: 250ms; }
    .reveal[data-delay="300ms"] { transition-delay: 300ms; }
}

/* Fallback: always visible if JS is disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Image loading placeholder */
img {
    background-color: #e2e8f0;
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Hero text subtle glow */
h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Button ripple-like effect */
button, a {
    position: relative;
    overflow: hidden;
}
