/* ===== Custom Styles for Horns & Halos Saloon ===== */

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

/* Base styles */
body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(154, 36, 36, 0.4);
    color: #fff5f5;
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (no JS progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* Only apply animation classes when JS adds them */
.reveal-animate.reveal-up {
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-animate.reveal-left {
    animation: revealLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-animate.reveal-right {
    animation: revealRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(154, 36, 36, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a2424;
}

/* ===== Image hover effects ===== */
img {
    transition: filter 0.3s ease;
}

img:hover {
    filter: brightness(1.05);
}

/* ===== Button focus states ===== */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d44242;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Input focus states ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-animate.reveal-up,
    .reveal-animate.reveal-left,
    .reveal-animate.reveal-right {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    img {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

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

/* ===== Glass morphism card ===== */
.glass-card {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Glow effect ===== */
.glow-burgundy {
    box-shadow: 0 0 40px rgba(154, 36, 36, 0.3);
}

/* ===== Loading shimmer ===== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===== Pulse ring for live indicator ===== */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-ring 1.5s ease-out infinite;
}
