/* AutoSeekr Public Pages - Consistent Styling */

/* Global Card Styling - Match Listings Page */
.card {
    border: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.375rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Listing Card Hover Effects */
.listing-card {
    transition: transform 0.2s ease-in-out;
}

.listing-card:hover {
    transform: translateY(-5px);
}

/* Button Styling Consistency */
.btn.active {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Page Headers - Match Listings Style */
.page-header {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
}

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.page-header p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Material Icons Consistency */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.material-icons.fs-6 {
    font-size: 1rem;
}

/* Badge Styling */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.375em 0.75em;
    border-radius: 0.375rem;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff;
}

.badge.bg-danger-subtle {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #fff;
}

/* Image Container Styling */
.card-img-top {
    border-radius: 0.375rem 0.375rem 0 0;
    object-fit: contain;
}

/* Section Spacing */
.container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Hover Effects */
.hover-effect-scale {
    transition: transform 0.2s ease-in-out;
}

.hover-effect-scale:hover .hover-effect-target {
    transform: scale(1.05);
}

.hover-effect-underline:hover {
    text-decoration: underline !important;
}

/* Filter and Search Styling */
.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #f5c2c7;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Navigation Pills */
.nav-pills .nav-link {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease-in-out;
}

.nav-pills .nav-link.active {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Grid Layout */
.row.g-4 > * {
    margin-bottom: 1.5rem;
}

/* Button Group Styling */
.btn-group .btn {
    position: relative;
    border-radius: 0.375rem;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover,
.btn-outline-secondary.active {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Price Display */
.text-primary {
    color: #dc3545 !important;
}

/* Loading States */
.wire-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .listing-card:hover {
        transform: none;
    }
}

/* Vehicle Type Categories */
.vehicle-type-card {
    background-color: #f8f9fa;
    border: 0;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.vehicle-type-card:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

/* Search Results */
.search-results .card {
    margin-bottom: 1.5rem;
}

.search-results .card:last-child {
    margin-bottom: 0;
}

/* Featured Listings */
.featured-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
}

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

.page-link {
    color: #dc3545;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Stats Cards */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    border: 0;
}

.stat-card h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Alert Styling */
.alert {
    border: 0;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Hero Search Form Input Alignment */
.hero-search-year-group,
.hero-search-price-group {
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hero-search-year-group .flex-fill,
.hero-search-price-group .flex-fill {
    flex: 1 1 0% !important;
    min-width: 0;
    width: calc(50% - 0.25rem) !important;
}

.hero-search-year-group .flex-fill:first-child,
.hero-search-price-group .flex-fill:first-child {
    margin-right: 0.25rem;
}

.hero-search-year-group .flex-fill:last-child,
.hero-search-price-group .flex-fill:last-child {
    margin-left: 0.25rem;
}

/* Hero Search Form Price Input Icons Fix */
.hero-search-price-group .position-relative {
    position: relative !important;
}

.hero-search-price-group .position-relative .fi-dollar-sign {
    z-index: 10;
    pointer-events: none;
}

.hero-search-price-group .form-control.form-icon-start {
    padding-left: 2.5rem !important;
}

/* Footer Consistency */
.footer {
    background-color: #212529;
    color: #fff;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.footer a:hover {
    color: #fff;
}

