/* Mobil Optimizasyon CSS */

/* Temel Mobil Ayarları */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header Optimizasyonu */
    .header-middle {
        padding: 10px 0;
    }
    
    .header-search {
        margin-top: 10px;
    }
    
    .contact-widget {
        display: none !important;
    }
    
    .header-userinfo {
        display: none !important;
    }
    
    /* Logo Boyutu */
    .logo img {
        max-width: 120px;
        height: auto;
    }
    
    /* Navigasyon */
    .header-bottom {
        display: none !important;
    }
    
    /* Hero Section Mobil */
    .intro-section {
        padding: 20px 0;
    }
    
    .intro-slide {
        min-height: 300px !important;
    }
    
    .intro-content {
        padding: 20px;
    }
    
    .intro-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .intro-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    /* Kategori Kartları */
    .category-card {
        margin-bottom: 15px;
    }
    
    .category-image {
        height: 120px !important;
    }
    
    .category-title {
        font-size: 0.9rem;
    }
    
    /* Ürün Kartları */
    .product-default {
        margin-bottom: 20px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-title {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 0.9rem;
        font-weight: bold;
    }
    
    /* Button Optimizasyonu */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    /* Form Optimizasyonu */
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .input-group .form-control {
        border-radius: 6px 0 0 6px;
    }
    
    .input-group .btn {
        border-radius: 0 6px 6px 0;
        padding: 10px 15px;
    }
    
    /* Newsletter Form */
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn {
        border-radius: 6px;
        width: 100%;
    }
    
    /* Mobile Menu Optimizasyonu */
    .mobile-menu-container {
        padding: 20px;
    }
    
    .mobile-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        color: #333;
        text-decoration: none;
    }
    
    .mobile-menu a:hover {
        color: #007bff;
    }
    
    /* Search Form Mobile */
    .search-wrapper {
        margin: 15px 0;
    }
    
    .search-wrapper .form-control {
        border-radius: 6px 0 0 6px;
    }
    
    .search-wrapper .btn {
        border-radius: 0 6px 6px 0;
    }
    
    /* Sticky Navigation */
    .sticky-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #eee;
        padding: 10px 0;
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .sticky-info {
        text-align: center;
        flex: 1;
    }
    
    .sticky-info a {
        color: #6c757d;
        text-decoration: none;
        font-size: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .sticky-info a:hover,
    .sticky-info a:focus {
        color: #007bff;
        text-decoration: none;
    }
    
    .sticky-info i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    /* WhatsApp Button Mobile */
    .whatsapp-float {
        bottom: 80px !important;
        right: 15px !important;
    }
    
    .whatsapp-float a {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    /* Table Responsive */
    .table-responsive {
        border: none;
        margin-bottom: 0;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table td,
    .table th {
        padding: 8px;
    }
    
    /* Card Optimizasyonu */
    .card {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Modal Optimizasyonu */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    /* Pagination Mobile */
    .pagination {
        justify-content: center;
        margin: 20px 0;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Footer Mobile */
    .footer {
        text-align: center;
        padding: 30px 0 100px 0; /* Extra bottom padding for sticky nav */
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer-links {
        margin-bottom: 15px;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 5px 10px;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    body {
        font-size: 13px;
    }
    
    /* Grid Sistem */
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Ürün Grid - 2 sütun */
    .products-grid .col-6 {
        padding: 5px;
    }
    
    .category-card {
        padding: 10px;
    }
    
    .category-image {
        height: 100px !important;
    }
    
    /* Text Sizes */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .my-5 {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }
    
    /* Search Form */
    .search-form-advanced .row {
        margin: 0;
    }
    
    .search-form-advanced .col-md-4,
    .search-form-advanced .col-md-3,
    .search-form-advanced .col-md-2,
    .search-form-advanced .col-md-1 {
        padding: 5px;
        margin-bottom: 10px;
    }
}

/* Landscape Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* 3 sütun tablet için */
    .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-lg-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .dropdown-item {
        padding: 12px 16px;
    }
    
    /* Hover effects for touch */
    .product-card:hover {
        transform: none;
    }
    
    .suggestion-tags .badge:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Basic dark mode variables can be added here if needed */
    :root {
        --bs-body-bg: #121212;
        --bs-body-color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .mobile-menu-container,
    .sticky-navbar,
    .whatsapp-float,
    .btn,
    nav {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}