/**
 * Mobile Category Layouts
 * @version 6.1
 * تخطيطات الموبايل للأقسام
 */

/* تطبيق فقط على الموبايل */
@media (max-width: 768px) {
    
    /* === Style 1: Full Width === */
    body.mobile-layout-style1 .category-posts {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    body.mobile-layout-style1 .category-post-item {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    body.mobile-layout-style1 .post-thumb {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        aspect-ratio: 16 / 9 !important;
    }
    
    body.mobile-layout-style1 .post-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    body.mobile-layout-style1 .post-content-wrap {
        width: 100% !important;
        padding: 15px !important;
    }
    
    body.mobile-layout-style1 .post-title {
        font-size: 17px !important;
    }
    
    /* === Style 2: Horizontal === */
    body.mobile-layout-style2 .category-posts {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    body.mobile-layout-style2 .category-post-item {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
    }
    
    body.mobile-layout-style2 .post-thumb {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
        flex-shrink: 0 !important;
        aspect-ratio: unset !important;
    }
    
    body.mobile-layout-style2 .post-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    body.mobile-layout-style2 .post-content-wrap {
        flex: 1 !important;
        width: auto !important;
        padding: 15px !important;
    }
    
    body.mobile-layout-style2 .post-title {
        font-size: 15px !important;
        -webkit-line-clamp: 2 !important;
    }
    
    body.mobile-layout-style2 .post-date-badge {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #999 !important;
        padding: 0 !important;
        font-size: 12px !important;
    }
    
    body.mobile-layout-style2 .post-cat {
        display: none !important;
    }
    
    /* === Style 3: Two Columns === */
    body.mobile-layout-style3 .category-posts {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    body.mobile-layout-style3 .category-post-item {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    body.mobile-layout-style3 .post-thumb {
        width: 100% !important;
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
        aspect-ratio: 16 / 9 !important;
    }
    
    body.mobile-layout-style3 .post-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    body.mobile-layout-style3 .post-content-wrap {
        width: 100% !important;
        padding: 12px !important;
    }
    
    body.mobile-layout-style3 .post-title {
        font-size: 13px !important;
        -webkit-line-clamp: 2 !important;
        min-height: 40px !important;
    }
}

