/* ========================================
   MODERN PAGES DESIGN - ALL PAGES
   Mobile-Friendly, Beautiful, Professional
   ======================================== */

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent: #f5576c;
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #94a3b8;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --card-hover-shadow: 0 15px 40px rgba(0,0,0,0.15);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-lg: 30px;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
}

/* Page Header */
.page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
}

.page-header .breadcrumb {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    margin-top: 20px;
}

.page-header .breadcrumb-item {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb-item.active {
    color: white;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.modern-card-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.modern-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* Buttons */
.btn-modern {
    padding: 12px 30px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-modern-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-modern-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-modern-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Form Controls */
.form-modern .form-control,
.form-modern .form-select {
    border-radius: var(--border-radius-sm);
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    transition: all 0.3s;
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-modern .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
}

.info-box-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #10b981;
}

.info-box-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
}

.info-box-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #ef4444;
}

/* Feature Icons */
.feature-icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Stats Box */
.stat-box {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-box .stat-label {
    color: var(--gray);
    font-size: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

/* Accordion */
.accordion-modern .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.accordion-modern .accordion-button {
    background: white;
    color: var(--dark);
    font-weight: 600;
    padding: 20px 25px;
    border-radius: var(--border-radius-sm);
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: var(--primary-gradient);
    color: white;
    box-shadow: none;
}

.accordion-modern .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-modern .accordion-body {
    padding: 25px;
    background: white;
}

/* Contact Info */
.contact-info-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.contact-info-box .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.contact-info-box h5 {
    margin-bottom: 10px;
}

.contact-info-box p {
    margin: 0;
    color: var(--gray);
}

/* Car Filters */
.filter-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 100px;
}

.filter-sidebar .filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.filter-sidebar .filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-sidebar .filter-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Car Grid */
.car-grid-item {
    margin-bottom: 30px;
}

/* Pagination */
.pagination-modern {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.pagination-modern .page-link {
    border-radius: var(--border-radius-sm);
    border: 2px solid #e2e8f0;
    color: var(--dark);
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-modern .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
        margin-bottom: 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .modern-card {
        padding: 20px;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .stat-box .stat-number {
        font-size: 2rem;
    }
    
    .feature-icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print Styles */
@media print {
    .page-header,
    .filter-sidebar,
    .btn,
    .pagination-modern {
        display: none;
    }
    
    .modern-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
