/* Custom styles for Iron John's Brewery Management */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(198, 93, 62, 0.3);
    color: #F5F0E8;
}

/* Hero floating cards animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-card-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float 6s ease-in-out infinite;
    animation-delay: -2s;
}

.floating-card-3 {
    animation: float 6s ease-in-out infinite;
    animation-delay: -4s;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 {
        transition-delay: 0.1s;
    }
    
    .reveal-delay-2 {
        transition-delay: 0.2s;
    }
    
    .reveal-delay-3 {
        transition-delay: 0.3s;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 13, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 240, 232, 0.05);
}

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

/* Terracotta glow effect */
.terracotta-glow {
    box-shadow: 0 0 40px rgba(198, 93, 62, 0.15);
}

/* Image hover overlay */
.img-hover-overlay {
    position: relative;
    overflow: hidden;
}

.img-hover-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 13, 10, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.img-hover-overlay:hover::after {
    opacity: 1;
}

/* Custom focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C65D3E;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Product card shimmer on hover */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(198, 93, 62, 0.05),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

/* Decorative line animation */
.deco-line {
    position: relative;
    overflow: hidden;
}

.deco-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C65D3E, #C9A96E);
    transition: width 0.6s ease;
}

.deco-line:hover::after {
    width: 100%;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    border-radius: inherit;
}

.btn-ripple:active::after {
    transform: scale(2);
}
