/**
 * Main Stylesheet
 * KMC JAPAN Platform
 */

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
}

.top-bar a {
    color: #fff;
}

/* Language and Currency Dropdown Menus */
.top-bar .dropdown-menu {
    min-width: 200px;
}

.top-bar .dropdown-menu .dropdown-item {
    color: #000 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.top-bar .dropdown-menu .dropdown-item:hover {
    background-color: #3a3b3b;
    color: #000 !important;
}

.top-bar .dropdown-menu .dropdown-item.active {
    background-color: #0066cc;
    color: #292626 !important;
}

/* Header */
header .navbar-brand {
    color: var(--primary-color);
}

header .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

header .nav-link:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #cc5200;
    border-color: #cc5200;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Car/Part Cards */
.car-card, .part-card {
    height: 100%;
}

.car-card .card-body {
    display: flex;
    flex-direction: column;
}

.car-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.car-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

.car-card .specs {
    font-size: 0.875rem;
    color: #666;
}

.car-card .specs .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Forms */
.form-control, .form-select {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 0.625rem 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Search Bar */
.search-bar {
    background: var(--light-color);
    padding: 2rem 0;
}

.search-bar .form-control {
    height: 50px;
    font-size: 1rem;
}

.search-bar .btn {
    height: 50px;
    padding: 0 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.filters-sidebar h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.filters-sidebar .filter-group {
    margin-bottom: 1.5rem;
}

.filters-sidebar label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

/* Footer */
footer {
    margin-top: 3rem;
}

footer h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a:hover {
    color: #fff !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Featured Section */
.featured-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

/* Stats */
.stats {
    background: var(--light-color);
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-item .stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Badge Styles */
.badge {
    padding: 0.375rem 0.625rem;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-available {
    background-color: var(--success-color);
}

.badge-sold {
    background-color: var(--danger-color);
}

.badge-reserved {
    background-color: var(--warning-color);
}

/* Alert Styles */
.alert {
    border-radius: 4px;
    border: none;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .car-card .card-img-top {
        height: 180px;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

