/**
 * ============================================
 * DİŞ HEKİMİ ÇİZGE İÇMELİ - MOBİL STİLLER
 * Responsive Design - Mobile First
 * ============================================
 */

/* ==========================================
   TABLET (768px ve altı)
   ========================================== */
@media screen and (max-width: 992px) {
    :root {
        --header-yukseklik: 70px;
        --container-padding: 1.25rem;
    }

    /* Grid Düzenlemeleri */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .avantaj-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tedavi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-ust {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--aralik-xl);
    }

    .footer-logo-bolum {
        grid-column: span 2;
    }

    /* Hakkımızda */
    .hakkimizda-grid {
        gap: var(--aralik-xl);
    }

    .hakkimizda-icerik {
        padding-left: 0;
    }

    /* Harita */
    .harita-bilgi-kutu {
        width: 300px;
        padding: var(--aralik-lg);
    }

    /* Hero İstatistikler */
    .hero-istatistikler {
        gap: var(--aralik-xl);
    }

    /* Yorum Kartları */
    .yorum-kart {
        flex: 0 0 calc(50% - var(--aralik-lg) / 2);
    }
}

/* ==========================================
   KÜÇÜK TABLET (768px ve altı)
   ========================================== */
@media screen and (max-width: 768px) {

    /* Header */
    .ana-nav,
    .header-butonlar {
        display: none;
    }

    .mobil-menu-btn {
        display: flex;
    }

    /* Mobil Menü */
    .mobil-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--ana-beyaz);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        padding: var(--aralik-3xl) var(--aralik-xl);
        transform: translateX(100%);
        transition: transform var(--gecis-normal);
        visibility: hidden;
    }

    .mobil-menu.aktif {
        transform: translateX(0);
        visibility: visible;
    }

    .mobil-nav-liste {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobil-nav-link {
        display: block;
        padding: var(--aralik-md) 0;
        font-size: var(--font-xl);
        font-weight: 500;
        color: var(--metin-koyu);
        border-bottom: 1px solid var(--kenarlik-acik);
    }

    .mobil-menu-footer {
        display: block;
        margin-top: auto;
        padding-top: var(--aralik-xl);
    }

    .mobil-telefon {
        display: flex;
        align-items: center;
        gap: var(--aralik-sm);
        font-size: var(--font-lg);
        font-weight: 600;
        color: var(--metin-koyu);
        margin-bottom: var(--aralik-lg);
    }

    .mobil-telefon i {
        color: var(--altin);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--header-yukseklik) + var(--aralik-2xl)) 0 var(--aralik-2xl);
    }

    .hero-icerik {
        max-width: 100%;
    }

    .hero-baslik {
        font-size: var(--font-3xl);
    }

    .hero-aciklama {
        font-size: var(--font-base);
    }

    .hero-butonlar {
        flex-direction: column;
    }

    .hero-butonlar .btn {
        width: 100%;
    }

    .hero-istatistikler {
        flex-wrap: wrap;
        gap: var(--aralik-lg);
    }

    .istatistik {
        flex: 1 0 40%;
    }

    /* Hakkımızda */
    .hakkimizda-grid {
        grid-template-columns: 1fr;
    }

    .hakkimizda-gorsel-wrap {
        order: -1;
    }

    .hakkimizda-gorsel-overlay {
        bottom: -15px;
        right: 15px;
    }

    .ozellik-liste {
        grid-template-columns: 1fr;
    }

    /* Tedaviler */
    .tedavi-grid {
        grid-template-columns: 1fr;
    }

    /* Galeri */
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Harita */
    .harita-wrap {
        height: auto;
    }

    .harita-iframe {
        height: 300px;
    }

    .harita-bilgi-kutu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        margin-top: -1px;
    }

    /* Footer */
    .footer-ust {
        grid-template-columns: 1fr;
    }

    .footer-logo-bolum {
        grid-column: span 1;
    }

    .footer-alt {
        flex-direction: column;
        gap: var(--aralik-md);
        text-align: center;
    }

    /* Avantajlar */
    .avantaj-grid {
        grid-template-columns: 1fr;
    }

    .avantaj-kart {
        display: flex;
        align-items: center;
        text-align: left;
        gap: var(--aralik-md);
    }

    .avantaj-ikon {
        margin: 0;
        flex-shrink: 0;
    }

    /* Yorumlar */
    .yorum-kart {
        flex: 0 0 100%;
    }

    /* Sayfa Banner */
    .sayfa-banner {
        padding: calc(var(--header-yukseklik) + var(--aralik-xl)) 0 var(--aralik-xl);
    }

    .sayfa-banner-baslik {
        font-size: var(--font-2xl);
    }

    /* CTA Banner */
    .cta-baslik {
        font-size: var(--font-2xl);
    }

    .cta-aciklama {
        font-size: var(--font-base);
    }

    .cta-butonlar {
        flex-direction: column;
    }

    .cta-butonlar .btn {
        width: 100%;
    }
}

/* ==========================================
   MOBİL (480px ve altı)
   ========================================== */
@media screen and (max-width: 480px) {
    :root {
        --header-yukseklik: 64px;
        --container-padding: 1rem;
    }

    /* Genel */
    .bolum {
        padding: var(--aralik-2xl) 0;
    }

    /* Typography */
    h1 {
        font-size: var(--font-2xl);
    }

    h2 {
        font-size: var(--font-xl);
    }

    h3 {
        font-size: var(--font-lg);
    }

    /* Hero */
    .hero-rozet {
        font-size: var(--font-xs);
        padding: 0.375rem 0.75rem;
    }

    .hero-baslik {
        font-size: var(--font-2xl);
    }

    .istatistik-sayi {
        font-size: var(--font-2xl);
    }

    /* Butonlar */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: var(--font-xs);
    }

    .btn-buyuk {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-sm);
    }

    /* Tedavi Kartları */
    .tedavi-gorsel-wrap {
        height: 160px;
    }

    .tedavi-icerik {
        padding: var(--aralik-md);
    }

    .tedavi-baslik {
        font-size: var(--font-lg);
    }

    /* Galeri */
    .galeri-grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-girdi {
        padding: 0.75rem;
    }

    /* Avantaj Kartları */
    .avantaj-kart {
        flex-direction: column;
        text-align: center;
    }

    /* WhatsApp Butonu */
    .whatsapp-btn {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 16px;
        right: 16px;
    }

    /* Bölüm Başlıkları */
    .bolum-ust-baslik::before,
    .bolum-ust-baslik::after {
        width: 20px;
    }

    /* Footer */
    .footer-iletisim-satir {
        flex-direction: column;
        gap: var(--aralik-xs);
    }

    .footer-iletisim-satir i {
        margin-top: 0;
    }
}

/* ==========================================
   KÜÇÜK MOBİL (360px ve altı)
   ========================================== */
@media screen and (max-width: 360px) {
    :root {
        --container-padding: 0.75rem;
    }

    .logo-metin {
        display: none;
    }

    .hero-istatistikler {
        flex-direction: column;
        align-items: flex-start;
    }

    .istatistik {
        flex: 0 0 100%;
        text-align: left;
    }
}

/* ==========================================
   BÜYÜK EKRANLAR (1400px ve üstü)
   ========================================== */
@media screen and (min-width: 1400px) {
    :root {
        --container-max: 1400px;
    }

    .hero-baslik {
        font-size: 4.5rem;
    }

    .avantaj-grid {
        gap: var(--aralik-xl);
    }

    .tedavi-grid {
        gap: var(--aralik-2xl);
    }
}

/* ==========================================
   LANDSCAPE MOBİL
   ========================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-yukseklik) + var(--aralik-lg)) 0 var(--aralik-lg);
    }

    .hero-istatistikler {
        display: none;
    }
}

/* ==========================================
   YAZDIRMA STİLLERİ
   ========================================== */
@media print {

    .header,
    .footer,
    .whatsapp-btn,
    .mobil-menu-btn,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-arkaplan::before {
        display: none;
    }

    .bolum {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================
   DARK MODE HAZIRLIĞI
   ========================================== */
@media (prefers-color-scheme: dark) {
    /* Dark mode desteği eklenebilir */
}

/* ==========================================
   HIGH CONTRAST
   ========================================== */
@media (prefers-contrast: high) {
    :root {
        --golge-kucuk: 0 2px 4px rgba(0, 0, 0, 0.2);
        --golge-normal: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .btn {
        border-width: 3px;
    }

    .nav-link::after {
        height: 3px;
    }
}