/* Garage Listing Enhanced Styles */

/* Smooth transitions for all interactive elements */
/* Removed conflicting hover effects that cause text blur */
/* .car-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.car-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.car-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover img {
    transform: scale(1.1);
} */

/* Status badge animations */
.status-badge {
    transition: all 0.2s ease-in-out;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Infinite scroll trigger styling */
#infinite-scroll-trigger {
    min-height: 120px;
    transition: all 0.3s ease;
}

/* Enhanced button hover effects */
.btn-primary-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Card overlay effects */
.car-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    transition: opacity 0.3s ease;
}

/* Responsive grid adjustments */
@media (max-width: 640px) {
    .car-card {
        margin-bottom: 1rem;
    }

    /* Removed hover transform effects that cause text blur */
    /* .car-card:hover {
        transform: translateY(-2px) scale(1.01);
    } */
}

@media (min-width: 641px) and (max-width: 1024px) {
    /* Removed hover transform effects that cause text blur */
    /* .car-card:hover {
        transform: translateY(-3px) scale(1.015);
    } */
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
.car-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced dropdown animations */
.dropdown-menu {
    transform-origin: top center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.show {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Notification animations */
.notification-slide-in {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Stats card hover effects */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Filter section enhancements */
.filter-section {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Enhanced form controls */
.form-control-enhanced {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.form-control-enhanced:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-dropdown {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 1rem 1rem 0 0;
        z-index: 50;
    }
}

/* Print styles */
@media print {
    .car-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .action-buttons,
    .dropdown-menu {
        display: none !important;
    }
}