/* Custom styles for 202 Smoke Shop */

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

/* Custom selection color */
::selection {
    background-color: rgba(40, 67, 41, 0.2);
    color: #284329;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(250, 250, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(40, 67, 41, 0.08);
}

.nav-scrolled .nav-link {
    color: #284329;
}

.nav-scrolled .menu-line {
    background-color: #284329;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

/* Staggered animation for mobile links */
.mobile-menu-open #mobileMenu .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open #mobileMenu .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open #mobileMenu .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open #mobileMenu .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu button active state */
.menu-btn-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.4rem;
}

/* Intersection Observer animations */
.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; }

/* Product card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Subtle image parallax on scroll */
@media (prefers-reduced-motion: no-preference) {
    .parallax-slow {
        will-change: transform;
    }
}

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

::-webkit-scrollbar-track {
    background: #FAFAF6;
}

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

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

/* Age verification overlay */
#ageVerify {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(17, 28, 18, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

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

/* Card image loading placeholder */
.group img {
    background: linear-gradient(135deg, #284329 0%, #3d6a3c 100%);
}
