/* Mobil Responsive Düzeltmeler ve Performans İyileştirmeleri */

@media (max-width: 768px) {
    /* Gereksiz animasyonları kapat */
    .mobile-device * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Hero section optimize */
    .modern-hero {
        min-height: 60vh;
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin: 15px 0;
    }
    
    /* Görselleri optimize et */
    .hero-image {
        display: none; /* Mobilde hero image'ı gizle */
    }
    
    .hero-bg-image {
        object-fit: cover;
        height: 100%;
    }
    
    /* Stats küçült */
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Buttons optimize */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Features küçült */
    .hero-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    /* Floating elements kaldır */
    .floating-elements,
    .floating-badge,
    .image-decoration {
        display: none !important;
    }
    
    /* Scroll indicator küçült */
    .scroll-indicator {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    /* Footer optimize */
    .footer-main-content {
        padding: 30px 0;
    }
    
    .footer-widget {
        margin-bottom: 20px;
    }
    
    .footer-widget-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* SEO links küçült */
    .footer-seo-links {
        font-size: 0.75rem;
        line-height: 1.8;
    }
    
    .footer-seo-links a {
        padding: 5px 8px;
    }
    
    /* Chatbot mobilde küçült */
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chatbot-button {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-window {
        width: 90vw;
        height: 70vh;
        bottom: 75px;
        right: 15px;
    }
    
    /* Gallery optimize */
    .gallery-card {
        margin-bottom: 15px;
    }
    
    .gallery-card img {
        height: 200px;
        object-fit: cover;
    }
    
    /* Reduce shadows for performance */
    .mobile-device .shadow,
    .mobile-device .box-shadow,
    .mobile-device [class*="shadow"] {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    /* Simplify gradients */
    .mobile-device [class*="gradient"] {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    /* Optimize typography */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Section spacing */
    section {
        padding: 40px 0;
    }
    
    /* Button sizes */
    .btn,
    button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Form elements */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px;
    }
    
    /* Modal optimize */
    .modal-dialog {
        margin: 10px;
    }
    
    /* Table responsive */
    table {
        font-size: 0.85rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 15px;
    }
    
    /* Reduce padding everywhere */
    .mobile-device .p-5 { padding: 1.5rem !important; }
    .mobile-device .p-4 { padding: 1rem !important; }
    .mobile-device .p-3 { padding: 0.75rem !important; }
    
    .mobile-device .m-5 { margin: 1.5rem !important; }
    .mobile-device .m-4 { margin: 1rem !important; }
    .mobile-device .m-3 { margin: 0.75rem !important; }
}

/* Slow connection optimizations */
.slow-connection * {
    animation: none !important;
    transition: none !important;
}

.slow-connection img {
    background: #f0f0f0;
}

/* Loading states */
img[loading="lazy"] {
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img.loaded {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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