/* Custom styles for Phil's Best Beers */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A0E17;
}
::-webkit-scrollbar-thumb {
    background: #5D3A5A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7A3D65;
}

/* Selection color */
::selection {
    background: #D4A017;
    color: #1A0E17;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* For browsers that support prefers-reduced-motion, skip animations */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(26, 14, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(93, 58, 90, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-transparent {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A017;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

/* Hero gradient animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Tap card hover effect */
.tap-card {
    position: relative;
    overflow: hidden;
}

.tap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.05), transparent);
    transition: left 0.5s ease;
}

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

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

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

/* Decorative beer foam bubbles */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.3;
    }
}

.bubble {
    animation: float 6s ease-in-out infinite;
}

.bubble:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.bubble:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

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

/* Print styles */
@media print {
    header, footer, .reveal {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
