/* Responsive CSS - Bursa Oto Kiralama */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-overlay h1 {
        font-size: 3.5rem;
    }
    
    .vehicle-card {
        margin-bottom: 2rem;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-overlay h1 {
        font-size: 3rem;
    }
    
    .vehicle-specs {
        flex-direction: column;
    }
    
    .price-section {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .hero-overlay h1 {
        font-size: 2.5rem;
    }
    
    .hero-overlay .lead {
        font-size: 1.1rem;
    }
    
    .hero-features .badge {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .vehicle-card {
        margin-bottom: 2rem;
    }
    
    .location-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Form adjustments */
    .form-control, .form-select {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer .col-md-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .col-md-4:last-child {
        text-align: center;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .hero-overlay h1 {
        font-size: 2rem;
    }
    
    .hero-overlay .lead {
        font-size: 1rem;
    }
    
    .hero-features {
        text-align: center;
    }
    
    .hero-features .badge {
        display: inline-block;
        margin: 0.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .vehicle-details {
        padding: 1rem;
    }
    
    .vehicle-specs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .vehicle-specs span {
        font-size: 0.8rem;
    }
    
    .price-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .price {
        font-size: 1.25rem;
    }
    
    .location-details {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Navigation mobile */
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Section headers */
    section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    /* Form mobile */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer mobile */
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .hero-overlay h1 {
        font-size: 1.75rem;
    }
    
    .hero-overlay .lead {
        font-size: 0.9rem;
    }
    
    .hero-features .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn + .btn {
        margin-left: 0;
    }
    
    .vehicle-card {
        margin-bottom: 1.5rem;
    }
    
    .vehicle-image {
        height: 150px;
    }
    
    .vehicle-details h4 {
        font-size: 1.1rem;
    }
    
    .vehicle-specs span {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .location-card {
        margin-bottom: 1.5rem;
    }
    
    .location-image {
        height: 150px;
    }
    
    .location-details h4 {
        font-size: 1.1rem;
    }
    
    .testimonial-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .contact-info h4 {
        font-size: 1.1rem;
    }
    
    /* Navigation small mobile */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Section headers small mobile */
    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Filter section mobile */
    #filter .row > div {
        margin-bottom: 1rem;
    }
    
    /* Reservation form mobile */
    #reservation .row > div {
        margin-bottom: 1rem;
    }
    
    /* Footer small mobile */
    footer h5 {
        font-size: 1rem;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .hero-overlay h1 {
        font-size: 1.5rem;
    }
    
    .hero-overlay .lead {
        font-size: 0.85rem;
    }
    
    .hero-features .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .vehicle-details {
        padding: 0.75rem;
    }
    
    .vehicle-details h4 {
        font-size: 1rem;
    }
    
    .location-details {
        padding: 0.75rem;
    }
    
    .location-details h4 {
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 0.75rem;
    }
    
    .contact-info {
        padding: 0.75rem;
    }
    
    .contact-info h4 {
        font-size: 1rem;
    }
    
    /* Navigation extra small */
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Section headers extra small */
    section h2 {
        font-size: 1.25rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .parallax {
        min-height: 100vh;
    }
    
    .hero-overlay h1 {
        font-size: 1.5rem;
    }
    
    .hero-overlay .lead {
        font-size: 0.9rem;
    }
    
    .hero-features {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .vehicle-image img,
    .location-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-to-top,
    .btn {
        display: none !important;
    }
    
    .parallax {
        background: none !important;
        color: black !important;
    }
    
    .vehicle-card,
    .location-card,
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .hero-overlay {
        color: black !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-100: #1F2937;
        --gray-200: #374151;
        --gray-300: #4B5563;
        --gray-600: #9CA3AF;
        --gray-800: #E5E7EB;
        --gray-900: #F9FAFB;
    }
    
    body {
        background-color: #111827;
        color: var(--gray-800);
    }
    
    .vehicle-card,
    .location-card,
    .testimonial-card {
        background-color: #1F2937;
        color: var(--gray-800);
    }
    
    .contact-info {
        background-color: #374151;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
} 