/* Custom styles for Twice As Nice Consignment */

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

/* Ensure body doesn't hide content before JS runs */
body {
    opacity: 1;
}

/* Navigation transitions */
.nav-link-text {
    transition: color 0.3s ease;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Reveal animations - progressive enhancement */
.reveal {
    /* Default: visible for accessibility and no-JS users */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active via media query gate */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#hero p {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image hover effects */
img {
    transition: transform 0.7s ease;
}

/* Button ripple effect on hover */
button:hover,
a:hover {
    transform: translateY(-1px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    img {
        transition: none;
    }
}

/* Mobile menu animations */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Card hover lift */
.reveal.group {
    will-change: transform;
}

/* Ensure all sections have proper spacing */
section {
    position: relative;
}
