/* =====================================================
   Family Car Bazaar - Main Stylesheet
   Modern, Premium Design with Glassmorphism
   ===================================================== */

/* CSS Variables */
:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --accent-500: #d946ef;
    --accent-600: #c026d3;
    --dark-800: #1a1a2e;
    --dark-900: #0f0f1a;
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --danger-500: #ef4444;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #f3f4f6;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--vd-accent, #e8000d);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 9999;
    transform: translateY(-160%);
    background: var(--vd-accent, #e8000d);
    color: #fff;
    padding: 0.65rem 0.9rem;
    border-radius: 0.35rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#main-content {
    outline: none;
}

.bk-cm-d {
    border: 0;
    background: transparent;
    font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.font-display {
    font-family: 'Poppins', sans-serif;
}

.font-extra {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    border: 2px solid rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Card Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(96, 165, 250, 0.25);
}

/* Feature Pills */
.feature-pill {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.feature-pill:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Price Badge */
.price-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
    }

    to {
        box-shadow: 0 0 40px rgba(96, 165, 250, 0.6);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

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

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    background-color: #0f0f1a; /* सॉलिड बैकग्राउंड */
    background-image: linear-gradient(to bottom, #0f0f1a, #1a1a2e); /* ग्रेडिएंट भी add कर सकते हैं */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100; /* ज़रूरत हो तो z-index बढ़ाएं */
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Overlay को और dark करें */
#mobile-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); /* थोड़ा blur effect भी add करें */
}

/* =====================================================
   Hero Section - Minimal Centered
   ===================================================== */

.hero-section { position: relative; padding-top: 30px; }
.hero-bg { pointer-events: none; overflow: hidden; }

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.03;
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: var(--vd-accent);
    top: -20%; left: 50%; transform: translateX(-50%);
    animation: heroOrbPulse 8s ease-in-out infinite;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: #3b82f6;
    bottom: 0; left: 30%;
    animation: heroOrbPulse 10s ease-in-out infinite reverse;
}
@keyframes heroOrbPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.03; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 0.04; }
}

@media(max-width:767px){
    .hero-gradient-orb { display: none; }
}

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--vd-accent-soft); border: 1px solid rgba(219,165,35,.2);
    border-radius: 3px; padding: 6px 14px;
    font-family: 'Plus Jakarta Sans',sans-serif; font-size: 11px;
    color: var(--vd-accent); letter-spacing: 0.05em; text-transform: uppercase;
    animation: heroFadeUp 0.5s ease-out forwards;
}
.hero-badge-dot {
    width: 6px; height: 6px; background: var(--vd-accent); border-radius: 50%;
    animation: heroPulse 2s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* Title & Desc */
.hero-title {
    animation: heroFadeUp 0.5s ease-out 0.1s forwards; opacity: 0;
}
.hero-desc {
    color: var(--vd-muted); font-size: 16px; max-width: 28rem;
    animation: heroFadeUp 0.5s ease-out 0.15s forwards; opacity: 0;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Search Background */
.hero-search-bg {
    position: relative; border-radius: var(--vd-radius); overflow: visible;
    animation: heroFadeUp 0.5s ease-out 0.2s forwards; opacity: 0;
}
.hero-search-bg-img {
    width: 100%; height: 100%; 
    position: absolute; inset: 0; z-index: 0;
    filter: invert(1);
    top: -88px; left: auto; right: auto; bottom: auto;
}
.hero-search-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(20,21,26,0.7) 0%, rgba(20,21,26,0.85) 100%);
}
.hero-search-form { position: relative; z-index: 2; padding: 20px; }

/* Search Bar */
.hero-search-wrap {
    animation: heroFadeUp 0.5s ease-out 0.2s forwards; opacity: 0;
}
.hero-search-bar {
    display: flex; align-items: center; gap: 0;
    background: var(--vd-surface); border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius); padding: 4px 4px 4px 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-search-bar:focus-within {
    border-color: var(--vd-accent);
    box-shadow: 0 0 0 3px var(--vd-accent-soft);
}
.hero-search-icon {
    width: 20px; height: 20px; flex-shrink: 0;
    margin-left: 16px; color: var(--vd-muted);
}
.hero-search-bar:focus-within .hero-search-icon { color: var(--vd-accent); }
.hero-input {
    flex: 1; border: none; background: transparent; outline: none;
    padding: 14px 12px; font-size: 15px; color: var(--vd-text);
    font-family: 'Outfit', system-ui, sans-serif;
}
.hero-input::placeholder { color: var(--vd-muted); }
.hero-submit-btn {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex-shrink: 0; border: none; cursor: pointer;
    background: var(--vd-accent); color: var(--vd-accent-text); border-radius: var(--vd-radius);
    transition: opacity 0.15s ease;
}
.hero-submit-btn:hover { opacity: 0.85; }

/* Dropdown */
.hero-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--vd-surface); border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius); max-height: 240px; overflow-y: auto;
    z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.hero-dropdown.hidden { display: none; }
.hero-dropdown-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; cursor: pointer; transition: background 0.1s ease;
    font-size: 14px; color: var(--vd-text);
}
.hero-dropdown-item:hover { background: var(--vd-accent-soft); }
.hero-dropdown-item + .hero-dropdown-item { border-top: 1px solid var(--vd-line); }
.hero-dropdown-state {
    font-size: 12px; color: var(--vd-muted);
    font-family: 'Plus Jakarta Sans',sans-serif;
}
.hero-dropdown::-webkit-scrollbar { width: 4px; }
.hero-dropdown::-webkit-scrollbar-thumb { background: var(--vd-line); border-radius: 2px; }

/* Popular Cities */
.hero-popular-cities { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero-popular-label {
    font-family: 'Plus Jakarta Sans',sans-serif; font-size: 11px;
    color: var(--vd-muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-city-tag {
    display: inline-block; padding: 4px 12px;
    border: 1px solid var(--vd-line); border-radius: var(--vd-radius);
    font-size: 12px; color: var(--vd-muted); text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.hero-city-tag:hover {
    border-color: var(--vd-accent); color: var(--vd-accent); background: var(--vd-accent-soft);
}

/* Stats */
.hero-stats {
    animation: heroFadeUp 0.5s ease-out 0.3s forwards; opacity: 0;
}
.hero-stat-box { text-align: center; }
.hero-stat-val {
    font-family: 'Plus Jakarta Sans',sans-serif; font-weight: 700;
    font-size: 1.5rem; color: var(--vd-accent); line-height: 1.2;
}
.hero-stat-label { font-size: 12px; color: var(--vd-muted); margin-top: 2px; }

/* Scroll Indicator */
.hero-scroll-indicator {
    animation: heroFadeUp 0.5s ease-out 0.4s forwards, heroBounce 2s ease-in-out 1s infinite;
    opacity: 0;
}
@keyframes heroBounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -8px); }
    60% { transform: translate(-50%, -4px); }
}

/* Responsive */
@media (max-width: 1023px) {
    .hero-section { min-height: auto !important; padding-top: 100px; padding-bottom: 40px; }
    .hero-title { font-size: 2.25rem; }
    .hero-desc { font-size: 14px; }
    .hero-stat-val { font-size: 1.25rem; }
}
@media (max-width: 640px) {
    .hero-stats { gap: 16px !important; margin-top: 2rem !important; }
    .hero-stat-val { font-size: 1rem !important; }
    .hero-stat-label { font-size: 10px !important; }
    .hero-search-wrap { max-width: 100% !important; }
}
@media (min-width: 1024px) {
    .hero-section { min-height: 90vh; }
}

/* Image Gallery */
.gallery-main {
    border-radius: 1rem;
    overflow: hidden;
}

.gallery-thumb {
    opacity: 0.6;
    transition: all 0.2s ease;
    cursor: pointer;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: #3b82f6;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

/* Form Styles */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder {
    color: #6b7280;
}

select.form-input option {
    background: #1a1b22;
    color: #eef0f2;
}

select.form-input {
    appearance: auto;
    -webkit-appearance: auto;
}

.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.form-select option {
    background: #1a1a2e;
    color: #fff;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #1a1a2e 25%, #2d2d44 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Stats Counter */
.counter {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

/* Hero Section */
.hero-gradient {
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

/* Responsive Images */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Old simple badge (keeping for backward compatibility) */
.sold-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    z-index: 15;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.pagination a {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}

.pagination a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.pagination .active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #1a1a2e;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Dark Background */
.bg-dark-900 {
    background-color: #0f0f1a;
}

.bg-dark-800 {
    background-color: #1a1a2e;
}




/* Mobile Menu Animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    background-color: #0f0f1a; /* सॉलिड बैकग्राउंड */
    background-image: linear-gradient(to bottom, #0f0f1a, #1a1a2e); /* ग्रेडिएंट भी add कर सकते हैं */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100; /* ज़रूरत हो तो z-index बढ़ाएं */
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Overlay को और dark करें */
#mobile-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); /* थोड़ा blur effect भी add करें */
}
