/* Custom styles for Top Choice Smoke Shop */

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

/* Prevent flash of hidden content for reveal animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Only apply reveal animations when JS is enabled and user prefers motion */
.js-enabled.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(55, 10, 24, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease;
}

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

/* Image placeholder fallbacks */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #f5a8b8 100%);
}

/* Selection color */
::selection {
    background: rgba(123, 30, 58, 0.2);
    color: #7B1E3A;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7B1E3A;
}

/* Form styles */
input, textarea {
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #7B1E3A;
    box-shadow: 0 0 0 3px rgba(123, 30, 58, 0.1);
}

/* Success message animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
