/* themes/taxi/assets/css/mobile.css */
/* MOBİL DÜZENİ - SADECE 768px ve altı */

@media (max-width: 768px) {

    /* ===================== GLOBAL FIX ===================== */
    * {
        box-sizing: border-box !important;
    }

    html, body {
        overflow-x: clip !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }

    /* ===================== CONTAINER TAŞMA FIX ===================== */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }

    /* ===================== HEADER FIX ===================== */
    header, .navbar {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .navbar {
        flex-wrap: nowrap !important;
    }

    /* ===================== MOBİL TOP BAR ===================== */
    .mobile-top-bar {
        background: linear-gradient(90deg, #111827 50%, #ffd000 50%) !important;
        height: 48px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: relative;
        z-index: 10000;
    }

    .mobile-top-bar-inner {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    .mobile-social-icons {
        display: flex !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .mobile-social-icons a {
        background: rgba(255, 255, 255, 0.1) !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fff !important;
        font-size: 12px !important;
        text-decoration: none;
        transition: 0.3s;
    }

    .mobile-social-icons a:active {
        background: #ffd000 !important;
        color: #111 !important;
        transform: scale(0.95);
    }

    .taxi-lamp-container {
        flex: 0 0 auto !important;
        max-width: 50% !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    .taxi-lamp {
        background: #000 !important;
        color: #ffd000 !important;
        padding: 5px 10px !important;
        border-radius: 6px !important;
        font-weight: 900 !important;
        font-size: 10px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    }

    .taxi-lamp i {
        color: #ffd000 !important;
        text-shadow: 0 0 8px #ffd000 !important;
        animation: lamp-pulse 1.2s infinite alternate !important;
    }

    @keyframes lamp-pulse {
        from { opacity: 0.4; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1.1); }
    }

    /* Masaüstü top bar mobilde gizle */
    .topbar {
        display: none !important;
    }

    /* ===================== MOBİL MENU PANELİ ===================== */
    .mobile-menu-panel {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100% !important;
        background: #fff !important;
        box-shadow: -2px 0 20px rgba(0,0,0,0.1) !important;
        z-index: 10001 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        visibility: hidden !important;
        padding: 20px !important;
        overflow-y: auto !important;
    }

    .mobile-menu-panel.active {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
    }

    .mobile-menu-header span {
        font-size: 18px;
        font-weight: 700;
        color: #ffd000;
    }

    .close-menu {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

    .mobile-menu-items {
        list-style: none;
        padding: 0;
    }

    .mobile-menu-items li {
        margin-bottom: 15px;
    }

    .mobile-menu-items li a {
        text-decoration: none;
        color: #1a1a2e;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
    }

    .mobile-menu-items li a i {
        width: 24px;
        color: #ffd000;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10000;
        display: none;
    }

    .menu-overlay.active {
        display: block;
    }

    /* ===================== HEADER (Logo) ===================== */
    header {
        background: #ffffff !important;
        border-bottom: 1px solid #eee !important;
        width: 100% !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
    }

    .navbar {
        padding: 12px 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .logo img {
        height: 35px !important;
        width: auto !important;
    }

    .logo span {
        font-size: 20px !important;
        font-weight: 800 !important;
        color: #ffd000 !important;
    }

    .mobile-menu-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        cursor: pointer !important;
        background: transparent !important;
    }

    .mobile-menu-icon i {
        font-size: 24px !important;
        color: #1a1a2e !important;
    }

    .menu {
        display: none !important;
    }

    /* ===================== SLIDER ===================== */
    .hero {
        height: 280px !important;
        margin-top: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .slide img {
        width: 100% !important;
        height: 280px !important;
        object-fit: cover !important;
    }

    .slide-content {
        padding: 12px 15px !important;
        text-align: center !important;
        bottom: 15px !important;
        left: 10px !important;
        right: 10px !important;
        background: rgba(0,0,0,0.7) !important;
        backdrop-filter: blur(8px) !important;
        border-radius: 16px !important;
    }

    .slide-content h2 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    .slide-content p {
        font-size: 11px !important;
    }

    .btn-yellow {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    /* ===================== GRID SİSTEMLERİ ===================== */
    .services-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* ===================== FİYAT HESAPLAMA ===================== */
    .price-calc {
        padding: 20px 0 !important;
    }

    .calculator-container {
        margin-top: -30px !important;
        padding: 0 12px !important;
    }

    .calc-box {
        padding: 18px !important;
    }

    .calc-box h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    .calc-box input,
    .calc-box select {
        height: 42px !important;
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    #calcResult {
        padding: 12px !important;
        font-size: 14px !important;
    }

    /* ===================== İSTATİSTİKLER ===================== */
    .stats {
        padding: 30px 0 !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .stat-item {
        padding: 12px !important;
    }

    .stat-item h3 {
        font-size: 22px !important;
    }

    .stat-item p {
        font-size: 11px !important;
    }

    /* ===================== CTA ===================== */
    .cta {
        padding: 30px 0 !important;
    }

    .cta h2 {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }

    .cta p {
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }

    .cta a {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }

    /* ===================== FOOTER MOBİL TEMİZLİK ===================== */
    .main-footer {
        padding: 45px 0 25px !important;
    }

    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
        text-align: center !important;
    }

    /* Her blok aynı ritim */
    .footer-container > div {
        width: 100% !important;
    }

    /* Bloklar arasına çok ince ayırıcı */
    .footer-container > div:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 20px;
    }

    /* Footer Logo */
    .footer-logo {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    .footer-divider {
        margin: 0 auto 15px !important;
        width: 40px !important;
        height: 3px !important;
    }

    /* Açıklama metni */
    .about-col p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        padding: 0 10px !important;
    }

    /* Sosyal ikonlar - merkezde */
    .social-icons {
        display: flex !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-top: 15px !important;
    }

    .social-icons a {
        width: 38px !important;
        height: 38px !important;
    }

    /* Linkler - merkezde düzenli */
    .footer-nav-list {
        padding: 0 !important;
        margin: 0 auto !important;
        display: inline-block !important;
        text-align: left !important;
    }

    .footer-nav-list li {
        margin-bottom: 10px !important;
    }

    .footer-nav-list li a {
        justify-content: center !important;
        font-size: 14px !important;
    }

    /* İletişim - merkezde */
    .contact-info-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .contact-info-list li {
        justify-content: center !important;
        font-size: 13px !important;
    }

    /* E-Bülten Formu - mobilde tam otursun */
    .newsletter-col p {
        font-size: 13px !important;
    }

    .newsletter-form {
        display: flex !important;
        max-width: 280px !important;
        margin: 15px auto 0 !important;
        overflow: hidden !important;
        border-radius: 8px !important;
    }

    .newsletter-form input {
        flex: 1 !important;
        height: 42px !important;
        border: none !important;
        padding-left: 12px !important;
        font-size: 13px !important;
    }

    .newsletter-form button {
        width: 48px !important;
        height: 42px !important;
        border: none !important;
        cursor: pointer !important;
    }

    .newsletter-form input:focus {
        outline: none !important;
    }

    /* Alt footer */
    .footer-bottom {
        margin-top: 25px !important;
        padding-top: 15px !important;
        text-align: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .footer-bottom p {
        font-size: 11px !important;
    }

    /* Global güvenlik - taşma önle */
    .main-footer * {
        box-sizing: border-box !important;
    }

    /* ===================== MOBİL SABİT İLETİŞİM BUTONLARI ===================== */
    .mobile-sticky-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: flex !important;
        z-index: 999999 !important;
        background: transparent !important;
        box-shadow: 0 -3px 15px rgba(0,0,0,0.2) !important;
    }

    .sticky-btn {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 14px 10px !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        font-size: 15px !important;
        color: #ffffff !important;
    }

    .sticky-btn.whatsapp {
        background-color: #25D366 !important;
    }

    .sticky-btn.call {
        background-color: #1e3a8a !important;
    }

    body {
        padding-bottom: 70px !important;
    }

    /* ===================== WHATSAPP FLOAT GİZLE ===================== */
    .whatsapp-float {
        display: none !important;
    }

    /* ===================== TAKSİ ANİMASYONU MOBİL FIX ===================== */
    .road-animation {
        display: block !important;
        overflow: hidden !important;
        padding: 10px 0 !important;
    }

    .road-header {
        margin-bottom: 10px !important;
    }

    .road-header span {
        font-size: 10px !important;
    }

    .road-header h2 {
        font-size: 16px !important;
        margin-top: 5px !important;
    }

    .road-box {
        overflow: visible !important;
        height: 100px !important;
        margin: 0 !important;
    }

    .road-lines {
        animation: roadMove 0.5s linear infinite !important;
        height: 2px !important;
    }

    /* TAKSİ - LEFT YOK, TRANSFORM İLE SAĞA KAYIYOR */
    .moving-taxi {
        position: absolute !important;
        bottom: 0px !important;
        left: 0 !important;
        transform-origin: left center !important;
        animation: taxiMove 8s linear infinite !important;
    }

    /* TAKSİ SVG BOYUTU - KÜÇÜLTÜLDÜ */
    .moving-taxi svg {
        width: 160px !important;
        height: auto !important;
    }

    @keyframes roadMove {
        from { transform: translateY(-50%) translateX(0); }
        to { transform: translateY(-50%) translateX(-80px); }
    }

    @keyframes taxiMove {
        0% {
            transform: translateX(-40%) scale(0.25);
        }
        15% {
            transform: translateX(-10%) scale(0.3);
        }
        30% {
            transform: translateX(20%) scale(0.3);
        }
        70% {
            transform: translateX(70%) scale(0.3);
        }
        100% {
            transform: translateX(140vw) scale(0.25);
        }
    }
}

/* ===================== MASAÜSTÜ GÜVENLİK ===================== */
@media (min-width: 769px) {
    .mobile-top-bar,
    .mobile-menu-icon,
    .mobile-menu-panel,
    .menu-overlay {
        display: none !important;
    }
    
    .topbar {
        display: block !important;
    }
}