/* Homepage Specific Styles */

/* Professional Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-left {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-slide-down {
    animation: slide-down 0.3s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

.animate-slide-left {
    animation: slide-left 0.3s ease-out;
}

/* Ensure search dropdown is not clipped and appears above all content */
#searchDropdown {
    position: absolute !important;
    z-index: 9999 !important;
}

/* Ensure parent containers don't clip the dropdown */
.relative.overflow-visible {
    overflow: visible !important;
}

/* Fix models list scrolling */
#searchModelsList {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

/* Professional Scrollbar Styling */
.brands-scroll {
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #f3f4f6;
}

.brands-scroll::-webkit-scrollbar {
    width: 10px;
}

.brands-scroll::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 10px;
}

.brands-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
    border-radius: 10px;
    border: 2px solid #f9fafb;
}

.brands-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #b91c1c, #991b1b);
}

/* Professional Search Result Items */
#searchBrandList a,
#searchBrandListDesktop a {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#searchBrandList a:hover,
#searchBrandListDesktop a:hover {
    background: linear-gradient(to right, #fef2f2, #ffffff);
    border-left-color: #dc2626;
    transform: translateX(2px);
}

#searchModelsList a,
#searchModelsListDesktop a {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#searchModelsList a:hover,
#searchModelsListDesktop a:hover {
    background: linear-gradient(to right, #fef2f2, #ffffff);
    border-left-color: #dc2626;
    transform: translateX(2px);
}

/* Custom border-left utility */
.border-l-3 {
    border-left-width: 3px;
}

/* Professional Loading States */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #dc2626;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Transitions for All Interactive Elements */
button, a, input {
    transition: all 0.2s ease;
}

/* Professional Focus States */
input:focus {
    transform: scale(1.01);
}

/* Enhanced Shadow Effects */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Professional Backdrop Blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
