/* Custom Styles for Bullies & Brew */

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

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

::-webkit-scrollbar-track {
    background: #070d0b;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #FDFBF7;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Animation classes */
.reveal-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.reveal-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Stagger animations */
.reveal-up:nth-child(2) {
    animation-delay: 0.1s;
}

.reveal-up:nth-child(3) {
    animation-delay: 0.2s;
}

.reveal-up:nth-child(4) {
    animation-delay: 0.3s;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    opacity: 0;
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile link transitions */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Image hover effects */
img {
    transition: transform 0.7s ease;
}

/* Gold gradient text effect */
.text-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #B4941F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle glow effect */
.glow-gold {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-ebony {
        background-color: #000000 !important;
    }
    
    .text-cream {
        color: #FFFFFF !important;
    }
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Loading state for images */
img {
    background: linear-gradient(90deg, #1c1c1c 25%, #2a2a2a 50%, #1c1c1c 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}
