/* Swiss Auto - Modern Light Theme - Mobile First Design */

/* Main Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    font-size: 16px; /* Better readability on mobile */
    line-height: 1.6;
}

.content-wrapper {
    flex: 1;
    padding: 0 15px; /* Add padding for mobile */
}

/* Header/Navigation Styling */
.navbar {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%) !important;
    border-bottom: 2px solid #d1ecf1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    padding: 0.25rem 0;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    max-width: 100%;
    transition: height 0.3s ease;
}

.navbar-nav {
    align-items: center;
}

.navbar-brand, .nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
}

.navbar .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar .nav-link:hover {
    color: #1e3c72 !important;
    background-color: rgba(30, 60, 114, 0.1);
}

.navbar .dropdown-toggle {
    color: #2c3e50 !important;
}

.navbar .dropdown-toggle:hover {
    color: #1e3c72 !important;
}

.navbar-toggler {
    border-color: #2c3e50;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navigation Improvements */
.navbar-collapse {
    margin-top: 1rem;
}

.navbar-nav .nav-item {
    margin: 0.25rem 0;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1e3c72;
}

/* Footer Styling */
.footer {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-top: 2px solid #d1ecf1;
    color: #2c3e50;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer .social-links .btn {
    border-radius: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.footer .btn-outline-primary {
    color: #1e3c72;
    border-color: #1e3c72;
}

.footer .btn-outline-primary:hover {
    background-color: #1e3c72;
    border-color: #1e3c72;
    color: white;
}

.footer .btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.footer .btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

@media (max-width: 767.98px) {
    .footer .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer .social-links .btn {
        padding: 0.5rem 1rem;
    }
}

/* Buttons - Mobile Optimized */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly size */
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 50px;
}

/* Cards - Mobile Optimized */
.card {
    border: 1px solid #e3f2fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e3f2fd;
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Typography - Mobile Optimized */
h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Links */
a {
    color: #1e3c72;
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: #2a5298;
}

/* Language Flags */
.lang-flag {
    width: 24px;
    margin-left: 5px;
    margin-right: 8px;
    border-radius: 2px;
}

/* Gallery and Images - Mobile Optimized */
.gallery-thumb {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    border-color: #1e3c72 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.main-car-image {
    transition: transform 0.2s ease;
    border-radius: 0.5rem;
    width: 100%;
    height: auto;
}

.main-car-image:hover {
    transform: scale(1.02);
}

/* Carousel - Mobile Optimized */
.carousel {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e3f2fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.carousel-inner {
    border-radius: 0.75rem;
    background-color: #f8f9fa;
}

.carousel-item {
    height: 300px; /* Smaller for mobile by default */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%; /* Larger touch targets for mobile */
    color: #2c3e50;
    opacity: 0.9;
    z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    color: #1e3c72;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(30, 60, 114, 0.8);
    border-radius: 50%;
    padding: 12px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.carousel-indicators {
    bottom: 15px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(30, 60, 114, 0.3);
    margin: 0 4px;
}

/* Form Elements - Mobile Optimized */
.form-control,
.form-select {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly */
}

.form-control:focus,
.form-select:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Contact Page Specific - Mobile Optimized */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info h6 {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-info a {
    color: #1e3c72;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #2a5298;
    text-decoration: underline;
}

/* Car Listing - Mobile Optimized */
.car-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.car-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.price-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

/* Filter Section - Mobile Optimized */
.filter-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Responsive Design - Mobile First */
@media (max-width: 575.98px) {
    /* Extra small devices (phones) */
    .navbar-brand img {
        height: 50px !important;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .carousel-item {
        height: 200px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        padding: 8px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .navbar-nav .nav-item {
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .footer {
        padding: 1.5rem 0;
        text-align: center;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small devices (landscape phones) */
    .navbar-brand img {
        height: 60px !important;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .card-columns {
        column-count: 1;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Medium devices (tablets) */
    .navbar-brand img {
        height: 65px !important;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .card-columns {
        column-count: 2;
    }
    
    .contact-info {
        padding: 2rem;
    }
}

@media (min-width: 992px) {
    /* Large devices (desktops) */
    .navbar-brand img {
        height: 80px !important;
    }
    
    .carousel-item {
        height: 450px;
    }
    
    .card-columns {
        column-count: 3;
    }
    
    .btn {
        width: auto;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
    }
}

/* Utility Classes */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

.mb-mobile {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .mb-mobile {
        margin-bottom: 0;
    }
}

/* Touch-friendly improvements */
.clickable {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(30, 60, 114, 0.2);
}

/* Loading states for mobile */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

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

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

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid #1e3c72;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom: 3px solid #000;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Instagram gradient button */
.btn-gradient {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #8b0a50 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 148, 51, 0.4);
}

/* Social links hover effects */
.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-links .btn-outline-danger:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}
