/* ========================================
   MOBİL SEO OPTİMİZASYONU - FONT & RESPONSIVE
   ======================================== */

/* Temel Font Ayarları - Okunabilirlik için */
html {
    font-size: 16px; /* Minimum 16px - Google önerisi */
    -webkit-text-size-adjust: 100%; /* iOS zoom engellemesi */
    -ms-text-size-adjust: 100%;
}

body {
    font-size: 1rem; /* 16px */
    line-height: 1.6; /* Okunabilirlik için ideal */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Başlıklar - SEO için H1-H6 Hiyerarşisi */
h1 {
    font-size: 2rem; /* 32px */
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem; /* 28px */
    line-height: 1.3;
    margin-bottom: 0.875rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.4;
    margin-bottom: 0.625rem;
    font-weight: 600;
}

h5 {
    font-size: 1.125rem; /* 18px */
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Paragraflar */
p {
    font-size: 1rem; /* 16px - minimum okunabilir boyut */
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Linkler - Touch Target için minimum 44x44px */
a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:not(.btn):not(.whatsapp-float) {
    padding: 0.5rem;
}

/* Butonlar - Touch Target Optimization */
.btn, button, input[type="submit"], input[type="button"] {
    min-height: 48px;
    min-width: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
}

/* Form Elemanları */
input, textarea, select {
    font-size: 16px !important; /* iOS zoom engellemesi için minimum 16px */
    padding: 0.75rem;
    line-height: 1.5;
    border-radius: 8px;
}

/* Responsive Breakpoints */

/* Extra Small Devices (phones, 320px - 575px) */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem; /* 24.5px */
    }
    
    h2 {
        font-size: 1.5rem; /* 21px */
    }
    
    h3 {
        font-size: 1.25rem; /* 17.5px */
    }
    
    h4 {
        font-size: 1.125rem; /* 15.75px */
    }
    
    /* Touch targets büyütülmüş */
    a, .btn {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Small Devices (landscape phones, 576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.875rem; /* 28.125px */
    }
}

/* Medium Devices (tablets, 768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem; /* 32px */
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.5rem; /* 40px */
    }
    
    h2 {
        font-size: 2rem; /* 32px */
    }
}

/* Görsel Optimizasyonu */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy Loading için */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Tablo Responsive */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

@media (max-width: 767px) {
    table {
        font-size: 0.875rem;
    }
}

/* Container Padding - Mobile First */
.container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .container, .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Spacing Utilities - Mobile Optimized */
.mb-mobile {
    margin-bottom: 1rem;
}

.mt-mobile {
    margin-top: 1rem;
}

.p-mobile {
    padding: 1rem;
}

@media (min-width: 768px) {
    .mb-mobile {
        margin-bottom: 1.5rem;
    }
    
    .mt-mobile {
        margin-top: 1.5rem;
    }
    
    .p-mobile {
        padding: 1.5rem;
    }
}

/* Accessibility - Focus States */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

/* Print Optimization */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Performance Optimization */
* {
    box-sizing: border-box;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor;
    }
}
