/**
 * VWE Stock List - Page Template Styles
 * External styles for vehicle list and detail page templates
 * 
 * @since      1.0.0
 * @package    VWE_Stock_List
 * @subpackage VWE_Stock_List/public/css
 */

/* ==========================================================================
   Vehicle List Page Styles
   ========================================================================== */

.vwe-page-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: var(--vwe-space-xl) 0;
}

.vwe-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--vwe-space-md);
}

.vwe-page-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: var(--vwe-space-2xl) var(--vwe-space-xl);
    margin-bottom: var(--vwe-space-xl);
    border-radius: var(--vwe-radius-lg);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vwe-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.vwe-page-header-content {
    position: relative;
    z-index: 1;
}

.vwe-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 var(--vwe-space-md) 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vwe-page-description {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.vwe-page-description p {
    margin: 0.5rem 0;
}

.vwe-page-main {
    background: var(--vwe-white);
    border-radius: var(--vwe-radius-lg);
    box-shadow: var(--vwe-shadow);
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--vwe-border);
}

/* ==========================================================================
   Vehicle Detail Page Styles
   ========================================================================== */

.vwe-detail-page-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: var(--vwe-space-xl) 0;
}

.vwe-detail-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--vwe-space-md);
}

/* ==========================================================================
   Breadcrumb Styles
   ========================================================================== */

.vwe-breadcrumb {
    margin-bottom: var(--vwe-space-xl);
}

.vwe-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--vwe-space-sm);
    list-style: none;
    margin: 0;
    padding: var(--vwe-space-md) var(--vwe-space-lg);
    background: var(--vwe-white);
    border-radius: var(--vwe-radius);
    box-shadow: var(--vwe-shadow-sm);
    font-size: var(--vwe-font-size-sm);
    border: 1px solid var(--vwe-border);
}

.vwe-breadcrumb-item {
    display: flex;
    align-items: center;
}

.vwe-breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: var(--vwe-space-sm);
    color: var(--vwe-light-gray);
    font-weight: 500;
}

.vwe-breadcrumb-link {
    color: #2563eb;
    text-decoration: none;
    transition: var(--vwe-transition-fast);
    padding: var(--vwe-space-xs);
    border-radius: var(--vwe-radius-sm);
}

.vwe-breadcrumb-link:hover {
    color: #1d4ed8;
    background: #dbeafe;
    text-decoration: none;
}

.vwe-breadcrumb-current {
    color: var(--vwe-gray);
    font-weight: 600;
    padding: var(--vwe-space-xs);
}

/* ==========================================================================
   No Vehicle ID Styles
   ========================================================================== */

.vwe-no-vehicle-id {
    background: var(--vwe-white);
    border-radius: var(--vwe-radius-lg);
    box-shadow: var(--vwe-shadow);
    padding: var(--vwe-space-2xl) var(--vwe-space-xl);
    text-align: center;
    margin-bottom: var(--vwe-space-xl);
    border: 1px solid var(--vwe-border);
}

.vwe-no-vehicle-content {
    max-width: 500px;
    margin: 0 auto;
}

.vwe-no-vehicle-icon {
    color: var(--vwe-light-gray);
    margin-bottom: var(--vwe-space-xl);
    display: flex;
    justify-content: center;
}

.vwe-no-vehicle-icon svg {
    width: 64px;
    height: 64px;
}

.vwe-no-vehicle-id h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vwe-black);
    margin: 0 0 var(--vwe-space-md) 0;
}

.vwe-no-vehicle-id p {
    color: var(--vwe-gray);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--vwe-space-xl);
}

.vwe-no-vehicle-actions {
    display: flex;
    gap: var(--vwe-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Related Vehicles Section
   ========================================================================== */

.vwe-related-vehicles {
    background: var(--vwe-white);
    border-radius: var(--vwe-radius-lg);
    box-shadow: var(--vwe-shadow);
    padding: var(--vwe-space-xl);
    margin-top: var(--vwe-space-2xl);
    border: 1px solid var(--vwe-border);
}

.vwe-related-header {
    text-align: center;
    margin-bottom: var(--vwe-space-xl);
    padding-bottom: var(--vwe-space-md);
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.vwe-related-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.vwe-related-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--vwe-black);
    margin: 0 0 var(--vwe-space-sm) 0;
}

.vwe-related-header p {
    color: var(--vwe-gray);
    font-size: var(--vwe-font-size-md);
    margin: 0;
}

/* ==========================================================================
   Enhanced Button Styles
   ========================================================================== */

.vwe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--vwe-space-md) var(--vwe-space-lg);
    font-size: var(--vwe-font-size-sm);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--vwe-radius);
    cursor: pointer;
    transition: var(--vwe-transition);
    white-space: nowrap;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vwe-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--vwe-primary);
}

.vwe-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: var(--vwe-white);
    box-shadow: var(--vwe-shadow-sm);
}

.vwe-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #1d4ed8;
    color: var(--vwe-white);
    transform: translateY(-2px);
    box-shadow: var(--vwe-shadow-md);
}

.vwe-btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--vwe-shadow-sm);
}

.vwe-btn-secondary {
    background: var(--vwe-white);
    border-color: var(--vwe-border);
    color: var(--vwe-gray);
    box-shadow: var(--vwe-shadow-sm);
}

.vwe-btn-secondary:hover {
    background: var(--vwe-background);
    border-color: var(--vwe-light-gray);
    color: var(--vwe-black);
    transform: translateY(-1px);
    box-shadow: var(--vwe-shadow);
}

/* ==========================================================================
   Controls and Filters Enhancement
   ========================================================================== */

.vwe-controls-wrapper {
    background: var(--vwe-white);
    padding: var(--vwe-space-lg);
    margin-bottom: var(--vwe-space-lg);
    border-radius: var(--vwe-radius);
    box-shadow: var(--vwe-shadow-sm);
    border: 1px solid var(--vwe-border);
}

.vwe-results-info {
    background: var(--vwe-background);
    padding: var(--vwe-space-md) var(--vwe-space-lg);
    margin-bottom: var(--vwe-space-lg);
    border-radius: var(--vwe-radius);
    border: 1px solid var(--vwe-border);
}

.vwe-results-count {
    font-weight: 600;
    color: var(--vwe-gray);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .vwe-page-wrapper,
    .vwe-detail-page-wrapper {
        padding: var(--vwe-space-md) 0;
    }
    
    .vwe-page-container,
    .vwe-detail-page-container {
        padding: 0 var(--vwe-space-sm);
    }
    
    .vwe-page-header {
        padding: var(--vwe-space-xl) var(--vwe-space-md);
        margin-bottom: var(--vwe-space-md);
    }
    
    .vwe-page-title {
        font-size: 2rem;
    }
    
    .vwe-page-description {
        font-size: var(--vwe-font-size-md);
    }
    
    .vwe-breadcrumb-list {
        padding: var(--vwe-space-sm) var(--vwe-space-md);
        font-size: var(--vwe-font-size-xs);
    }
    
    .vwe-no-vehicle-id {
        padding: var(--vwe-space-xl) var(--vwe-space-md);
    }
    
    .vwe-no-vehicle-id h1 {
        font-size: 1.5rem;
    }
    
    .vwe-no-vehicle-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .vwe-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .vwe-related-vehicles {
        padding: var(--vwe-space-lg);
    }
    
    .vwe-related-header h2 {
        font-size: 1.5rem;
    }
    
    .vwe-controls-wrapper {
        padding: var(--vwe-space-md);
    }
}

@media (max-width: 480px) {
    .vwe-page-title {
        font-size: 1.75rem;
    }
    
    .vwe-breadcrumb-list {
        flex-wrap: wrap;
        gap: var(--vwe-space-xs);
    }
    
    .vwe-no-vehicle-id h1 {
        font-size: 1.25rem;
    }
    
    .vwe-no-vehicle-id p {
        font-size: var(--vwe-font-size-md);
    }
    
    .vwe-page-header {
        padding: var(--vwe-space-lg) var(--vwe-space-sm);
    }
}
