/* AutoPrima - Custom Styles */

/* Animations */
@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}
@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-in { animation: slide-in 0.3s ease-out; }
.animate-fade-in { animation: fade-in 0.4s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Nav Links */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.nav-link:hover {
    color: #2563eb;
    background-color: #eff6ff;
}
.nav-link-active {
    color: #2563eb;
    background-color: #eff6ff;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: 0.75rem;
    transition: all 0.2s;
}
.mobile-nav-link:hover { background-color: #f9fafb; }
.mobile-nav-active {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Vehicle Card */
.vehicle-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}
.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #e5e7eb;
}
.vehicle-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.vehicle-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.vehicle-card:hover .card-image img {
    transform: scale(1.05);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #9ca3af;
}
.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
}
.wishlist-btn.active {
    color: #ef4444;
    background: white;
}
.wishlist-btn.active i { font-weight: 900; }

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
}
.hero-gradient-overlay {
    background: radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

/* Feature Card */
.feature-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #dbeafe;
}

/* Category Card */
.category-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.category-card:hover img { transform: scale(1.1); }
.category-card img { transition: transform 0.5s ease; }

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #fafafa;
}
.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Image Gallery */
.gallery-thumb {
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    aspect-ratio: 1;
}
.gallery-thumb:hover, .gallery-thumb.active {
    border-color: #3b82f6;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stat counter */
.stat-number {
    animation: count-up 0.6s ease-out;
}

/* Filter sidebar */
.filter-section {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.filter-section:last-child { border-bottom: none; }

/* Placeholder images */
.placeholder-img {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
