/* Custom styles for Big Al's Shakeups */

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

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fbbf24;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(5, 10, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

nav.scrolled #navbar {
    padding-top: 0;
    padding-bottom: 0;
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 6px;
}

/* Link hover underline animation */
a:not(.gold-gradient):not([class*="gradient"]):not([class*="border"]):not(.menu-line) {
    position: relative;
}

a:not(.gold-gradient):not([class*="gradient"]):not([class*="border"]):not(.menu-line)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #fbbf24, #d4a017);
    transition: width 0.3s ease;
}

a:not(.gold-gradient):not([class*="gradient"]):not([class*="border"]):not(.menu-line):hover::after {
    width: 100%;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

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

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

/* Loading state for images */
img {
    background: linear-gradient(135deg, #0a1628 0%, #142c45 100%);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

img[src] {
    animation: none;
    opacity: 1;
}

/* Table scroll for mobile */
@media (max-width: 768px) {
    #visit .grid > div:first-child {
        order: 2;
    }
    #visit .grid > div:last-child {
        order: 1;
        min-height: 300px !important;
    }
}
