/* ============================================
   MOBILE OPTIMIZATIONS
   Mobil cihazlar için genel optimizasyonlar
   ============================================ */

/* Temel Mobil Ayarları */
@media (max-width: 768px) {
    /* Font Boyutları - Mobilde daha okunabilir */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Başlıklar */
    h1 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem !important; /* 28px */
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.4;
    }
    
    /* Butonlar - Daha büyük dokunma alanı */
    button,
    .btn,
    a.button {
        min-height: 44px;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    /* Header Actions - Daha büyük ikonlar */
    header .flex.items-center.gap-4 a,
    header .flex.items-center.gap-4 button {
        padding: 10px !important;
    }
    
    header .flex.items-center.gap-4 i {
        font-size: 1.75rem !important; /* 28px */
    }
    
    /* Kullanıcı dropdown butonu */
    header .group button {
        padding: 10px 16px !important;
        font-size: 15px !important;
    }
    
    header .group button i {
        font-size: 1.5rem !important;
    }
    
    /* Kart başlıkları */
    .card h3,
    article h3 {
        font-size: 1.125rem !important; /* 18px */
    }
    
    /* Fiyat gösterimleri */
    .price,
    [class*="font-black"][class*="text-2xl"] {
        font-size: 1.5rem !important; /* 24px */
    }
    
    /* Padding ve Margin ayarları */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Form elemanları */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important; /* iOS zoom'u önlemek için */
        padding: 12px 16px !important;
        min-height: 44px;
    }
    
    /* Navigasyon linkleri */
    nav a {
        font-size: 15px !important;
        padding: 10px 12px !important;
    }
    
    /* Mobil menü */
    .mobile-menu a {
        font-size: 16px !important;
        padding: 14px 20px !important;
    }
    
    /* Tablo responsive */
    table {
        font-size: 14px !important;
    }
    
    table td,
    table th {
        padding: 10px 8px !important;
    }
    
    /* Modal içerikleri */
    .modal-content,
    [role="dialog"] {
        max-width: 95vw !important;
        margin: 1rem !important;
    }
    
    /* Hero başlıkları */
    .hero h1,
    section[class*="h-["] h1 {
        font-size: 2.5rem !important; /* 40px */
    }
    
    /* Badge ve etiketler */
    .badge,
    span[class*="px-"][class*="py-"][class*="rounded"] {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    /* Grid ayarları - Mobilde tek sütun */
    .grid[class*="md:grid-cols"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Görsel yükseklikleri */
    [class*="h-64"],
    [class*="h-56"],
    [class*="h-48"] {
        height: 200px !important;
    }
    
    /* Footer */
    footer {
        font-size: 14px !important;
    }
    
    footer h3,
    footer h4 {
        font-size: 1.125rem !important;
    }
}

/* Çok küçük ekranlar (iPhone SE, vb.) */
@media (max-width: 375px) {
    h1 {
        font-size: 1.75rem !important; /* 28px */
    }
    
    h2 {
        font-size: 1.5rem !important; /* 24px */
    }
    
    .hero h1,
    section[class*="h-["] h1 {
        font-size: 2rem !important; /* 32px */
    }
    
    /* Daha kompakt padding */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Tablet optimizasyonları */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet için orta boy fontlar */
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    /* Grid - Tablet'te 2 sütun */
    .grid[class*="lg:grid-cols-3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid[class*="lg:grid-cols-4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Touch-friendly - Tüm dokunmatik cihazlar */
@media (hover: none) and (pointer: coarse) {
    /* Daha büyük dokunma alanları */
    a,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Hover efektlerini kaldır */
    *:hover {
        transition: none !important;
    }
    
    /* Active state'leri güçlendir */
    button:active,
    a:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}

/* Landscape mode optimizasyonları */
@media (max-width: 768px) and (orientation: landscape) {
    /* Hero bölümlerini küçült */
    section[class*="h-["] {
        height: 60vh !important;
    }
    
    /* Padding'leri azalt */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Dark mode desteği (opsiyonel) */
@media (prefers-color-scheme: dark) {
    /* Dark mode için özel ayarlar buraya eklenebilir */
}

/* Reduced motion - Animasyon hassasiyeti olanlar için */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print optimizasyonları */
@media print {
    /* Gereksiz elemanları gizle */
    header,
    footer,
    nav,
    .no-print,
    button,
    [class*="fixed"],
    [class*="sticky"] {
        display: none !important;
    }
    
    /* Sayfa boyutları */
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 20pt;
    }
    
    /* Sayfa sonları */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        page-break-inside: avoid;
    }
}
