/* ========================================
   SKELETON LOADER STYLES
   Used across multiple pages for loading states
   ======================================== */

/* Page Skeleton Loader */
.page-skeleton-loader {
    min-height: 70vh;
    padding: 2rem 1rem;
    background: #f8f9fa;
}

.skeleton-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skeleton-header {
    margin-bottom: 2rem;
}

.skeleton-title {
    height: 40px;
    width: 60%;
    max-width: 400px;
    background: #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.skeleton-subtitle {
    height: 24px;
    width: 40%;
    max-width: 300px;
    background: #e9ecef;
    border-radius: 0.5rem;
}

.skeleton-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skeleton-content.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skeleton-box {
    height: 350px;
    background: #e9ecef;
    border-radius: 0.75rem;
}

.skeleton-spinner {
    text-align: center;
    font-size: 1.25rem;
    color: #6c757d;
    padding: 2rem;
}

.skeleton-spinner i {
    font-size: 2rem;
    color: #007bff;
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(
        to right,
        #e9ecef 0%,
        #f8f9fa 50%,
        #e9ecef 100%
    );
    background-size: 1000px 100%;
}


/* ========================================
   DETAILS PAGE STYLES
   Vehicle details page specific components
   ======================================== */

/* Details Page Container */
.details-page-modern {
    background: #f8f9fa;
    min-height: 70vh;
}

/* Price Card */
.price-card {
    position: sticky;
    top: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #e3e6ea !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.price-card .h4 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.price-card hr {
    border-top: 2px solid #dee2e6;
    opacity: 1;
    margin: 1.25rem 0;
}

/* Quick View Box */
.quick-info-elegant {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e3e6ea;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.quick-info-elegant:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #17a2b8;
}

.quick-info-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.quick-info-header i {
    font-size: 1.125rem;
    color: white;
    margin-right: 0.5rem;
}

.quick-info-content {
    padding: 1.25rem;
    color: #495057;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Info Badges */
.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3e6ea;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.info-badge:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.info-badge i {
    font-size: 1.125rem;
}

.info-badge .fw-bold {
    color: #212529;
    font-weight: 600;
}

.info-badge .text-muted {
    font-size: 0.75rem;
}

.badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

/* Stock Availability Badge */
.stock-availability-badge {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #b1dfbb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.1);
}

.availability-in-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #155724;
    font-weight: 500;
    font-size: 0.9375rem;
}

.availability-in-stock i {
    color: #28a745;
    font-size: 1.25rem;
}

.availability-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
    font-weight: 500;
    font-size: 0.9375rem;
}

.availability-contact i {
    color: #ffc107;
    font-size: 1.25rem;
}

/* Mobile Sticky Price Bar */
.mobile-sticky-price-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 2px solid #e3e6ea;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0.875rem 1rem;
}

.sticky-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 100%;
}

.sticky-price .price-display {
    display: flex;
    flex-direction: column;
}

.sticky-price .current-price {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.sticky-action {
    flex-shrink: 0;
}

.sticky-action .btn {
    white-space: nowrap;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
}


/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 991px) {
    .price-card {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .mobile-sticky-price-bar {
        display: block;
    }

    .details-page-modern {
        padding-bottom: 80px;
    }
}
