
/* Custom styles for BMW Panel Motors website */

/* BMW Brand Colors */
:root {
    --bmw-blue: #0066cc;
    --bmw-dark-blue: #003d7a;
    --bmw-light-blue: #4d94ff;
    --bmw-gray: #666666;
    --bmw-light-gray: #f5f5f5;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Custom Button Styles */
.bmw-button-primary {
    background: linear-gradient(135deg, var(--bmw-blue), var(--bmw-dark-blue));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.bmw-button-primary:hover {
    background: linear-gradient(135deg, var(--bmw-dark-blue), var(--bmw-blue));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.bmw-button-secondary {
    background: transparent;
    color: var(--bmw-blue);
    padding: 12px 24px;
    border: 2px solid var(--bmw-blue);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bmw-button-secondary:hover {
    background: var(--bmw-blue);
    color: white;
    transform: translateY(-2px);
}

/* Container */
.bmw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Text Shadow for Hero */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* Card Hover Effects */
.car-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

/* Mobile Menu Styles */
.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu.show {
    display: block;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--bmw-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Price Display */
.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bmw-blue);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--bmw-blue);
    color: white;
}

.badge-secondary {
    background: var(--bmw-light-gray);
    color: var(--bmw-gray);
}

/* Responsive Images */
.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Grid Layouts */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Utility Classes */
.text-bmw-blue { color: var(--bmw-blue); }
.bg-bmw-blue { background-color: var(--bmw-blue); }
.border-bmw-blue { border-color: var(--bmw-blue); }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.focus-visible:focus {
    outline: 2px solid var(--bmw-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px;
    }
    
    .bmw-button-primary,
    .bmw-button-secondary {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bmw-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bmw-dark-blue);
}

/* Image Gallery Styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Modal Styles */
.modal-overlay {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.warning {
    background: #f59e0b;
}

.notification.info {
    background: var(--bmw-blue);
}
