/* =============================================
   MOBİL RESPONSIVE CSS - REHBER RENT A CAR
   ============================================= */

/* Genel Mobil Ayarlar */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    html {
        font-size: 14px;
    }

    body {
        overflow-x: hidden;
    }

    /* Container ayarları */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Navbar Mobil */
    .navbar {
        padding: 10px 15px;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .navbar .logo {
        font-size: 18px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        padding: 15px;
        border-radius: 10px;
        transition: all 0.3s;
    }

    .nav-links a:hover {
        background: #f0f4f8;
        transform: translateX(5px);
    }

    /* Hamburger Menu */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #1e3a5f;
        cursor: pointer;
        padding: 5px;
    }

    /* Hero Section Mobil */
    .hero {
        min-height: 60vh;
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 14px;
        margin: 15px 0 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Vehicles Grid Mobil */
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }

    .vehicle-card {
        max-width: 100%;
    }

    .vehicle-card .vehicle-image {
        height: 200px;
    }

    .vehicle-specs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .vehicle-specs span {
        font-size: 11px;
    }

    .vehicle-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .vehicle-price .price {
        font-size: 24px;
    }

    .vehicle-actions {
        flex-direction: column;
        gap: 10px;
    }

    .vehicle-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Filter Buttons Mobil */
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 15px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    /* Features Section Mobil */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 20px;
    }

    /* Contact Section Mobil */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: 14px;
    }

    /* Footer Mobil */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section ul {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Modals Mobil */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    /* Buttons Mobil */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Section Titles */
    .section-title {
        font-size: 24px;
        text-align: center;
    }

    .section-subtitle {
        font-size: 14px;
        text-align: center;
    }

    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card h3 {
        font-size: 28px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* PWA Install Prompt */
    .install-prompt {
        position: fixed;
        bottom: 20px;
        left: 15px;
        right: 15px;
        background: white;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        gap: 15px;
        z-index: 10000;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .install-prompt-content {
        flex: 1;
    }

    .install-prompt h3 {
        font-size: 16px;
        margin-bottom: 5px;
        color: #1e3a5f;
    }

    .install-prompt p {
        font-size: 12px;
        color: #64748b;
        margin: 0;
    }

    .install-prompt-buttons {
        display: flex;
        gap: 10px;
    }

    .install-btn {
        background: linear-gradient(135deg, #60a5fa, #1e3a5f);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }

    .dismiss-btn {
        background: transparent;
        border: none;
        color: #94a3b8;
        font-size: 24px;
        cursor: pointer;
        padding: 0 10px;
    }

    /* Sticky CTA Button */
    .sticky-cta {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: none;
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 999;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
        }
    }

    /* Touch Feedback */
    .btn:active,
    .filter-btn:active,
    .vehicle-card:active {
        transform: scale(0.98);
    }

    /* Smooth Scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Loading Spinner */
    .loading {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10001;
    }

    .spinner {
        width: 50px;
        height: 50px;
        border: 4px solid #f3f4f6;
        border-top: 4px solid #60a5fa;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }
}

/* Extra Small Devices (< 375px) */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .install-prompt {
        flex-direction: column;
        text-align: center;
    }

    .install-prompt-buttons {
        width: 100%;
        flex-direction: column;
    }

    .install-btn {
        width: 100%;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .install-prompt {
        bottom: 10px;
        padding: 15px;
    }
}


