/**
 * MOBİL TASARIM - YENİDEN YAZILDI
 * Antalya Korsan Taksi - Mobil Öncelikli Tasarım
 * 
 * @package AntalyaKorsanTaksi
 * @version 2.0
 * @date 2025
 */

/* ============================================
   MOBİL HEADER - YENİ TASARIM
   ============================================ */
@media (max-width: 1024px) {
    /* Header Sabitlendi */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        padding: 0.75rem 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    
    /* Logo Küçültüldü */
    .site-logo {
        flex: 0 0 auto;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    /* Desktop Navigasyon Gizlendi */
    .main-navigation {
        display: none !important;
    }
    
    /* Header Actions Düzenlendi */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Tema Değiştirici Küçültüldü */
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Arama Butonu Gizlendi (mobilde) */
    .btn-call {
        display: none;
    }
    
    /* Hamburger Menü Butonu - YENİ */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 10001;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 20px;
        position: relative;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform-origin: center;
    }
    
    /* Hamburger Animasyonu - X'e Dönüşüm */
    .mobile-menu-toggle.active .hamburger span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .mobile-menu-toggle.active .hamburger span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
}

/* ============================================
   MOBİL MENÜ - TAM EKRAN OVERLAY
   ============================================ */
@media (max-width: 1024px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
        backdrop-filter: blur(20px);
        z-index: 10000;
        
        /* Başlangıç Durumu */
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        
        /* Scroll */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Menü Açık */
    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
    
    /* Menü İçeriği */
    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        padding: 100px 2rem 2rem;
    }
    
    /* Navigasyon Linkleri */
    .mobile-nav-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav-item {
        margin-bottom: 0.5rem;
        opacity: 0;
        transform: translateX(-30px);
        animation: slideInLeft 0.5s forwards;
    }
    
    .mobile-menu.open .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
    .mobile-menu.open .mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
    .mobile-menu.open .mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
    .mobile-menu.open .mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
    .mobile-menu.open .mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
    .mobile-menu.open .mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }
    
    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        color: var(--white);
        font-size: 1.25rem;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: var(--primary-color);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .mobile-nav-link:hover::before,
    .mobile-nav-item.active .mobile-nav-link::before {
        transform: scaleY(1);
    }
    
    .mobile-nav-link i {
        font-size: 1.5rem;
        color: var(--primary-color);
        transition: transform 0.3s ease;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-item.active .mobile-nav-link {
        background: rgba(255, 215, 0, 0.1);
        color: var(--primary-color);
        transform: translateX(10px);
    }
    
    .mobile-nav-link:hover i {
        transform: scale(1.2) rotate(5deg);
    }
    
    /* Menü Footer */
    .mobile-menu-footer {
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s 0.4s forwards;
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-menu-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
        margin-bottom: 1rem;
        min-height: 56px;
    }
    
    /* Arka Plan Scroll Kilidi */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* ============================================
   MOBİL HERO SECTION
   ============================================ */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-title-main {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-title-sub {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 56px;
        font-size: 1.1rem;
    }
    
    .hero-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-feature {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }
    
    .hero-feature i {
        font-size: 1.5rem;
    }
}

/* ============================================
   MOBİL SERVİSLER
   ============================================ */
@media (max-width: 1024px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .service-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .service-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* ============================================
   MOBİL WHY US
   ============================================ */
@media (max-width: 1024px) {
    .why-us-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .why-us-image {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .feature-item {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .feature-content h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* ============================================
   MOBİL CTA
   ============================================ */
@media (max-width: 1024px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 1rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-section .btn {
        width: 100%;
        justify-content: center;
        min-height: 56px;
    }
}

/* ============================================
   MOBİL BLOG
   ============================================ */
@media (max-width: 1024px) {
    .blog-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-card {
        max-width: 100%;
    }
    
    .blog-image {
        height: 220px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* ============================================
   MOBİL FOOTER
   ============================================ */
@media (max-width: 1024px) {
    .site-footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   MOBİL FLOATING BUTTONS
   ============================================ */
@media (max-width: 1024px) {
    .whatsapp-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .whatsapp-button {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
    }
    
    .whatsapp-button .whatsapp-text {
        display: none;
    }
    
    .whatsapp-button i {
        font-size: 1.75rem;
    }
    
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 5.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }
}

/* ============================================
   KÜÇÜK MOBİL (480px ve altı)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .site-header {
        padding: 0.5rem 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hamburger {
        width: 24px;
        height: 18px;
    }
    
    .hamburger span {
        height: 2.5px;
    }
    
    .mobile-menu-content {
        padding: 90px 1.5rem 1.5rem;
    }
    
    .mobile-nav-link {
        font-size: 1.15rem;
        padding: 1rem 1.25rem;
    }
    
    .mobile-nav-link i {
        font-size: 1.35rem;
    }
    
    .hero-title-main {
        font-size: 1.85rem;
    }
    
    .hero-title-sub {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.65rem;
    }
    
    .service-card {
        padding: 1.5rem 1.25rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
    
    .whatsapp-button {
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-button i {
        font-size: 1.6rem;
    }
    
    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 5rem;
        font-size: 1.15rem;
    }
}

/* ============================================
   ÇOK KÜÇÜK MOBİL (360px ve altı)
   ============================================ */
@media (max-width: 360px) {
    .hero-title-main {
        font-size: 1.65rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .mobile-nav-link {
        font-size: 1.05rem;
        padding: 0.9rem 1rem;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
    }
}

/* ============================================
   LANDSCAPE MOBİL
   ============================================ */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .mobile-menu-content {
        justify-content: flex-start;
        padding-top: 80px;
    }
    
    .hero-features {
        display: none;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}

/* ============================================
   TOUCH OPTİMİZASYONLARI
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Tüm tıklanabilir elementler minimum 44x44px */
    .btn,
    .mobile-nav-link,
    .theme-toggle,
    .mobile-menu-toggle,
    .social-link,
    .footer-links a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Hover efektleri devre dışı */
    .mobile-nav-link:hover,
    .service-card:hover,
    .blog-card:hover,
    .feature-item:hover {
        transform: none;
    }
    
    /* Active state için feedback */
    .mobile-nav-link:active {
        background: rgba(255, 215, 0, 0.2);
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.97);
    }
}

/* ============================================
   ACCESSIBILITY İYİLEŞTİRMELERİ
   ============================================ */
@media (max-width: 1024px) {
    /* Focus indicators */
    .mobile-nav-link:focus,
    .btn:focus,
    .theme-toggle:focus,
    .mobile-menu-toggle:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Skip to content link */
    .skip-to-content {
        position: absolute;
        top: -100px;
        left: 0;
        background: var(--primary-color);
        color: var(--secondary-color);
        padding: 1rem 2rem;
        z-index: 10002;
        transition: top 0.3s;
    }
    
    .skip-to-content:focus {
        top: 0;
    }
}

/* ============================================
   PERFORMANCE OPTİMİZASYONLARI
   ============================================ */
@media (max-width: 1024px) {
    /* GPU acceleration */
    .mobile-menu,
    .mobile-nav-item,
    .hamburger span {
        will-change: transform, opacity;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
        
        .mobile-menu.open .mobile-nav-item {
            animation: none;
            opacity: 1;
            transform: translateX(0);
        }
    }
}
