/* ==========================================
   VEHICLE AUCTION - Premium Vehicle Auctions
   Production-Ready Public Page Styles
   ========================================== */

/* CSS Custom Properties */
:root {
    /* Primary Brand Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent-color: #f97316;
    --accent-dark: #ea580c;
    --accent-light: #fb923c;
    
    /* Neutral Colors */
    --dark-main: #0f172a;
    --dark-secondary: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    /* Semantic Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --info-color: #06b6d4;
    --info-light: #cffafe;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(37, 99, 235, 0.08) 100%);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
}

/* ==========================================
   Base Styles & Typography
   ========================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-main);
}

.display-1 { font-size: 4rem; font-weight: 800; line-height: 1.1; }
.display-2 { font-size: 3rem; font-weight: 700; line-height: 1.15; }
.display-3 { font-size: 2.5rem; font-weight: 600; line-height: 1.2; }
.display-4 { font-size: 2rem; font-weight: 600; line-height: 1.25; }
.display-5 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.display-6 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-700);
}

/* Text Colors */
.text-main { color: var(--dark-main) !important; }
.text-secondary { color: var(--gray-600) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }

/* Background Colors */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-soft { background-color: var(--gray-100) !important; }

/* ==========================================
   Glass Morphism & Cards
   ========================================== */
.glass-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
}

.glass-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-200);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(249, 115, 22, 0.3);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 1.5rem;
}

/* ==========================================
   Button Styles
   ========================================== */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-vibrant {
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-vibrant::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 ease;
}

.btn-vibrant:hover::before {
    left: 100%;
}

.btn-vibrant:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.4);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-premium {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
}

.btn-premium:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-overlay {
    background: linear-gradient(180deg, 
        rgba(15, 23, 42, 0.7) 0%, 
        rgba(15, 23, 42, 0.5) 50%, 
        rgba(15, 23, 42, 0.3) 100%
    );
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation for Live Badge */
.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ==========================================
   Search Bar
   ========================================== */
.search-focus:focus-within {
    transform: scale(1.02);
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-floating > label {
    padding: 1rem;
    color: var(--gray-500);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--primary-color);
}

/* ==========================================
   Badges & Labels
   ========================================== */
.badge {
    font-weight: 600;
    padding: 0.5em 0.75em;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-featured {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.badge-live {
    background: var(--danger-color);
    color: var(--white);
    animation: pulse 2s infinite;
}

.badge-ends-soon {
    background: var(--warning-color);
    color: var(--white);
}

.badge-new {
    background: var(--success-color);
    color: var(--white);
}

/* ==========================================
   Section Styles
   ========================================== */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-main);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

/* ==========================================
   Auction Card Styles
   ========================================== */
.auction-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.auction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-color);
}

.auction-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.auction-card:hover .card-img-top {
    transform: scale(1.05);
}

.auction-card .position-relative {
    overflow: hidden;
}

.auction-card .badge {
    z-index: 10;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.countdown-item {
    background: var(--gray-900);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 2.5rem;
    text-align: center;
}

.countdown-separator {
    color: var(--gray-600);
    font-weight: bold;
}

/* ==========================================
   How It Works Steps
   ========================================== */
.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    background: var(--white);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-slow);
    height: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.4);
}

.step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--gray-100);
    color: var(--accent-color);
    font-size: 2rem;
    transition: all var(--transition-slow);
}

.step-card:hover .step-icon {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Connecting Line */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0.3;
}

@media (max-width: 991px) {
    .step-card:not(:last-child)::after {
        display: none;
    }
}

/* ==========================================
   Testimonials
   ========================================== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.avatar-primary {
    background: var(--gradient-primary);
}

.avatar-accent {
    background: var(--gradient-accent);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-main);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Carousel Customization */
.carousel-indicators {
    bottom: -30px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-400);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
    width: 30px;
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
    background-color: var(--dark-main);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 1rem;
}

/* ==========================================
   FAQ Accordion
   ========================================== */
.accordion-item {
    border: none;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 600;
    color: var(--dark-main);
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--gray-50);
    color: var(--accent-color);
}

.accordion-button::after {
    background-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
}

/* ==========================================
   Footer Styles
   ========================================== */
.footer-premium {
    background: var(--dark-main);
    color: var(--gray-400);
}

.footer-premium h4,
.footer-premium h5,
.footer-premium h6 {
    color: var(--white);
}

.footer-premium a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-premium a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================
   Animations
   ========================================== */
.animate-fade {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ==========================================
   Utility Classes
   ========================================== */
.rounded-bottom-5 {
    border-bottom-left-radius: 3rem !important;
    border-bottom-right-radius: 3rem !important;
}

.transition-hover {
    transition: all var(--transition-slow);
}

.transition-hover:hover {
    transform: translateY(-4px);
}

.shadow-accent {
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.4);
}

.shadow-primary {
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.hover-accent:hover {
    color: var(--accent-color) !important;
}

.opacity-80 {
    opacity: 0.8;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.leading-tight {
    line-height: 1.25;
}

.xsmall {
    font-size: 0.75rem;
}

/* Image Overlay */
.img-overlay {
    position: relative;
}

.img-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
    border-radius: inherit;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 1199px) {
    .display-2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .hero-section {
        height: auto;
        min-height: 500px;
    }
    
    .hero-section .container {
        height: auto;
        padding: 4rem 0;
    }
    
    .display-2 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    .display-1 {
        font-size: 2.5rem;
    }
    
    .display-2 {
        font-size: 1.75rem;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .glass-premium {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .display-1 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
    
    .d-flex.gap-4 {
        gap: 1rem !important;
    }
    
    .auction-card .card-img-top {
        height: 180px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}
