/* ===================================================================
   BLOG MOBILE ENHANCEMENTS - GÜLPAMUKLAR İNŞAAT
   Blog sayfalarının mobil deneyimini geliştirmek için ek CSS
   =================================================================== */

@media (max-width: 992px) {
    /* Genel sayfa düzeni iyileştirmeleri */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Hero alanında iyileştirmeler */
    .hero-title-modern {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
        line-height: 1.2;
    }
    
    /* Ürün kartları için daha iyi düzen */
    .products-grid-modern {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    /* Yatay kaydırma için özel kategori seçici */
    .category-scroller {
        display: flex;
        overflow-x: auto;
        padding: 15px 0;
        margin: 0 -20px 30px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-scroller::-webkit-scrollbar {
        display: none;
    }
    
    .category-item {
        flex: 0 0 auto;
        padding: 10px 20px;
        background: rgba(0,114,188,0.1);
        border-radius: 50px;
        margin-right: 10px;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 500;
        color: var(--blog-primary);
        transition: all 0.3s ease;
    }
    
    .category-item:first-child {
        margin-left: 20px;
    }
    
    .category-item:last-child {
        margin-right: 20px;
    }
    
    .category-item.active {
        background: var(--blog-gradient);
        color: white;
    }
    
    /* Geliştirilmiş dokunmatik deneyim */
    .btn-hero-primary,
    .btn-hero-secondary,
    .hero-feature,
    .product-card-modern,
    .advantage-card,
    .feature-tag {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Blog kartları için mobil iyileştirmeler */
@media (max-width: 768px) {
    /* Hero bölümünde iyileştirmeler */
    .modern-blog-hero {
        min-height: 55vh;
    }
    
    /* Blog kartları için iyileştirmeler */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .blog-card {
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .blog-card-featured {
        margin-bottom: 30px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .blog-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .blog-author {
        width: 100%;
    }
    
    .blog-read-time {
        font-size: 0.85rem;
    }
    
    /* Blog kategori pilleri için iyileştirmeler */
    .blog-category-area {
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .blog-category-pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: -10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
    }
    
    .blog-category-pill {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Daha iyi yan boşluklar */
    .section-header-modern,
    .hero-content-modern {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Özel "geri dön" düğmesi */
    .floating-back-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--blog-primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 100;
        transition: all 0.3s ease;
    }
    
    .floating-back-button:active {
        transform: scale(0.95);
    }
    
    /* Alt navigasyon barı */
    .mobile-tabbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 12px 0 8px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 99;
        display: flex;
        justify-content: space-around;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .tabbar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        color: var(--blog-text-light);
        text-decoration: none;
        padding: 5px 0;
    }
    
    .tabbar-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .tabbar-item.active {
        color: var(--blog-primary);
    }
    
    /* Blog resim optimizasyonları */
    .blog-image {
        height: 200px;
    }
    
    .blog-card-featured .blog-image {
        height: 250px;
    }
    
    .blog-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    /* Dokunmatik cihazlar için iyileştirmeler */
    @media (pointer: coarse) {
        .blog-card:hover {
            transform: none;
        }
        
        .blog-category-pill:active {
            background: var(--blog-gradient);
            color: white;
        }
        
        .blog-card:active {
            transform: scale(0.98);
        }
    }
    
    /* Sayfa yükleme animasyonu */
    .blog-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Blog kartları için kademeli yükleme */
    .blog-card:nth-child(1) { animation-delay: 0.1s; }
    .blog-card:nth-child(2) { animation-delay: 0.2s; }
    .blog-card:nth-child(3) { animation-delay: 0.3s; }
    .blog-card:nth-child(4) { animation-delay: 0.4s; }
}

/* Tablet için iyileştirmeler */
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 20px;
    }
    
    .blog-card-featured {
        grid-column: span 2;
    }
    
    .blog-title {
        font-size: 1.4rem;
    }
    
    .blog-category-pills {
        justify-content: center;
    }
}

/* Büyük ekranlar için iyileştirmeler */
@media (min-width: 1025px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .blog-card-featured {
        grid-column: span 3;
    }
}

@media (max-width: 576px) {
    /* En küçük ekranlarda düzenlemeler */
    .modern-blog-hero {
        min-height: 50vh;
    }
    
    .hero-content-modern {
        padding-top: 70px; /* Navbar'dan uzaklaştır */
    }
    
    /* Ürün listelerini tek sütunda göster */
    .product-list {
        display: block;
    }
    
    .product-list li {
        padding: 8px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .product-list li:last-child {
        border-bottom: none;
    }
    
    /* Özellik etiketleri düzenlemesi */
    .feature-tags {
        justify-content: center;
    }
    
    /* Ek boşluklar */
    .section-header-modern {
        margin-bottom: 2rem;
    }
    
    /* Animasyonları azalt */
    .animate-on-scroll {
        transition: all 0.4s ease;
    }
    
    /* Navbar iyileştirmeleri */
    .navbar .container {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    /* İletişim bilgileri blok halinde */
    .contact-info-item {
        display: block;
        margin-bottom: 15px;
    }
    
    /* Mobile özgü içerik gizleme/gösterme */
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Mobilde daha kullanışlı butonlar */
    .btn-mobile-full {
        display: block;
        width: 100%;
    }
    
    /* Tabbar menü için hazırlık */
    body {
        padding-bottom: 65px; /* Tabbar yüksekliği */
    }
    
    .mobile-tabbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .tabbar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        color: var(--blog-text-light);
        text-decoration: none;
    }
    
    .tabbar-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .tabbar-item.active {
        color: var(--blog-primary);
    }
}

/* İnteraktif hareket efektleri */
.tilt-effect {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.3s ease;
}

/* Dokunmatik cihazlarda etkin olmayan efektler */
@media (pointer: coarse) {
    .tilt-effect {
        transform: none !important;
        transition: none !important;
    }
    
    .btn-hero-primary::before {
        display: none;
    }
} 