/* ============================================
   KAPSAMLI MOBİL UYUMLULUK CSS
   Tüm sayfalar için %100 mobil uyumlu tasarım
   ============================================ */

/* ============================================
   CHAT BUTONU - MASAÜSTÜNDE KESİNLİKLE GÖRÜNÜR
   ============================================ */
@media (min-width: 769px) {
    #mesajButonu,
    .mesaj-butonu,
    div#mesajButonu,
    div.mesaj-butonu {
        position: fixed !important;
        bottom: 30px !important;
        left: 30px !important;
        background: #C19A6B !important;
        color: #ffffff !important;
        width: auto !important;
        min-width: 180px !important;
        height: 50px !important;
        border-radius: 25px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 4px 15px rgba(193, 154, 107, 0.4) !important;
        z-index: 999999 !important;
        padding: 0 20px !important;
        gap: 10px !important;
        margin: 0 !important;
        pointer-events: auto !important;
    }
    
    #mesajButonu .mesaj-butonu-text,
    .mesaj-butonu .mesaj-butonu-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        color: #ffffff !important;
    }
}

/* ============================================
   CHAT BUTONU - SADECE MOBİL İÇİN
   Masaüstü için gorkem-style.css'teki kurallar geçerli
   ============================================ */

/* ============================================
   GENEL MOBİL AYARLAR
   ============================================ */

/* Viewport meta tag kontrolü - header.php'de zaten var */

/* iPhone ve iOS özel optimizasyonlar */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari için özel ayarlar */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    input,
    textarea,
    select {
        -webkit-appearance: none;
        border-radius: 12px;
    }
}

/* Safe area support - iPhone X ve üzeri için */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .mobile-menu-toggle {
        top: max(1rem, env(safe-area-inset-top) + 1rem);
        right: max(1rem, env(safe-area-inset-right) + 1rem);
    }
}

/* ============================================
   MOBİLDE SADECE İLETİŞİM BUTONLARI GÖSTER
   ============================================ */

@media (max-width: 768px) {
    /* Header ve navigation tamamen gizle */
    header#mainHeader,
    .mobile-menu-toggle,
    .menu-overlay,
    nav {
        display: none !important;
    }
    
    /* Footer gizle */
    footer {
        display: none !important;
    }
    
    /* Chat button - mobilde görünür (gorkem-style.css'teki kurallar geçerli) */
    /* MASAÜSTÜNDE: gorkem-style.css'teki kurallar geçerli - burada hiçbir şey yapma */
    
    .chat-window {
        position: fixed !important;
        bottom: 80px !important;
        right: 1rem !important;
        width: calc(100% - 2rem) !important;
        max-width: 400px !important;
        height: calc(100vh - 140px) !important;
        max-height: 600px !important;
        z-index: 999 !important;
    }
    
    .chat-modal {
        z-index: 10001 !important;
    }
    
    /* Tüm içeriği gizle - sadece mobil iletişim butonları, chat butonu ve mesaj görünsün */
    /* NOT: Chat butonu ve iletişim butonları bu kuraldan MUAF - her zaman görünür olmalı */
    .content-section > *:not(.mobile-contact-only):not(.mobile-desktop-message):not(.chat-button):not(#chatButton):not([class*="chat-button"]):not([id*="chatButton"]):not(.mesaj-butonu):not(#mesajButonu):not([class*="mesaj-butonu"]):not([id*="mesajButonu"]),
    .container > *:not(.mobile-contact-only):not(.mobile-desktop-message):not(.chat-button):not(#chatButton):not([class*="chat-button"]):not([id*="chatButton"]):not(.mesaj-butonu):not(#mesajButonu):not([class*="mesaj-butonu"]):not([id*="mesajButonu"]),
    .page-content > *:not(.mobile-contact-only):not(.mobile-desktop-message):not(.chat-button):not(#chatButton):not([class*="chat-button"]):not([id*="chatButton"]):not(.mesaj-butonu):not(#mesajButonu):not([class*="mesaj-butonu"]):not([id*="mesajButonu"]),
    section:not(.mobile-contact-only):not(.mobile-desktop-message):not(.chat-button):not(#chatButton):not([class*="chat-button"]):not([id*="chatButton"]):not(.mesaj-butonu):not(#mesajButonu):not([class*="mesaj-butonu"]):not([id*="mesajButonu"]),
    main:not(.mobile-contact-only):not(.mobile-desktop-message):not(.chat-button):not(#chatButton):not([class*="chat-button"]):not([id*="chatButton"]):not(.mesaj-butonu):not(#mesajButonu):not([class*="mesaj-butonu"]):not([id*="mesajButonu"]),
    .hero-section,
    .projects-grid,
    .projects-section,
    .about-content,
    .contact-info-list,
    .contact-map-section,
    .contact-form-modern,
    .contact-form-social-wrapper,
    .contact-info-title,
    .contact-services-list,
    .faq-container,
    .contact-intro-text,
    .contact-intro-divider,
    .social-media-note,
    .hakkimizda-social-buttons,
    .page-progress {
        display: none !important;
    }
    
    /* Mobil iletişim wrapper */
    .mobile-contact-wrapper.mobile-contact-only {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 3rem 2rem 2rem 2rem !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* ARCHVISION başlığı */
    .mobile-archvision-title {
        font-size: 2rem !important;
        font-weight: 700 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        font-family: 'Poppins', sans-serif !important;
        letter-spacing: 2px !important;
        margin-bottom: 2rem !important;
        text-align: center !important;
        text-transform: uppercase !important;
    }
    
    /* Sosyal medya butonları */
    .mobile-contact-wrapper .social-media-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1.5rem !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Footer içindeki wrapper'ı da göster */
    footer ~ .mobile-contact-wrapper.mobile-contact-only {
        display: flex !important;
    }
    
    
    .social-link {
        min-width: 70px !important;
        min-height: 70px !important;
        width: 70px !important;
        height: 70px !important;
        border-radius: 16px !important;
        font-size: 1.75rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 2px solid rgba(193, 154, 107, 0.5) !important;
        transition: all 0.3s ease !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .social-link:active {
        transform: scale(0.95) !important;
        background: rgba(193, 154, 107, 0.2) !important;
    }
    
    /* Masaüstü mesajı */
    .mobile-desktop-message {
        display: block !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        font-family: 'Poppins', sans-serif !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    .mobile-desktop-message p {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Body ve container düzenle */
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
        background: #2c2c2c !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 2rem 1rem !important;
    }
    
    .content-section {
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 2rem 1rem !important;
        width: 100% !important;
        background: #2c2c2c !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background: transparent !important;
    }
}

/* ============================================
   MASAÜSTÜ İÇİN CHAT BUTONU - HER ZAMAN GÖRÜNÜR
   Bu kurallar mobil CSS'teki tüm kurallardan ÖNCE gelmeli
   ============================================ */

/* MASAÜSTÜ İÇİN: gorkem-style.css'teki kurallar geçerli - burada hiçbir şey yapma */

/* Temel mobil ayarlar - sadece 768px üzeri için */
@media (min-width: 769px) {
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    body {
        font-size: 16px; /* iOS zoom önleme için minimum */
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    /* Tüm container'lar mobil için */
    .container {
        padding: 1.25rem 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Tüm section'lar mobil için */
    section {
        padding: 2rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Tüm başlıklar mobil için */
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Tüm paragraflar mobil için */
    p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Tüm linkler */
    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        text-decoration: none;
    }
}

/* ============================================
   NAVIGATION - HAMBURGER MENÜ
   ============================================ */

/* Hamburger menü butonu */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobil menü */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    header#mainHeader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 4rem 0 2rem 0;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        align-items: stretch !important;
    }
    
    nav ul li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block !important;
        padding: 1.25rem 1.5rem !important;
        font-size: 1rem !important;
        text-align: left !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        width: 100% !important;
        border-radius: 0 !important;
    }
    
    nav a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    /* Menü overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* ============================================
   PUBLIC SAYFALAR - MOBİL UYUMLULUK
   ============================================ */

/* Ana sayfa (index.php) */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh !important;
        padding: 2rem 1rem !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
}

/* Projeler sayfası */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
}

/* İletişim sayfası - MOBİLDE SADECE SOSYAL MEDYA BUTONLARI */
@media (max-width: 768px) {
    /* Header ve navigation gizle */
    body.iletisim-page header#mainHeader,
    body.iletisim-page .mobile-menu-toggle,
    body.iletisim-page .menu-overlay {
        display: none !important;
    }
    
    /* Tüm içeriği gizle */
    body.iletisim-page .content-section > *:not(.mobile-contact-only),
    body.iletisim-page .container > *:not(.mobile-contact-only),
    body.iletisim-page .page-content > *:not(.mobile-contact-only),
    body.iletisim-page .contact-page-wrapper > *:not(.mobile-contact-only),
    body.iletisim-page .contact-unified-section > *:not(.mobile-contact-only),
    body.iletisim-page .contact-info-full-width > *:not(.mobile-contact-only),
    body.iletisim-page .contact-info-list,
    body.iletisim-page .contact-map-section,
    body.iletisim-page .contact-form-modern,
    body.iletisim-page .contact-form-social-wrapper,
    body.iletisim-page .contact-info-title,
    body.iletisim-page .contact-services-list,
    body.iletisim-page .faq-container,
    body.iletisim-page .contact-intro-text,
    body.iletisim-page .contact-intro-divider,
    body.iletisim-page .social-media-note {
        display: none !important;
    }
    
    /* Sadece sosyal medya butonlarını göster */
    body.iletisim-page .social-media-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1.5rem !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 3rem 2rem !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    body.iletisim-page .social-link {
        min-width: 70px !important;
        min-height: 70px !important;
        width: 70px !important;
        height: 70px !important;
        border-radius: 16px !important;
        font-size: 1.75rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 2px solid rgba(193, 154, 107, 0.5) !important;
        transition: all 0.3s ease !important;
    }
    
    body.iletisim-page .social-link:active {
        transform: scale(0.95) !important;
        background: rgba(193, 154, 107, 0.2) !important;
    }
    
    /* Masaüstü mesajı */
    body.iletisim-page .mobile-desktop-message {
        display: block !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 1rem !important;
        line-height: 1.6 !important;
        font-family: 'Poppins', sans-serif !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    /* Content section düzenle */
    body.iletisim-page .content-section {
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 2rem 1rem !important;
        background: #2c2c2c !important;
    }
    
    body.iletisim-page .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Footer gizle */
    body.iletisim-page footer {
        display: none !important;
    }
    
}

/* Hakkımızda sayfası */
@media (max-width: 768px) {
    .about-content {
        padding: 1.5rem 0 !important;
    }
    
    .about-section {
        margin-bottom: 1.5rem !important;
    }
    
    .about-quote {
        margin: 1.5rem 0 !important;
        padding: 1.5rem 1rem !important;
    }
    
    .projects-redirect-section {
        margin: 2rem 0 !important;
        padding: 1.5rem 1rem !important;
    }
}

/* ============================================
   CLIENT PANEL - MOBİL UYUMLULUK
   ============================================ */

@media (max-width: 768px) {
    /* Client Header */
    .client-header {
        padding: 1rem !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: flex-start !important;
    }
    
    .client-header h1 {
        font-size: 1.25rem !important;
    }
    
    .client-header .user-info {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    /* Client Container */
    .client-container {
        padding: 1rem !important;
        max-width: 100% !important;
    }
    
    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .dashboard-card {
        padding: 1.25rem !important;
    }
    
    .summary-section {
        padding: 1rem !important;
    }
    
    .summary-item {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Files Page */
    .folder-view,
    .categories-view,
    .files-view {
        padding: 1rem 0 !important;
    }
    
    .folder-grid,
    .category-grid,
    .file-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .folder-item,
    .category-item,
    .file-card {
        padding: 1rem !important;
        min-height: 100px !important;
    }
    
    .folder-item .folder-icon,
    .category-item .category-icon {
        font-size: 2rem !important;
    }
    
    .folder-item .folder-name,
    .category-item .category-name {
        font-size: 0.85rem !important;
    }
    
    /* File Breadcrumb */
    #file-breadcrumb {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
        flex-wrap: wrap !important;
    }
    
    #file-breadcrumb a {
        font-size: 0.85rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Messages Page */
    .messages-container {
        flex-direction: column !important;
    }
    
    .messages-sidebar {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .messages-content {
        width: 100% !important;
    }
    
    /* Financial Page */
    .financial-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .dashboard-card {
        padding: 1.25rem !important;
    }
    
    /* Project Reports */
    .reports-section {
        padding: 1rem !important;
    }
    
    .report-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Inspiration Images */
    .image-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .image-card {
        padding: 1rem !important;
    }
    
    /* Site Log & Site Flow */
    .log-section,
    .flow-section {
        padding: 1rem !important;
    }
    
    .log-item,
    .flow-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Chat Button - SADECE MOBİL İÇİN */
    /* Masaüstünde gorkem-style.css'teki kurallar geçerli */
    
    .chat-window {
        width: calc(100% - 2rem) !important;
        max-width: 100% !important;
        height: calc(100vh - 120px) !important;
        bottom: 80px !important;
        right: 1rem !important;
        left: 1rem !important;
    }
}

/* ============================================
   ADMIN PANEL - MOBİL UYUMLULUK
   ============================================ */

@media (max-width: 768px) {
    /* Admin Header */
    .header {
        padding: 1rem !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .header h1 {
        font-size: 1.25rem !important;
    }
    
    /* Admin Container */
    .container {
        padding: 1rem !important;
    }
    
    /* Action Buttons Grid */
    .action-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .btn-action {
        padding: 1rem 0.75rem !important;
        min-height: 80px !important;
    }
    
    .btn-action .icon {
        font-size: 1.5rem !important;
    }
    
    .btn-action .text {
        font-size: 0.75rem !important;
    }
    
    /* Section Groups */
    .section-group {
        margin-bottom: 2rem !important;
    }
    
    .section-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Stats Grid */
    .stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .stat-card {
        padding: 0.75rem !important;
    }
    
    .stat-card .number {
        font-size: 1.25rem !important;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem !important;
    }
    
    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important; /* iOS zoom önleme */
        padding: 0.75rem !important;
        width: 100% !important;
    }
    
    /* Buttons - PROFESYONEL */
    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-submit {
        padding: 1.25rem 2rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        min-height: 56px !important; /* Apple HIG: 44pt minimum */
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    button:active,
    .btn:active,
    .btn-primary:active,
    .btn-secondary:active,
    .btn-submit:active {
        transform: scale(0.97) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Tables */
    table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
    
    thead {
        display: none !important;
    }
    
    tbody {
        display: block !important;
    }
    
    tr {
        display: block !important;
        margin-bottom: 1rem !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        background: #ffffff !important;
    }
    
    td {
        display: block !important;
        text-align: left !important;
        padding: 0.5rem 0 !important;
        border: none !important;
    }
    
    td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #666666;
        display: inline-block;
        min-width: 100px;
    }
    
    /* Cards */
    .card,
    .client-card,
    .project-card {
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }
    
    /* Grid Layouts */
    .grid,
    .clients-grid,
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Modals */
    .modal {
        width: calc(100% - 2rem) !important;
        max-width: 100% !important;
        margin: 1rem !important;
        padding: 1rem !important;
    }
    
    .modal-content {
        padding: 1rem !important;
    }
    
    /* Notification Dropdown */
    .notification-dropdown {
        width: calc(100% - 2rem) !important;
        max-width: 100% !important;
        right: 1rem !important;
    }
}

/* ============================================
   ÇOK KÜÇÜK EKRANLAR (480px ve altı)
   ============================================ */

@media (max-width: 480px) {
    body {
        font-size: 16px !important; /* iOS zoom önleme - minimum 16px */
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    .action-buttons {
        grid-template-columns: 1fr !important;
    }
    
    .btn-action {
        min-height: 70px !important;
        padding: 1rem !important;
    }
    
    .btn-action .icon {
        font-size: 1.5rem !important;
    }
    
    .btn-action .text {
        font-size: 0.8rem !important;
    }
    
    .folder-grid,
    .category-grid,
    .file-grid {
        grid-template-columns: 1fr !important;
    }
    
    nav {
        width: 85% !important;
    }
    
    .mobile-menu-toggle {
        width: 50px !important;
        height: 50px !important;
        top: 1rem !important;
        right: 1rem !important;
    }
    
    /* İletişim sayfası - küçük ekranlar için */
    .contact-form-modern {
        padding: 1.5rem 1rem !important;
    }
    
    .form-section-title {
        font-size: 1.25rem !important;
    }
    
    .btn-submit {
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

/* ============================================
   TABLET (768px - 1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .action-buttons {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .folder-grid,
    .category-grid,
    .file-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   TOUCH FRIENDLY ELEMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Tüm tıklanabilir elementler için minimum boyut */
    a,
    button,
    input[type="submit"],
    input[type="button"],
    .btn,
    .card,
    .folder-item,
    .category-item,
    .file-card {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Scroll için smooth */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Text selection */
    ::selection {
        background: rgba(193, 154, 107, 0.3);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-no-padding {
        padding: 0 !important;
    }
    
    .mobile-no-margin {
        margin: 0 !important;
    }
}

