/* Drop Euro Auto Parts - Modern Styles */

/* Root Variables */
:root {
    --primary-color: #d60000;
    --secondary-color: #004e89;
    --dark-bg: #1a1a2e;
    --light-bg: #16213e;
    --text-light: #333;
    --text-muted: #666;
    --warning-color: #ffc107;
    --success-color: #28a745;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header Styles */
header,
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #d60000;
    color: white;
    padding: 10px 20px;
    border-bottom: none;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
}

.logo span,
.logo-sub {
    display: block;
    font-size: 0.8em;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

nav ul,
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a,
.main-nav .nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

nav a:hover,
.main-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.search-cart {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-cart input {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    background: white;
    color: #333;
}

.search-cart a {
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero,
.hero-section {
    background: url('car-hero.jpg') no-repeat center center;
    background-size: cover;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: white;
}

.vehicle-search {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.vehicle-search select,
.vehicle-search .form-select {
    padding: 10px;
    border-radius: 4px;
    border: none;
    background: white;
    color: #333;
    font-size: 1rem;
}

.vehicle-search button,
.vehicle-search .btn-search {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    background: #d60000;
    color: white;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.vehicle-search button:hover,
.vehicle-search .btn-search:hover {
    background: #a00000;
}

.features,
.features-banner {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    font-weight: bold;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

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

/* Promo Banner */
.promo-banner {
    background: #d60000;
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: bold;
}

.promo-content {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

/* Quick Access Section */
.quick-access-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

.quick-access-card {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333;
    text-decoration: none;
    display: block;
    height: 100%;
}

.quick-access-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(214, 0, 0, 0.3);
    color: #333;
}

.quick-access-card .card-icon {
    color: #d60000;
    margin-bottom: 1.5rem;
}

.quick-access-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.quick-access-card p {
    color: #666;
    margin-bottom: 1rem;
}

.quick-access-card .btn-outline-light {
    border-color: #d60000;
    color: #d60000;
}

.quick-access-card .btn-outline-light:hover {
    background-color: #d60000;
    color: white;
}

/* Categories Section */
.categories,
.categories-section,
.top-sellers,
.top-sellers-section {
    padding: 40px 20px;
    text-align: center;
    background: #f5f5f5;
}

.category-grid,
.seller-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-grid div,
.category-card {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s;
}

.category-grid div:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(214, 0, 0, 0.2);
}

.category-grid img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.category-icon {
    color: #d60000;
    margin-bottom: 1rem;
}

/* Footer */
.footer-main,
footer {
    background-color: #333;
    border-top: 2px solid #d60000;
    color: #ffffff;
    margin-top: auto;
}

.footer-main h5,
.footer-main h6 {
    color: white;
}

.footer-main .text-muted,
.footer-main ul li {
    color: #e0e0e0 !important;
}

.footer-main small {
    color: #e0e0e0;
}

/* Form Styles */
.form-control,
.form-select {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
}

.form-control:focus,
.form-select:focus {
    background-color: white;
    border-color: #d60000;
    color: #333;
    box-shadow: 0 0 0 0.25rem rgba(214, 0, 0, 0.25);
}

.form-select option {
    background-color: white;
    color: #333;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: #d60000;
    border-color: #d60000;
}

.btn-primary:hover {
    background-color: #a00000;
    border-color: #a00000;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #856404;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* Card Styles */
.card {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
}

.card-header {
    background-color: #f5f5f5;
    border-bottom: 2px solid #d60000;
}

/* Responsive Design */
@media (max-width: 768px) {
    header,
    .header-main {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .vehicle-search {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .vehicle-search select,
    .vehicle-search button,
    .vehicle-search .form-select,
    .vehicle-search .btn-search {
        width: 100%;
    }
    
    .features,
    .features-banner {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .promo-content {
        font-size: 1.2rem;
    }
    
    .quick-access-card {
        margin-bottom: 1rem;
    }
}

/* Automotive Brand Colors */
.badge.bg-bmw { background-color: #1f4e79 !important; }
.badge.bg-mercedes { background-color: #00a0b0 !important; }
.badge.bg-porsche { background-color: #d5a441 !important; color: black !important; }
.badge.bg-audi { background-color: #bb0a30 !important; }
.badge.bg-vw { background-color: #00b1eb !important; }

/* VIN Input Styling */
.vin-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Table Styles */
.table {
    color: #333;
}

.table-hover tbody tr:hover {
    background-color: rgba(214, 0, 0, 0.05);
}

.table th {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.table td {
    border-color: #ddd;
}

/* Status Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d60000;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a00000;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Text colors for light theme */
.text-light {
    color: #333 !important;
}

.text-muted {
    color: #666 !important;
}
