/* ===========================================================================
   CarDepotNG Marketplace Styles — Navy-Dark & Crisp White Theme
   =========================================================================== */

:root {
    --brand-navy-dark: #0a1128;
    --brand-navy: #101c3d;
    --brand-navy-light: #1b2a52;
    --brand-accent: #3b82f6;      /* Electric Blue accent */
    --brand-accent-hover: #2563eb;
    --brand-surface: #ffffff;
    --brand-bg: #f8fafc;
}

/* Loading spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #101c3d;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Line clamp helpers */
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Detail page gallery: thumbnails */
.gallery-thumb {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: #101c3d; box-shadow: 0 0 0 2px rgba(16, 28, 61, 0.2); }

/* Card hover lift & shadows */
.card-lift {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -10px rgba(10, 17, 40, 0.12);
}

/* Skeleton placeholder while loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Condition Badges (Tokunbo / Nigerian Used / Brand New) in sleek navy style */
.badge-tokunbo {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.badge-nigerian-used {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.badge-brand-new {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
}

/* Inspection Score Pill */
.badge-inspected {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    transition: all 0.2s ease;
}
.btn-whatsapp:hover {
    background-color: #1ebc59;
    box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.3);
}

/* Floating WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #101c3d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: 0 10px 25px -3px rgba(10, 17, 40, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.whatsapp-fab:hover {
    transform: scale(1.08);
    background-color: #25D366;
    box-shadow: 0 15px 30px -3px rgba(37, 211, 102, 0.5);
}

/* Mobile Sticky Bottom Bar */
@media (max-width: 640px) {
    body {
        padding-bottom: 70px;
    }
}
