/* Lowculwheels - Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors (Aligned with Logo) */
    --primary: #1D3D82;
    /* Navy Blue */
    --primary-dark: #152c5d;
    --primary-light: #3058b0;
    --secondary: #E83E3E;
    /* Brand Red */
    --secondary-dark: #c03434;

    --accent: var(--primary);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: var(--secondary);

    /* Backgrounds */
    --light: #f8fafc;
    --bg-light: #f8fafc;
    /* Defined explicitly */
    --white: #ffffff;

    /* Slate 50 */
    --glass: rgba(255, 255, 255, 0.8);
}


body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* UI Components */
.premium-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.text-primary {
    color: var(--primary);
}

.bg-primary {
    background-color: var(--primary);
}

.border-primary {
    border-color: var(--primary);
}

.hover-primary:hover {
    color: var(--primary);
}

.hover-bg-primary:hover {
    background-color: var(--primary);
}

/* Hero Section Gradient */
.hero-gradient {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent);
}


/* Buttons */
.btn-premium {
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-premium:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 15px 25px -5px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

/* Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


/* Car Listing Cards */
.car-card-premium {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-card-premium .p-6,
.car-card-premium .p-8 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-card-premium .p-6>div:last-child,
.car-card-premium .p-8>div:last-child {
    margin-top: auto;
}

.car-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.car-card-premium .img-container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
}

.car-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card-premium:hover img {
    transform: scale(1.1);
}

/* Horizontal Car Listing Card (PakWheels Style) */
.car-card-list {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

@media (min-width: 768px) {
    .car-card-list {
        flex-direction: row;
        height: 200px;
    }
}

.car-card-list.is-featured {
    background: #f0f4f9;
    /* Very light Navy */
    border: 1px solid #c2d2e7;
    border-left: 4px solid var(--primary);
}

.car-card-list .img-box {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

@media (min-width: 768px) {
    .car-card-list .img-box {
        width: 240px;
        min-width: 240px;
        height: 100%;
    }
}

.car-card-list .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-count-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.car-card-list .info-box {
    padding: 12px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-card-list .car-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.car-card-list .car-title:hover {
    color: #444;
}

.car-card-list .car-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.car-location {
    color: #666;
    font-size: 0.9rem;
    margin-top: 4px;
    margin-bottom: 12px;
}

.car-specs-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 12px;
}

.car-specs-strip>div {
    padding: 0 12px;
    border-right: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #444;
}

.car-specs-strip>div:first-child {
    padding-left: 0;
}

.car-specs-strip>div:last-child {
    border-right: none;
}

.car-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-time {
    font-size: 0.8rem;
    color: #777;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-phone {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-phone:hover {
    background: var(--primary-dark);
}

.fav-btn {
    color: #ccc;
    font-size: 1.1rem;
    padding: 6px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.2s;
    background: white;
}

.fav-btn:hover {
    color: #f87171;
    border-color: #fecaca;
}

/* Badge Fixes */
/* Badge Fixes */
.badge-new {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #facc15;
    color: #0f172a;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom-right-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-imported {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
}