/* Catalog Styles */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --secondary: #2c3e50;
    --dark: #1a1a2e;
    --light: #f5f6fa;
    --gray: #7f8c8d;
    --success: #00b894;
    --warning: #fdcb6e;
    --elite: #f9ca24;
    --premium: #0984e3;
}

/* Navigation */
.navbar {
    background: var(--dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: var(--primary);
    margin-right: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::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 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat i {
    font-size: 2rem;
    color: var(--primary);
}

.hero-stats .stat span {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
}

.search-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-search:hover {
    background: var(--primary-dark);
    color: white;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark);
}

.section-header h2 i {
    color: var(--primary);
    margin-right: 10px;
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.vehicle-card.featured-border {
    border: 2px solid var(--elite);
}

.badge-elite, .badge-premium {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 1;
}

.badge-elite {
    background: var(--elite);
    color: var(--dark);
}

.badge-premium {
    background: var(--premium);
    color: white;
}

.vehicle-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--light);
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-card:hover .vehicle-overlay {
    opacity: 1;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
}

.vehicle-info {
    padding: 15px;
}

.vehicle-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.vehicle-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.vehicle-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.vehicle-seller {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
}

.likes {
    color: var(--primary);
}

/* Features Section */
.features-section {
    background: var(--light);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Plans Section */
.plans-section {
    padding: 60px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.plan-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.plan-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--elite);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--elite);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 0.8rem;
    color: var(--gray);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.plan-features li i {
    margin-right: 8px;
}

.plan-features li .fa-check {
    color: var(--success);
}

.plan-features li .fa-times {
    color: var(--gray);
}

/* Catalog Page */
.catalog-container {
    padding: 40px 0;
    background: var(--light);
}

.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.filters-sidebar h4 {
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
}

.results-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.results-header h3 span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Detail Page */
.detail-container {
    padding: 40px 0;
    background: var(--light);
}

.gallery-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.main-image {
    margin-bottom: 15px;
    text-align: center;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    cursor: pointer;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 60px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-detail-info {
    background: white;
    border-radius: 12px;
    padding: 25px;
}

.vehicle-title {
    font-size: 1.8rem;
    margin: 15px 0;
    color: var(--dark);
}

.vehicle-price-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.vehicle-stats {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.spec-label {
    color: var(--gray);
}

.spec-value {
    font-weight: 500;
}

.seller-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
}

.seller-contact {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-header strong {
    color: var(--dark);
}

.comment-header small {
    color: var(--gray);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 12px;
}

.no-results i {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: var(--dark);
    color: white;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 10px 0;
}

.contact-info li i {
    width: 30px;
    color: var(--primary);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #111;
    color: white;
    padding: 40px 0 20px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-brand i {
    color: var(--primary);
}

.footer h5 {
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stats .stat span {
        font-size: 1.2rem;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .results-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-title {
        font-size: 1.3rem;
    }
    
    .vehicle-price-large {
        font-size: 1.5rem;
    }
}

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

.vehicle-card {
    animation: fadeIn 0.5s ease;
}