/* Custom Styles for Harvest Moon Trading Co */

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

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

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

::-webkit-scrollbar-thumb {
    background: #b84739;
    border-radius: 5px;
}

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

/* Nav Link Hover Effect */
.nav-link {
    position: relative;
}

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

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

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Image Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(184, 71, 57, 0.2);
}

/* Button Hover Scale */
button:hover {
    transform: translateY(-2px);
}

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

/* Loading State for Form */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print Styles */
@media print {
    header,
    footer,
    #back-to-top {
        display: none;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-white\/95 {
        background-color: #ffffff !important;
        opacity: 1 !important;
    }
}

/* Accessibility - Focus Visible */
:focus-visible {
    outline: 2px solid #b84739;
    outline-offset: 2px;
}

/* Image Lazy Loading Placeholder */
img {
    background-color: #f5f0e8;
}
