/* Custom Styles for The Dot Cafe */

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

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

/* Selection Color */
::selection {
    background-color: #c2654a;
    color: #faf6f1;
}

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

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

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

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

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Menu Active State */
body.menu-open {
    overflow: hidden;
}

/* Input Focus Styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px #c2654a;
}

/* Image Loading Placeholder */
img {
    background-color: #1a1a1a;
}

/* Subtle Glow Effects */
.glow-terracotta {
    box-shadow: 0 0 40px rgba(194, 101, 74, 0.15);
}

.glow-gold {
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.15);
}

/* Button Ripple Effect */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Focus Visible for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c2654a;
    outline-offset: 2px;
}

/* Loader for images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
