﻿/* ============================================
   AutoDealer Public Site Styles
   Bootstrap 5 + Custom Styles
============================================ */

:root {
    /* ── Marka renkleri ── Logo renginizle eşleştirmek için --primary-color'ı güncelleyin */
    --primary-color: #c71f37;
    --primary-dark: #a11527;
    --primary-light: #e63950;
    --secondary-color: #0d1b2a;
    --accent-color: #fca311;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #0d1b2a;
    --light-color: #f5f7fa;
    --font-family: 'Inter', sans-serif;
    --border-radius: 12px;
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.22);
    /* Bootstrap 5 primary renk override */
    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 199, 31, 55;
    --bs-link-color: var(--primary-color);
    --bs-link-hover-color: var(--primary-dark);
    --bs-link-color-rgb: 199, 31, 55;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: #333;
    line-height: 1.6;
}

/* Bootstrap .btn-primary override */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-focus-shadow-rgb: 199, 31, 55;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(199, 31, 55, 0.30);
    transition: all var(--transition);
}

    .btn-primary:hover {
        box-shadow: 0 6px 20px rgba(199, 31, 55, 0.42);
        transform: translateY(-1px);
    }

.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 199, 31, 55;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    transition: all var(--transition);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ============================================
   Section Headings
============================================ */
.section-heading {
    position: relative;
    font-weight: 700;
    color: var(--dark-color);
    padding-bottom: 0.875rem;
}

    .section-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 56px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        border-radius: 2px;
    }

    .section-heading.text-start::after {
        left: 0;
        transform: none;
    }

/* ============================================
   Header Styles
============================================ */
.public-header .navbar-brand img {
    max-height: 45px;
}

.public-header .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.75rem 1rem !important;
    transition: color var(--transition);
    position: relative;
}

    .public-header .nav-link::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 1rem;
        right: 1rem;
        height: 2px;
        background: var(--primary-color);
        transform: scaleX(0);
        transition: transform var(--transition);
        border-radius: 1px;
    }

    .public-header .nav-link:hover::after,
    .public-header .nav-link.active::after {
        transform: scaleX(1);
    }

    .public-header .nav-link:hover {
        color: var(--primary-color) !important;
    }

.header-top {
    background: var(--secondary-color) !important;
}

    .header-top a {
        transition: opacity 0.2s;
    }

        .header-top a:hover {
            opacity: 0.8;
        }

.navbar.shadow-sm {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.09) !important;
}

/* ============================================
   Hero Section
============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #162336 55%, #0a1520 100%);
    min-height: 560px;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

    /* Dekoratif arka plan ışıkları */
    .hero-section::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -8%;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(199, 31, 55, 0.18) 0%, transparent 68%);
        pointer-events: none;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -25%;
        left: -6%;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(252, 163, 17, 0.10) 0%, transparent 68%);
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(199, 31, 55, 0.18);
    border: 1px solid rgba(199, 31, 55, 0.35);
    color: #ff8090;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

    .hero-badge .badge-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--primary-light);
        animation: heroPulse 2s infinite;
        flex-shrink: 0;
    }

@keyframes heroPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}

.hero-section h1 {
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.hero-section .hero-highlight {
    color: var(--primary-light);
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

    .hero-search-box .search-box-title {
        font-weight: 700;
        color: var(--dark-color);
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        border-bottom: 2px solid #f0f2f5;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

        .hero-search-box .search-box-title i {
            color: var(--primary-color);
        }

    .hero-search-box .form-label {
        font-size: 0.75rem;
        font-weight: 700;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 0.4rem;
    }

    .hero-search-box .form-select {
        border: 2px solid #eaecf0;
        border-radius: 8px;
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
        transition: border-color var(--transition), box-shadow var(--transition);
    }

        .hero-search-box .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(199, 31, 55, 0.10);
        }

/* ============================================
   Stats Bar
============================================ */
.stats-bar {
    background: var(--secondary-color);
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: #fff;
    position: relative;
}

    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background: rgba(255, 255, 255, 0.12);
    }

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Vehicle Cards
============================================ */
.vehicle-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

    .vehicle-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

    .vehicle-card .card-img-top {
        height: 200px;
        object-fit: cover;
    }

    .vehicle-card .card-body {
        padding: 1.25rem;
    }

    .vehicle-card .vehicle-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 0.35rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vehicle-card .vehicle-subtitle {
        font-size: 0.8rem;
        color: #aaa;
    }

    .vehicle-card .vehicle-price {
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .vehicle-card .vehicle-specs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f0f0f0;
    }

    .vehicle-card .spec-item {
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        color: #999;
    }

        .vehicle-card .spec-item i {
            margin-right: 0.35rem;
            color: #ccc;
        }

    .vehicle-card .badge-condition {
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }

.badge-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    z-index: 1;
}

/* ============================================
   Body Type Section
============================================ */
.body-type-item {
    text-align: center;
    padding: 1.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    text-decoration: none;
    color: #555;
    display: block;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid transparent;
}

    .body-type-item:hover {
        transform: translateY(-5px);
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
        box-shadow: var(--shadow-md);
    }

    .body-type-item img {
        height: 60px;
        margin-bottom: 0.75rem;
        opacity: 0.7;
        transition: all var(--transition);
        filter: grayscale(15%);
    }

    .body-type-item:hover img {
        opacity: 1;
        filter: none;
    }

    .body-type-item span {
        display: block;
        font-weight: 600;
        font-size: 0.85rem;
    }

/* ============================================
   Feature (Why Choose Us) Cards
============================================ */
.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid transparent;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
        border-top-color: var(--primary-color);
    }

    .feature-card .feature-icon {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.25rem;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
        color: #fff;
        font-size: 1.6rem;
        box-shadow: 0 8px 22px rgba(199, 31, 55, 0.28);
    }

    .feature-card h5 {
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 0.6rem;
    }

    .feature-card p {
        font-size: 0.9rem;
        color: #999;
        margin-bottom: 0;
    }

/* ============================================
   Popular Brands
============================================ */
.brand-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

    .brand-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(199, 31, 55, 0.2);
    }

/* ============================================
   Filters Sidebar
============================================ */
.filter-sidebar {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

    .filter-section:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .filter-section h6 {
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--dark-color);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .filter-section .form-check {
        margin-bottom: 0.5rem;
    }

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ============================================
   Vehicle Detail Page
============================================ */
.vehicle-gallery {
    border-radius: var(--border-radius);
    overflow: hidden;
}

    .vehicle-gallery .main-image {
        width: 100%;
        height: 450px;
        object-fit: cover;
        cursor: pointer;
    }

    .vehicle-gallery .thumbnail-list {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .vehicle-gallery .thumbnail-item {
        width: 80px;
        height: 60px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        opacity: 0.65;
        transition: opacity 0.2s, border-color 0.2s;
        flex-shrink: 0;
        border: 2px solid transparent;
    }

        .vehicle-gallery .thumbnail-item:hover,
        .vehicle-gallery .thumbnail-item.active {
            opacity: 1;
            border-color: var(--primary-color);
        }

.vehicle-info-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.vehicle-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.specs-table {
    width: 100%;
}

    .specs-table tr {
        border-bottom: 1px solid #f0f0f0;
    }

    .specs-table td {
        padding: 0.75rem 0;
    }

        .specs-table td:first-child {
            color: #999;
            width: 40%;
            font-size: 0.875rem;
        }

        .specs-table td:last-child {
            font-weight: 600;
            color: var(--dark-color);
        }

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

    .feature-list .feature-item {
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        color: #555;
    }

        .feature-list .feature-item i {
            color: var(--success-color);
            margin-right: 0.5rem;
        }

/* ============================================
   Contact Sidebar
============================================ */
.contact-sidebar {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.seller-info {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

    .seller-info .seller-type {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background: #f0f2f5;
        border-radius: 20px;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

/* ============================================
   Pagination
============================================ */
.pagination .page-link {
    border: none;
    margin: 0 3px;
    border-radius: 8px;
    color: #555;
    transition: all var(--transition);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(199, 31, 55, 0.28);
}

/* ============================================
   Back to Top Button
============================================ */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 16px rgba(199, 31, 55, 0.35);
    transition: transform var(--transition), box-shadow var(--transition);
}

    .btn-back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(199, 31, 55, 0.45);
    }

/* ============================================
   Footer
============================================ */
.public-footer {
    background: var(--secondary-color) !important;
}

    .public-footer .text-primary {
        color: var(--accent-color) !important;
    }

/* ============================================
   Responsive
============================================ */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-search-box {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .vehicle-card .card-img-top {
        height: 180px;
    }

    .filter-sidebar {
        margin-bottom: 1.5rem;
    }

    .vehicle-gallery .main-image {
        height: 300px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .vehicle-card .card-img-top {
        height: 160px;
    }

    .body-type-item {
        padding: 1rem 0.5rem;
    }

        .body-type-item img {
            height: 40px;
        }

    .stat-number {
        font-size: 1.35rem;
    }
}


.nav-link.dropdown-toggle::after {
    border-top: 0;
    margin-left:0;
}
